:root {
    --primary: #0d6efd;
    --primary-dark: #0a58ca;
    --primary-light: #e7f1ff;
    --secondary: #1d3557;
    --success: #2ecc71;
    --warning: #f39c12;
    --danger: #e74c3c;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-700: #495057;
    --gray-800: #343a40;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--gray-100);
    color: var(--gray-700);
    line-height: 1.6;
    padding-top: 70px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    height: 70px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo i { font-size: 1.8rem; }

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    transition: var(--transition);
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-call, .btn-whatsapp {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.1rem;
}

.btn-call { background: var(--primary); color: white; }
.btn-whatsapp { background: #25D366; color: white; }

.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 150px 0 100px;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.9; }

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; border: 2px solid white; color: white; }
.btn-outline:hover { background: white; color: var(--primary); }
.btn-dark { background: var(--secondary); color: white; }
.btn-dark:hover { background: #152642; }

.trust-section { background: var(--white); padding: 30px 0; box-shadow: var(--shadow); }
.trust-content { display: flex; justify-content: center; }
.rating-display { display: flex; align-items: center; gap: 20px; }
.rating-stars { color: #ffc107; font-size: 1.5rem; }
.rating-text .score { font-size: 2rem; font-weight: 700; color: var(--secondary); }
.rating-text .label { font-size: 0.9rem; color: var(--gray-700); }

.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2.2rem; color: var(--secondary); margin-bottom: 10px; }
.section-title p { color: var(--gray-700); }

.featured-cars { padding: 80px 0; }

.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.car-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.car-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }

.car-image { position: relative; height: 200px; overflow: hidden; }
.car-image img { width: 100%; height: 100%; object-fit: cover; }

.car-image .card-slider { width: 100%; height: 100%; }
.car-image .card-slider .swiper-slide { width: 100%; height: 100%; }
.car-image .card-slider .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
.car-image .card-slider-pagination {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    z-index: 5;
}

.car-status {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-available { background: var(--success); color: white; }
.status-sold { background: var(--danger); color: white; }
.status-reserved { background: var(--warning); color: white; }

.car-info { padding: 20px; }
.car-title { font-size: 1.1rem; color: var(--secondary); margin-bottom: 10px; }

.car-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--gray-700);
    margin-bottom: 15px;
}

.car-meta span { display: flex; align-items: center; gap: 5px; }
.car-price { font-size: 1.3rem; font-weight: 700; color: var(--primary); margin-bottom: 15px; }

.car-actions { display: flex; gap: 10px; }

.btn-view {
    flex: 1;
    padding: 10px;
    background: var(--primary);
    color: white;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.btn-view:hover { background: var(--primary-dark); }

.why-choose-us { background: var(--white); padding: 80px 0; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px;
    border-radius: 12px;
    background: var(--gray-100);
    transition: var(--transition);
}

.feature-card:hover { background: var(--primary-light); }

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

.feature-card h3 { color: var(--secondary); margin-bottom: 10px; }

.page-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 120px 0 60px;
    text-align: center;
    color: white;
}

.page-banner h1 { font-size: 2.5rem; margin-bottom: 10px; }
.page-banner p { font-size: 1.1rem; opacity: 0.9; }

.inventory-section { padding: 50px 0; }

.inventory-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

.filters {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 90px;
}

.filters h3 { color: var(--secondary); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }

.filter-group { margin-bottom: 20px; }
.filter-group label { display: block; font-weight: 500; margin-bottom: 8px; color: var(--gray-700); }

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.filter-group select:focus,
.filter-group input:focus { outline: none; border-color: var(--primary); }

.btn-filter {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 10px;
    transition: var(--transition);
}

.btn-filter:hover { background: var(--primary-dark); }

.btn-reset {
    width: 100%;
    padding: 12px;
    background: var(--gray-200);
    color: var(--gray-700);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-reset:hover { background: var(--gray-300); }

.inventory-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; }

.no-results { text-align: center; padding: 60px 20px; grid-column: 1 / -1; }
.no-results i { font-size: 4rem; color: var(--gray-300); margin-bottom: 20px; }
.no-results h3 { color: var(--secondary); margin-bottom: 10px; }

.car-details-section { padding: 50px 0; }

.car-details-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.car-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin: 25px 0; }

