:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --success-color: #10b981;
    
    --bg-color: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: #ffffff;
    --bg-input: #f1f5f9;
    
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    
    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    --bg-color: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --bg-input: #334155;
    
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-light: #64748b;
    
    --border-color: #334155;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    transition: var(--transition);
    min-height: 100vh;
}

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

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.navbar {
    background: var(--bg-card);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo i {
    font-size: 28px;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

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

.theme-toggle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: var(--bg-input);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--primary-color);
    color: white;
}

.admin-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--text-light);
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
}

.admin-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    width: 45px;
    height: 45px;
    border-radius: var(--radius-sm);
    border: none;
    background: var(--bg-input);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 20px;
}

main {
    padding-top: 80px;
}

section {
    padding: 80px 0;
}

.hero {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-color) 100%);
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

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

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.hero-visual {
    position: absolute;
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.car-illustration {
    font-size: 200px;
    color: var(--primary-color);
    position: relative;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: pulse-ring 2s infinite;
    opacity: 0;
}

.pulse-ring.delay-1 { animation-delay: 0.5s; }
.pulse-ring.delay-2 { animation-delay: 1s; }

@keyframes pulse-ring {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
}

.diagnose-section {
    background: var(--bg-secondary);
}

.diagnose-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-primary);
}

.input-group select,
.input-group input,
.input-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 15px;
    transition: var(--transition);
}

.input-group select:focus,
.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-group textarea {
    min-height: 150px;
    resize: vertical;
}

.symptoms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.symptom-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.symptom-checkbox:hover {
    background: var(--primary-color);
    color: white;
}

.symptom-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.diagnose-result {
    max-width: 800px;
    margin: 40px auto 0;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-header {
    background: linear-gradient(135deg, var(--success-color), var(--secondary-color));
    color: white;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.result-icon i {
    font-size: 50px;
}

.result-title h3 {
    font-size: 24px;
    margin-bottom: 5px;
}

.result-content {
    padding: 30px;
}

.diagnosis-section,
.causes-section,
.severity-section,
.recommendations-section {
    margin-bottom: 30px;
}

.diagnosis-section h4,
.causes-section h4,
.severity-section h4,
.recommendations-section h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.diagnosis-section h4 i {
    color: var(--primary-color);
}

.causes-section h4 i {
    color: var(--warning-color);
}

.severity-section h4 i {
    color: var(--danger-color);
}

.recommendations-section h4 i {
    color: var(--secondary-color);
}

.diagnosis-section ul,
.causes-section ul,
.recommendations-section ul {
    list-style: none;
    padding-right: 20px;
}

.diagnosis-section ul li,
.causes-section ul li,
.recommendations-section ul li {
    position: relative;
    padding: 10px 0;
    padding-right: 25px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.diagnosis-section ul li::before,
.causes-section ul li::before,
.recommendations-section ul li::before {
    content: '•';
    position: absolute;
    right: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 20px;
}

.severity-bar {
    height: 20px;
    background: var(--bg-input);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.severity-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease;
}

.workshops-section {
    background: var(--bg-color);
}

.workshops-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.workshops-filters select,
.workshops-filters input {
    padding: 12px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 14px;
    min-width: 150px;
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-box i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.search-box input {
    width: 100%;
    padding-right: 45px;
}

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

.workshop-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
    overflow: hidden;
}

.workshop-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.workshop-images {
    width: 100%;
    height: 150px;
    margin-bottom: 15px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.workshop-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.workshop-location {
    margin: 15px 0;
}

.location-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #4285F4, #34A853);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
}

.location-link:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

.workshop-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.workshop-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.workshop-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.workshop-type {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-input);
    border-radius: 15px;
    font-size: 12px;
    color: var(--text-secondary);
}

.workshop-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.workshop-details span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 14px;
}

.workshop-details i {
    color: var(--primary-color);
    width: 20px;
}

.workshop-services {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-tag {
    padding: 6px 12px;
    background: var(--bg-input);
    border-radius: 15px;
    font-size: 12px;
    color: var(--text-secondary);
}

.cars-section {
    background: var(--bg-color);
}

.cars-actions {
    text-align: center;
    margin-bottom: 30px;
}

.cars-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.cars-filters select,
.cars-filters input {
    padding: 12px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 14px;
    min-width: 150px;
}

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

.car-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.car-images {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.car-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.car-images-nav {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
}

.car-images-nav span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}

.car-images-nav span.active {
    background: white;
}

.car-price {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 16px;
}

.car-info {
    padding: 20px;
}

.car-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.car-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.car-detail {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-secondary);
    font-size: 13px;
}

.car-detail i {
    color: var(--primary-color);
}

.car-location {
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 15px;
}

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

.car-actions .btn {
    flex: 1;
    justify-content: center;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background: #128C7E;
}

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

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

.modal-car-detail {
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
}

.modal-car-detail .close {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    background: rgba(0,0,0,0.5);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.car-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.car-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    overflow-y: auto;
    display: flex !important;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
}

.modal-car-full {
    background: var(--bg-color);
    width: 100%;
    max-width: 1000px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    margin: 20px auto;
    animation: slideUp 0.3s ease;
}

.close-modal {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    background: rgba(0,0,0,0.6);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    z-index: 100;
    border: none;
}

.close-modal:hover {
    background: var(--danger-color);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.car-full-detail {
    padding: 40px 0;
    min-height: 100vh;
    background: var(--bg-color);
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 30px;
    transition: var(--transition);
}

.back-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.car-full-content {
    display: flex;
    flex-direction: column;
}

.car-full-gallery {
    background: #1a1a1a;
    padding: 15px;
    width: 100%;
}

.full-main-image {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.full-main-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.fullscreen-icon {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.full-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 15px 10px;
    background: #1a1a1a;
    border-radius: var(--radius-sm);
    margin-top: 10px;
}

.full-thumbnails img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
    flex-shrink: 0;
    border: 2px solid transparent;
}

.full-thumbnails img:hover,
.full-thumbnails img.active {
    opacity: 1;
    border-color: var(--primary-color);
}
}

.car-video-section {
    margin-top: 20px;
}

.car-video-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 18px;
}

