/* ============================================
   Book My Garrage - Custom Styles
   ============================================ */

:root {
    --primary: #dc3545;
    --primary-dark: #c82333;
    --secondary: #6c757d;
    --dark: #212529;
    --light: #f8f9fa;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --purple: #6f42c1;
    --teal: #20c997;
    --orange: #fd7e14;
}

* {
    font-family: 'Poppins', sans-serif;
}

body {
    overflow-x: hidden;
}

/* ============================================
   Navbar
   ============================================ */
.brand-logo {
    font-size: 1.8rem;
}

.brand-text {
    font-weight: 700;
    font-size: 1.3rem;
    margin-left: 5px;
}

.city-selector {
    background: #f8f9fa;
    padding: 5px 15px;
    border-radius: 20px;
}

.city-selector select {
    background: transparent;
    font-size: 0.9rem;
    font-weight: 500;
}

.navbar .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
}

.navbar .nav-link:hover {
    color: var(--primary) !important;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></svg>');
    background-size: 100px 100px;
}

.min-vh-75 {
    min-height: 75vh;
}

.badge-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.badge-item i {
    font-size: 1.2rem;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    color: #ffc107;
}

.stat-item small {
    opacity: 0.8;
}

/* ============================================
   Booking Card
   ============================================ */
.booking-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
}

.car-selector {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.car-selector:hover {
    border-color: var(--primary);
}

.car-selector span {
    flex: 1;
}

.rating-badge {
    background: #fff8e1;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* ============================================
   Service Cards
   ============================================ */
.section-header h2 {
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.service-card {
    display: block;
    background: white;
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(220, 53, 69, 0.15);
    color: inherit;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}

.service-icon.bg-info { background: var(--info); }
.service-icon.bg-success { background: var(--success); }
.service-icon.bg-warning { background: var(--warning); color: #333; }
.service-icon.bg-dark { background: var(--dark); }
.service-icon.bg-purple { background: var(--purple); }
.service-icon.bg-teal { background: var(--teal); }
.service-icon.bg-orange { background: var(--orange); }

.service-card h6 {
    font-weight: 600;
    margin-bottom: 5px;
}

/* ============================================
   How It Works
   ============================================ */
.step-card {
    background: white;
    border-radius: 15px;
    padding: 30px 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: relative;
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: #fff5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--primary);
}

.step-card h5 {
    font-weight: 600;
}

/* ============================================
   Why Choose Us Section
   ============================================ */
.feature-icon-sm {
    width: 24px;
    height: 24px;
    font-size: 1.2rem;
}

.stat-box {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
}

/* ============================================
   Testimonials
   ============================================ */
.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.avatar {
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* ============================================
   App Download
   ============================================ */
.app-download-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 50px;
    color: white;
}

.app-btn {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.app-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.app-btn i {
    font-size: 1.8rem;
}

.app-btn small {
    font-size: 0.7rem;
    opacity: 0.8;
}

/* ============================================
   Footer
   ============================================ */
.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.social-links a {
    color: #adb5bd;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary);
}

/* ============================================
   Floating Buttons
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 55px;
    height: 55px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}

.sos-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 55px;
    height: 55px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    box-shadow: 0 5px 20px rgba(220, 53, 69, 0.4);
    z-index: 999;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.sos-float:hover {
    transform: scale(1.1);
}

.sos-float i {
    font-size: 1.2rem;
}

/* ============================================
   Modal Styles
   ============================================ */
.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
}

.search-box input {
    padding-left: 45px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: none;
}

.brand-item, .model-item, .fuel-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.brand-item:hover, .model-item:hover, .fuel-item:hover {
    border-color: var(--primary);
    background: #fff5f5;
}

.brand-item img, .model-item img {
    max-height: 50px;
    margin-bottom: 10px;
}

.brand-item span, .model-item span {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
}

.fuel-item {
    padding: 25px;
}

.fuel-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.fuel-item span {
    display: block;
    font-weight: 600;
}

/* ============================================
   Services Page Styles
   ============================================ */
.page-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 80px 0 40px;
    color: white;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: white;
}

.filter-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 80px;
}

.service-package-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-package-card:hover {
    border-color: var(--primary);
}

.service-package-card.popular {
    border-color: var(--primary);
    position: relative;
}

.popular-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.price-tag {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.original-price {
    text-decoration: line-through;
    color: #adb5bd;
    font-size: 1rem;
}

.discount-badge {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 600;
}

.inclusion-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.inclusion-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
}

.inclusion-list li:last-child {
    border-bottom: none;
}

.inclusion-list li i {
    color: var(--success);
    margin-right: 10px;
}

/* ============================================
   Admin Dashboard Styles
   ============================================ */
.admin-sidebar {
    width: 250px;
    background: #1a1a2e;
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    padding-top: 20px;
    z-index: 1000;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 20px;
    border-radius: 8px;
    margin: 2px 10px;
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(220, 53, 69, 0.2);
    color: white;
}

.admin-sidebar .nav-link i {
    width: 25px;
}

.admin-content {
    margin-left: 250px;
    padding: 20px;
    background: #f4f6f9;
    min-height: 100vh;
}

.admin-header {
    background: white;
    padding: 15px 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--primary);
}

.stat-card.blue { border-left-color: var(--info); }
.stat-card.green { border-left-color: var(--success); }
.stat-card.orange { border-left-color: var(--orange); }
.stat-card.purple { border-left-color: var(--purple); }

.stat-card h3 {
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-card p {
    color: #6c757d;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.stat-card .icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.data-table {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.data-table .table {
    margin-bottom: 0;
}

.data-table .table th {
    border-top: none;
    background: #f8f9fa;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.pending { background: #fff3cd; color: #856404; }
.status-badge.confirmed { background: #cce5ff; color: #004085; }
.status-badge.inprogress { background: #d4edda; color: #155724; }
.status-badge.completed { background: #d1e7dd; color: #0f5132; }
.status-badge.cancelled { background: #f8d7da; color: #721c24; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 991px) {
    .admin-sidebar {
        width: 100%;
        position: relative;
        min-height: auto;
    }

    .admin-content {
        margin-left: 0;
    }

    .hero-section {
        text-align: center;
    }

    .booking-card {
        margin-top: 30px;
    }

    .stat-item {
        margin-bottom: 15px;
    }
}

@media (max-width: 767px) {
    .brand-text {
        font-size: 1rem;
    }

    .booking-card {
        padding: 20px;
    }

    .app-download-card {
        padding: 30px 20px;
    }
}

/* ============================================
   Animations
   ============================================ */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.btn-danger:hover {
    animation: pulse 0.5s ease;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}
