/* ========================================
   Car Rental Website - Custom Styles for Bootstrap
   ======================================== */

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
}

/* ========== GENERAL STYLES ========== */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* ========== HERO SECTION ========== */

.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    background-position: center;
    color: white;
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
}

/* Add overlay to darken image if it's too bright */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ========== PAGE HEADER ========== */

.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: bold;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 0;
}

/* ========== BUTTONS ========== */

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white;
}

.btn-outline-primary {
    color: #667eea;
    border-color: #667eea;
}

.btn-outline-primary:hover {
    background: #667eea;
    border-color: #667eea;
}

/* ========== CAR CARDS ========== */

.car-card {
    border: none;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.car-image {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
}

.car-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #28a745;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.car-price {
    font-size: 1.5rem;
    color: #667eea;
    font-weight: bold;
}

.car-details {
    font-size: 0.9rem;
    color: #666;
}

/* ========== STATS SECTION ========== */

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 2rem;
    color: #667eea;
    font-weight: bold;
}

.stat-label {
    color: #666;
    margin-top: 0.5rem;
}

/* ========== CTA SECTION ========== */

.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.cta-section h2 {
    color: white;
    font-weight: bold;
}

/* ========== FORMS ========== */

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-control,
.form-select {
    border-radius: 5px;
}

/* ========== FILTERS ========== */

.filters {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filters h3 {
    margin-bottom: 1.5rem;
    font-weight: bold;
}

/* ========== CARS COUNT ========== */

.cars-count {
    background: white;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.cars-count p {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

/* ========== BREADCRUMB ========== */

.breadcrumb {
    padding: 1rem 0;
    background-color: transparent;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: #667eea;
}

.breadcrumb-item.active {
    color: #666;
}

/* ========== EMPTY STATE ========== */

.empty-state {
    text-align: center;
    padding: 3rem 0;
    color: #666;
}

.empty-state h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .stat-item {
        margin-bottom: 1rem;
    }
}

/* ========== UTILITIES ========== */

.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.shadow-sm-hover {
    transition: box-shadow 0.3s;
}

.shadow-sm-hover:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

        .error-section {
            min-height: 80vh;
            display: flex;
            align-items: center;
            justify-content: center;
            background: white;
            padding: 2rem;
        }

        .error-code {
            margin-bottom: 2rem;
            animation: bounce 2s infinite;
        }

        .error-code h1 {
            font-size: 6rem;
            font-weight: 900;
            margin: 0;
            color: #667eea;
            text-shadow: 0 2px 10px rgba(102, 126, 234, 0.1);
        }

        .error-section h2 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            color: #333;
            font-weight: 700;
        }

        .error-section .lead {
            font-size: 1.2rem;
            color: #666;
            margin-bottom: 2rem;
        }

        .error-suggestions p {
            color: #333;
            font-size: 1.1rem;
            font-weight: 600;
        }

        .error-suggestions .btn {
            font-weight: 600;
            padding: 0.75rem 1.5rem;
            font-size: 1rem;
            border-radius: 0.375rem;
            transition: all 0.3s ease;
        }

        .error-suggestions .btn-primary {
            background-color: #667eea;
            border-color: #667eea;
            color: white;
        }

        .error-suggestions .btn-primary:hover {
            background-color: #764ba2;
            border-color: #764ba2;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
        }

        .error-suggestions .btn-outline-primary {
            color: #667eea;
            border-color: #667eea;
        }

        .error-suggestions .btn-outline-primary:hover {
            background-color: #667eea;
            border-color: #667eea;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
        }

        .error-suggestions .btn-outline-secondary {
            color: #667eea;
            border-color: #667eea;
        }

        .error-suggestions .btn-outline-secondary:hover {
            background-color: #667eea;
            border-color: #667eea;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
        }

        .error-section .alert {
            background-color: #f8f9fa;
            border: 2px solid #667eea;
            color: #333;
            border-radius: 0.5rem;
        }

        .error-section .alert h5 {
            color: #667eea;
            font-weight: 700;
        }

        .error-section .alert a {
            color: #667eea;
            text-decoration: none;
            font-weight: 600;
        }

        .error-section .alert a:hover {
            color: #764ba2;
            text-decoration: underline;
        }

        /* Animation */
        @keyframes bounce {
            0%, 100% {
                transform: translateY(0);
            }
            50% {
                transform: translateY(-20px);
            }
        }

        /* Responsive */
        @media (max-width: 768px) {
            .error-section {
                min-height: 100vh;
                padding: 1rem;
            }

            .error-code h1 {
                font-size: 4rem;
            }

            .error-section h2 {
                font-size: 1.75rem;
            }

            .error-section .lead {
                font-size: 1rem;
            }

            .error-suggestions p {
                font-size: 1rem;
            }

            .error-suggestions .btn {
                font-size: 0.95rem;
                padding: 0.6rem 1rem;
            }
        }

        @media (max-width: 576px) {
            .error-code h1 {
                font-size: 3rem;
            }

            .error-section h2 {
                font-size: 1.5rem;
            }

            .error-section .lead {
                font-size: 0.95rem;
            }
        }