/* HeizOel24 Custom Styles */
:root {
    --primary-green: #3b961a;
    --light-green: #e8f5e1;
    --dark-gray: #333;
    --light-gray: #f8f9fa;
    --border-color: #dee2e6;
}

/* Enhanced Main Styles */
body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Improved button styles */
.btn-primary {
    background: linear-gradient(135deg, #3b961a 0%, #4CAF50 100%);
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(59, 150, 26, 0.2);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 150, 26, 0.3);
}

/* Better card styling */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Navigation */
.navbar-brand img {
    height: 40px;
}

.nav-container {
    position: relative;
    z-index: 1040;
}

.text-success {
    color: var(--primary-green) !important;
}

.btn-success {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

.btn-success:hover {
    background-color: #2d7115;
    border-color: #2d7115;
}

/* Header Styles */
.header-container {
    background: white;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* User icon and login styling */
.login-link {
    color: #666 !important;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 4px;
}

.login-link:hover {
    color: var(--heizoel-green, #3b961a) !important;
}

.login-link svg {
    width: 16px;
    height: 16px;
    opacity: 0.8;
}

.header-contact {
    font-size: 14px;
}

.header-contact .phone a {
    color: #666;
    text-decoration: none;
}

.header-contact .phone a:hover {
    color: var(--heizoel-green, #3b961a);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--light-green) 0%, #ffffff 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.calculator-card {
    border: none;
    border-radius: 15px;
}

.calculator-card .form-control-lg {
    border-radius: 10px;
    border: 2px solid var(--border-color);
    padding: 12px 16px;
}

.calculator-card .form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(59, 150, 26, 0.25);
}

/* Price Banner */
.price-banner {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.price-indicator {
    text-align: center;
}

.current-price .h2 {
    color: var(--primary-green);
    font-weight: 700;
}

.trust-badge {
    height: 40px;
    opacity: 0.8;
}

/* Payment Methods */
.payment-methods i {
    margin: 0 10px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.payment-methods i:hover {
    opacity: 1;
}

/* Feature Icons */
.feature-icon i {
    margin-bottom: 1rem;
}

/* Dealer Cards */
.dealer-card-wrapper {
    margin-bottom: 1rem;
}

.dealer-card {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.dealer-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.dealer-name {
    color: var(--dark-gray);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.dealer-rating .badge {
    font-size: 0.9em;
}

.dealer-badges .badge {
    margin-right: 0.5rem;
}

.price-info {
    text-align: right;
}

.price-per-liter {
    margin-bottom: 0.5rem;
}

.total-price .h3 {
    color: var(--primary-green);
    font-weight: 700;
}

/* Empty State */
.empty-state {
    background-color: var(--light-gray);
    border-radius: 15px;
    margin: 2rem 0;
}

.empty-state .fa-exclamation-triangle {
    color: #ffc107;
}

/* Search Summary */
.search-summary h3 {
    font-weight: 300;
}

.search-summary .text-success {
    font-weight: 600;
}

/* PayPal Bar */
.paypal-bar {
    background: linear-gradient(90deg, #ffffff 0%, var(--light-green) 50%, #ffffff 100%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        padding: 2rem 0;
    }

    .calculator-card .row {
        gap: 1rem;
    }

    .dealer-card .row {
        text-align: center;
    }

    .price-info {
        text-align: center;
        margin-top: 1rem;
    }

    .trust-indicators {
        text-align: center;
        margin-top: 1rem;
    }
}

/* Utility Classes */
.min-vh-75 {
    min-height: 75vh;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Footer */
#page-footer {
    background-color: var(--light-gray);
    border-top: 1px solid var(--border-color);
}

#page-footer .logo {
    height: 20px;
    opacity: 0.7;
}

#page-footer a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

#page-footer a:hover {
    color: var(--primary-green);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-green);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Print Styles */
@media print {
    .navbar, .btn, #page-footer {
        display: none !important;
    }

    .hero-section {
        background: white !important;
        min-height: auto !important;
    }
}