.spec-item { display: flex; align-items: center; gap: 10px; padding: 12px; background: var(--gray-100); border-radius: 8px; }
.spec-item i { color: var(--primary); width: 20px; }

.car-info-sidebar h1 { font-size: 1.8rem; color: var(--secondary); margin-bottom: 10px; }
.car-info-sidebar .price { font-size: 2rem; font-weight: 700; color: var(--primary); margin-bottom: 20px; }

.inquiry-buttons { display: flex; flex-direction: column; gap: 12px; margin-top: 25px; }

.btn-whatsapp-inquiry, .btn-call-inquiry {
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-whatsapp-inquiry { background: #25D366; color: white; }
.btn-whatsapp-inquiry:hover { background: #128C7E; }
.btn-call-inquiry { background: var(--primary); color: white; }
.btn-call-inquiry:hover { background: var(--primary-dark); }

.car-description { background: var(--white); padding: 30px; border-radius: 12px; box-shadow: var(--shadow); }
.car-description h3 { color: var(--secondary); margin-bottom: 15px; }

.inquiry-form-section { padding: 50px 0; background: var(--white); }

.inquiry-form { max-width: 600px; margin: 0 auto; background: var(--gray-100); padding: 30px; border-radius: 12px; }
.inquiry-form h3 { color: var(--secondary); margin-bottom: 20px; text-align: center; }

.sell-car-section { padding: 60px 0; background: var(--gray-100); }
.sell-car-form-container { max-width: 700px; margin: 0 auto; }
.sell-car-form { background: var(--white); padding: 35px; border-radius: 12px; box-shadow: var(--shadow); }
.sell-car-form h3 { color: var(--secondary); margin-bottom: 10px; text-align: center; font-size: 1.5rem; }
.sell-car-form h3 i { color: var(--primary); margin-right: 10px; }
.form-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin: 25px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-light);
}
.form-section-title:first-of-type { margin-top: 0; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 8px; color: var(--gray-700); }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }

.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }

.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover { background: var(--primary-dark); }

.contact-section { padding: 80px 0; }

.contact-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }

.contact-info h3 { color: var(--secondary); margin-bottom: 25px; }

.contact-item { display: flex; gap: 20px; margin-bottom: 25px; }

.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-item .text h4 { color: var(--secondary); margin-bottom: 5px; }

.admin-section { padding: 100px 0 50px; min-height: 100vh; background: var(--gray-100); }

.admin-login { max-width: 400px; margin: 50px auto; background: var(--white); padding: 40px; border-radius: 12px; box-shadow: var(--shadow); }
.admin-login h2 { text-align: center; color: var(--secondary); margin-bottom: 30px; }

.admin-dashboard { background: var(--white); padding: 30px; border-radius: 12px; box-shadow: var(--shadow); }

.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--gray-200); }
.admin-header h2 { color: var(--secondary); }

.btn-logout { padding: 10px 20px; background: var(--danger); color: white; border: none; border-radius: 8px; font-weight: 500; cursor: pointer; transition: var(--transition); }
.btn-logout:hover { background: #c0392b; }

.admin-tabs { display: flex; gap: 10px; margin-bottom: 25px; border-bottom: 2px solid var(--gray-200); padding-bottom: 10px; }

.admin-tab {
    padding: 12px 25px;
    background: none;
    border: none;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    transition: var(--transition);
}

.admin-tab.active { background: var(--primary); color: white; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }

.stat-card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.stat-card i { font-size: 2.5rem; color: var(--primary); margin-bottom: 15px; }
.stat-card h4 { font-size: 2rem; color: var(--secondary); margin-bottom: 5px; }
.stat-card p { font-size: 0.9rem; color: var(--gray-700); }

.admin-table { width: 100%; border-collapse: collapse; margin-top: 20px; background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); font-size: 0.9rem; }
.admin-table th, .admin-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid var(--gray-200); }
.admin-table th { background: var(--primary); color: white; font-weight: 600; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--gray-100); }
.admin-table img { width: 60px; height: 45px; object-fit: cover; border-radius: 4px; }