.video-player {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
}

.video-player video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #000;
}

.car-full-info {
    background: var(--bg-card);
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.car-full-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.car-full-header h1 {
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.car-full-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.car-full-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.spec-box {
    background: var(--bg-input);
    padding: 15px;
    border-radius: var(--radius-sm);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.spec-box i {
    font-size: 24px;
    color: var(--primary-color);
}

.spec-title {
    font-size: 12px;
    color: var(--text-light);
}

.spec-val {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.car-full-desc {
    background: var(--bg-input);
    padding: 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 25px;
}

.car-full-desc h3 {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.car-full-desc p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.car-full-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.car-full-contact .btn {
    justify-content: center;
    padding: 16px;
    font-size: 16px;
}

.image-fullscreen,
.video-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.image-fullscreen img,
.video-fullscreen video {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
}

.close-fullscreen {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 10001;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-fullscreen:hover {
    background: rgba(255,255,255,0.4);
}

.car-detail-images-section {
    background: #f5f5f5;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.car-detail-main-image {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.car-detail-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.car-detail-images {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px;
    background: #fff;
    border-radius: var(--radius-sm);
}

.car-detail-images img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
    flex-shrink: 0;
    border: 2px solid transparent;
}

.car-detail-images img.active,
.car-detail-images img:hover {
    opacity: 1;
    border-color: var(--primary-color);
}

.car-detail-info {
    padding: 20px;
}

.car-detail-header {
    margin-bottom: 20px;
}

.car-detail-header h2 {
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.car-detail-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.car-detail-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
}

.spec-item i {
    font-size: 20px;
    color: var(--primary-color);
    width: 30px;
}

.spec-item div {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 12px;
    color: var(--text-light);
}

.spec-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.car-detail-description {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
}

.car-detail-description h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.car-detail-description p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.car-detail-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.car-detail-contact .btn {
    justify-content: center;
    padding: 15px;
    font-size: 16px;
}

.modal-large {
    max-width: 700px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 25px;
}

.modal-large .form-group textarea {
    min-height: 100px;
}

.modal-large .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.modal-large .form-group {
    margin-bottom: 15px;
}

.modal-large .form-group label {
    font-size: 13px;
    margin-bottom: 6px;
}

.modal-large .form-group input,
.modal-large .form-group select,
.modal-large .form-group textarea {
    padding: 10px 12px;
    font-size: 14px;
}

.modal-large h2 {
    font-size: 22px;
    margin-bottom: 20px;
    text-align: center;
}

.modal-large .btn-block {
    margin-top: 10px;
    padding: 14px;
    font-size: 16px;
}

.about-section {
    background: var(--bg-secondary);
}

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

.feature-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

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

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer {
    background: var(--bg-secondary);
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
}

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

.footer-section .logo {
    margin-bottom: 15px;
}

.footer-section p {
    color: var(--text-secondary);
}

.footer-section h4 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-section a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-section a i {
    margin-left: 10px;
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-lg);
    max-width: 450px;
    width: 90%;
    position: relative;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.close:hover {
    color: var(--danger-color);
}

.modal-content h2 {
    margin-bottom: 25px;
    color: var(--text-primary);
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 14px;
}

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

.admin-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-color);
    z-index: 3000;
    overflow-y: auto;
}

.admin-header {
    background: var(--bg-card);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
}

.admin-header h2 {
    color: var(--primary-color);
}

.admin-tabs {
    display: flex;
    gap: 10px;
    padding: 20px 40px;
    background: var(--bg-secondary);
    overflow-x: auto;
}

.tab-btn {
    padding: 12px 24px;
    border: none;
    background: var(--bg-card);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}

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

.admin-content {
    padding: 40px;
    min-height: calc(100vh - 150px);
    overflow-y: auto;
    position: relative;
    z-index: 1;
}

.tab-content {
    display: none;
    min-height: 500px;
    padding: 20px;
    margin: 20px 0;
    border-radius: var(--radius-md);
}

.tab-content.active {
    display: block;
}

.add-form {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.add-form h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.data-table {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow-x: auto;
}

.data-table h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.brand-item {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 15px;
}

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

.brand-header h4 {
    color: var(--primary-color);
    margin: 0;
}

.brand-actions {
    display: flex;
    gap: 8px;
}

.models-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.model-tag {
    background: var(--bg-card);
    padding: 8px 15px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.model-tag i {
    cursor: pointer;
    transition: var(--transition);
    padding: 2px 5px;
}

.model-tag i.fa-edit {
    color: var(--primary-color);
}

.model-tag i.fa-edit:hover {
    opacity: 0.7;
}

.model-tag i.fa-times {
    color: var(--error-color);
}

.model-tag i.fa-times:hover {
    opacity: 0.7;
}

.car-thumb {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.car-thumb:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.no-models {
    color: var(--text-secondary);
    font-style: italic;
}

.btn-small {
    padding: 8px 15px;
    font-size: 14px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 15px;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 600;
}

td {
    color: var(--text-secondary);
}

.delete-btn {
    padding: 8px 15px;
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

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

.edit-btn {
    padding: 8px 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    margin-left: 5px;
}

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

.renew-btn {
    padding: 8px 15px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    margin-left: 5px;
}

.renew-btn:hover {
    background: #059669;
}

.status-active {
    padding: 5px 12px;
    background: var(--secondary-color);
    color: white;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.status-expired {
    padding: 5px 12px;
    background: var(--danger-color);
    color: white;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.status-pending {
    padding: 5px 12px;
    background: var(--warning-color);
    color: white;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.approve-btn {
    padding: 8px 15px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    margin-left: 5px;
}

.approve-btn:hover {
    background: #059669;
}

.reject-btn {
    padding: 8px 15px;
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    margin-left: 5px;
}

.reject-btn:hover {
    background: #dc2626;
}

.view-btn {
    padding: 8px 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    margin-left: 5px;
}

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

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text-primary);
    color: var(--bg-color);
    padding: 15px 30px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 4000;
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 992px) {
    .hero-visual {
        display: none;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links,
    .auth-buttons {
        display: none;
    }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-color);
        padding: 20px;
        box-shadow: var(--shadow-lg);
        z-index: 1000;
    }
    
    .nav-links.active a {
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-actions {
        display: none;
    }
    
    .nav-actions.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 320px;
        left: 0;
        right: 0;
        background: var(--bg-color);
        padding: 20px;
        z-index: 999;
        gap: 10px;
        box-shadow: var(--shadow-lg);
    }
    
    .nav-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
    }
    
    .mobile-menu-btn.active i::before {
        content: "\f00d";
    }
    
    .nav-container {
        flex-wrap: wrap;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .diagnose-form {
        padding: 25px;
    }
    
    .symptoms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .workshops-filters {
        flex-direction: column;
    }
    
    .workshops-filters select,
    .search-box {
        width: 100%;
    }
    
    section {
        padding: 50px 0;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .modal-large .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-large {
        padding: 20px 15px;
        width: 98%;
    }
    
    .modal-large h2 {
        font-size: 20px;
    }
    
    .cars-filters {
        flex-direction: column;
    }
    
    .cars-filters select,
    .cars-filters .search-box {
        width: 100%;
    }
    
    .modal-car-detail {
        max-height: 95vh;
    }
    
    .car-detail-main-image {
        height: 300px;
    }
    
    .car-detail-images img {
        width: 65px;
        height: 50px;
    }
    
    .admin-tabs {
        padding: 15px 20px;
    }
    
    .admin-content {
        padding: 20px;
    }
    
    .car-detail-modal {
        padding: 10px;
    }
    
    .modal-car-full {
        margin: 10px auto;
    }
    
    .car-full-content {
        flex-direction: column;
    }
    
    .full-main-image {
        height: 280px;
    }
    
    .car-full-specs {
        grid-template-columns: 1fr 1fr;
    }
    
    .car-full-header h1 {
        font-size: 18px;
    }
    
    .car-full-price {
        font-size: 24px;
    }
    
    .close-modal {
        top: 10px;
        left: 10px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}
    
    .car-full-content {
        grid-template-columns: 1fr;
    }
    
    .full-main-image {
        height: 300px;
    }
    
    .car-full-info {
        position: static;
    }
    
    .car-full-specs {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-large {
        width: 100%;
        justify-content: center;
    }
    
    .symptoms-grid {
        grid-template-columns: 1fr;
    }
    
    .workshop-card {
        padding: 20px;
    }
    
    .modal-content {
        padding: 20px 15px;
    }
    
    .modal-large {
        max-height: 85vh;
        padding: 15px;
    }
    
    .modal-large .form-group input,
    .modal-large .form-group select {
        padding: 12px 10px;
        font-size: 14px;
    }
    
    .modal-large .btn-block {
        padding: 12px;
        font-size: 15px;
    }
    
    .car-actions {
        flex-direction: column;
    }
    
    .car-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .car-detail-content {
        grid-template-columns: 1fr;
    }
    
    .car-detail-main-image {
        height: 280px;
    }
    
    .car-detail-images img {
        width: 70px;
        height: 55px;
    }
    
    .car-detail-specs {
        grid-template-columns: 1fr;
    }
    
    .car-detail-header h2 {
        font-size: 18px;
    }
    
    .car-detail-price {
        font-size: 24px;
    }
    
    .car-detail-images-section {
        padding: 10px;
    }
    
    .car-detail-info {
        padding: 15px;
    }
    
    .car-full-specs {
        grid-template-columns: 1fr 1fr !important;
    }
    
    .full-main-image {
        height: 250px !important;
    }
    
    .car-full-info {
        padding: 20px 15px;
    }
}

.my-ad-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.my-ad-card img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.my-ad-info {
    flex: 1;
    min-width: 200px;
}

.my-ad-info h4 {
    margin: 0 0 10px 0;
    color: var(--text-primary);
}

.my-ad-info p {
    margin: 5px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.my-ad-info .price {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
}

.my-ad-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.status-sold {
    background: var(--error-color);
    color: white;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
}

.btn-danger {
    background: var(--error-color);
    color: white;
    border: none;
}

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