.status-badge { padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; }
.status-available, .status-new { background: #d4edda; color: #155724; }
.status-sold { background: #f8d7da; color: #721c24; }
.status-reserved, .status-contacted { background: #fff3cd; color: #856404; }
.status-closed { background: var(--gray-200); color: var(--gray-700); }

.admin-table .btn-edit, .admin-table .btn-delete { padding: 6px 12px; border: none; border-radius: 6px; font-size: 0.85rem; cursor: pointer; margin-right: 5px; }
.btn-edit { background: var(--primary-light); color: var(--primary); }
.btn-edit:hover { background: var(--primary); color: white; }
.btn-delete { background: #fce4e4; color: var(--danger); }
.btn-delete:hover { background: var(--danger); color: white; }

.footer { background: var(--secondary); color: white; padding: 60px 0 20px; margin-top: 80px; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-section h3 { margin-bottom: 20px; }
.footer-section p { opacity: 0.8; line-height: 1.8; }
.footer-section a { display: block; color: white; opacity: 0.8; text-decoration: none; margin-bottom: 10px; transition: var(--transition); }
.footer-section a:hover { opacity: 1; padding-left: 5px; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); opacity: 0.7; }

.social-links { display: flex; gap: 15px; margin-top: 20px; }
.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    transition: var(--transition);
}
.social-link:hover { background: var(--primary); transform: translateY(-3px); }

.btn-maps {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 10px 20px;
    background: var(--primary);
    border-radius: 8px;
    opacity: 1 !important;
}
.btn-maps:hover { background: var(--primary-dark); padding-left: 25px !important; }

.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: var(--transition);
    text-decoration: none !important;
}

.floating-whatsapp:hover { transform: scale(1.1); background: #128C7E; }
.floating-whatsapp i { text-decoration: none !important; }

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-table {
    min-width: 600px;
}

.admin-table .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.admin-table .btn-edit, 
.admin-table .btn-delete {
    padding: 5px 10px;
    font-size: 12px;
    white-space: nowrap;
}

.btn {
    padding: 8px 16px;
    font-size: 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-edit {
    background: var(--primary);
    color: white;
}

.btn-edit:hover {
    background: var(--primary-dark);
}

.btn-delete {
    background: var(--danger);
    color: white;
}

.btn-delete:hover {
    background: #c0392b;
}

.status-select {
    padding: 5px 8px;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    font-size: 12px;
    background: white;
    cursor: pointer;
}

.status-select.available { border-color: var(--success); color: var(--success); }
.status-select.reserved { border-color: var(--warning); color: var(--warning); }
.status-select.sold { border-color: var(--danger); color: var(--danger); }

@media (max-width: 992px) {
    .nav { 
        display: none; 
        width: 100%;
    }
    .nav.active { 
        display: flex; 
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 20px;
        box-shadow: var(--shadow);
        z-index: 998;
    }
    .nav-link {
        padding: 12px 0;
        border-bottom: 1px solid var(--gray-200);
        display: block;
        width: 100%;
    }
    .menu-toggle { display: block; }
    .menu-toggle.active i::before { content: "\f00d"; }
    .hero-content h1 { font-size: 2rem; }
    .inventory-layout { grid-template-columns: 1fr; }
    .filters { position: static; }
    .car-details-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero { padding: 120px 0 60px; }
    .hero-content h1 { font-size: 1.8rem; }
    .cars-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-tabs { flex-wrap: wrap; gap: 10px; }
    .admin-tab { flex: 1 1 auto; min-width: 120px; }
    .modal-content { width: 95% !important; max-width: 95% !important; margin: 10px auto !important; padding: 15px !important; }
    .admin-dashboard { padding: 10px; }
    .admin-header { flex-direction: column; gap: 15px; align-items: flex-start !important; }
    .image-preview-grid { grid-template-columns: repeat(3, 1fr) !important; }
    .car-details-layout { grid-template-columns: 1fr; }
    .car-gallery { margin-bottom: 20px; }
    .car-slider { height: 250px !important; }
    .car-slider img { object-fit: cover; width: 100%; height: 100%; }
    .car-info-sidebar h1 { font-size: 1.5rem; }
    .car-info-sidebar .price { font-size: 1.5rem; }
    .car-specs { grid-template-columns: 1fr 1fr; gap: 10px; }
    .spec-item { padding: 8px; font-size: 0.85rem; }
    .inquiry-buttons { flex-direction: column; }
    .inquiry-buttons a, .inquiry-buttons button { width: 100%; text-align: center; }
    .page-banner { padding: 60px 0; }
    .page-banner h1 { font-size: 1.5rem; }
    .car-description { margin-top: 20px; }
    .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .admin-table { min-width: 550px; }
    .admin-table .actions { display: flex !important; flex-wrap: wrap !important; gap: 5px !important; white-space: nowrap !important; }
    .admin-table td.actions { min-width: 120px; }
    .footer-content { grid-template-columns: 1fr; }
    .footer-section { text-align: center; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; text-align: center; }
}

@media (max-width: 480px) {
    .header-actions { gap: 10px; }
    .stats-grid { grid-template-columns: 1fr; }
    .admin-table th, .admin-table td { padding: 8px 5px; font-size: 0.75rem; }
    .admin-table img { width: 40px; height: 30px; }
    .btn-edit, .btn-delete { padding: 8px 10px !important; font-size: 12px !important; min-width: 50px; display: inline-block !important; }
    .image-preview-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .car-specs { grid-template-columns: 1fr; }
    .slider-thumbs { display: none; }
    .car-slider { height: 200px !important; }
    .logo { font-size: 1.2rem; }
    .floating-whatsapp { width: 50px; height: 50px; font-size: 1.5rem; bottom: 20px; right: 20px; }
    .admin-table .actions { flex-direction: row !important; }
}

img {
    max-width: 100%;
    height: auto;
}

.car-image-container {
    width: 100%;
    height: 420px;
    overflow: hidden;
    border-radius: 12px;
    position: relative;
    background: #f5f5f5;
}

.image-slider-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.image-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.image-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.image-slider .slide.active {
    opacity: 1;
}

.image-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #333;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev { left: 15px; }
.slider-arrow.next { right: 15px; }

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.slider-dots .dot:hover,
.slider-dots .dot.active {
    background: #fff;
    transform: scale(1.2);
}

.car-image-container .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.car-image-container .no-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.car-status-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.car-status-badge.status-available {
    background: #d4edda;
    color: #155724;
}

.car-status-badge.status-sold {
    background: #f8d7da;
    color: #721c24;
}

.car-status-badge.status-reserved {
    background: #fff3cd;
    color: #856404;
}

@media (max-width: 992px) {
    .car-image-container {
        height: 320px;
    }
}

@media (max-width: 576px) {
    .car-image-container {
        height: 240px;
    }
    
    .slider-arrow {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .slider-arrow.prev { left: 10px; }
    .slider-arrow.next { right: 10px; }
    
    .slider-dots .dot {
        width: 10px;
        height: 10px;
    }
}

.image-upload-container {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.upload-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.upload-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary);
}

.image-count {
    background: var(--primary);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.upload-btn-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.upload-btn {
    border: 2px dashed var(--gray-300);
    color: var(--gray-700);
    background-color: var(--gray-100);
    padding: 30px 20px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    width: 100%;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.upload-btn:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.upload-btn i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
    display: block;
}

.upload-btn-wrapper input[type=file] {
    font-size: 100px;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.image-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: var(--gray-200);
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-item .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(231, 76, 60, 0.9);
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.image-preview-item .image-order {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

.image-preview-item.main-image {
    border: 3px solid var(--primary);
}

.image-preview-item.main-image::after {
    content: 'MAIN';
    position: absolute;
    top: 5px;
    left: 5px;
    background: var(--primary);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 600;
}

.upload-progress {
    margin-top: 15px;
    display: none;
}

.upload-progress.active {
    display: block;
}

.progress-bar {
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    margin-top: 5px;
    font-size: 0.85rem;
    color: var(--gray-700);
}

.car-slider {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
}

.car-slider .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-200);
}

.car-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-thumbs {
    margin-top: 10px;
}

.slider-thumbs .swiper-slide {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    transition: var(--transition);
}

.slider-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border: 2px solid var(--primary);
}

.slider-thumbs .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-slider {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
}

.card-slider .swiper-slide {
    width: 100%;
    height: 100%;
}

.card-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-slider-pagination {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
    z-index: 10;
}

.toast {
    position: fixed;
    top: 80px;
    right: 20px;
    background: var(--white);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 9999;
    transform: translateX(150%);
    transition: transform 0.3s ease;
    max-width: 300px;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--danger);
}

.toast.info {
    border-left: 4px solid var(--primary);
}

@media (max-width: 768px) {
    .image-preview-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .upload-btn {
        padding: 40px 20px;
    }
    
    .car-slider {
        height: 250px;
    }
}
