:root {
    --primary-color: #3e2723;      /* Dark Brown */
    --secondary-color: #4e342e;    /* Medium Brown */
    --accent-color: #795548;       /* Light Brown */
    --dark-color: #1a1a1a;         /* Black */
    --darker-color: #0d0d0d;       /* Darker Black */
    --gold-color: #d4af37;         /* Gold accent */
    --text-light: #f5f5f5;         /* Light text */
    --text-muted: #9e9e9e;         /* Muted text */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f8f8;
}

/* Navbar customization */
.navbar-dark.bg-dark {
    background: linear-gradient(135deg, #1a1a1a 0%, #3e2723 100%) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    border-bottom: 2px solid var(--gold-color);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--gold-color) !important;
}

/* Hero section */
.hero-section {
    background: linear-gradient(rgba(62, 39, 35, 0.85), rgba(26, 26, 26, 0.9)), 
                url('../images/hero-bg.jpg') center/cover no-repeat;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--gold-color);
}

/* Car cards */
.car-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(62, 39, 35, 0.3);
    border-color: var(--accent-color);
}

.car-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.car-card .price-tag {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.3rem;
}

.car-card .badge-status {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Forms */
.form-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    border-top: 3px solid var(--gold-color);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

/* Stats cards */
.stat-card {
    background: linear-gradient(135deg, #3e2723 0%, #1a1a1a 100%);
    color: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--gold-color);
}

.stat-card h3 {
    font-size: 2rem;
    font-weight: bold;
    margin: 10px 0;
    color: var(--gold-color);
}

.stat-card .icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

/* Sidebar */
.sidebar {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    min-height: calc(100vh - 100px);
    border-top: 3px solid var(--gold-color);
}

.sidebar .nav-link {
    color: #333;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 5px;
    transition: all 0.3s;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: var(--primary-color);
    color: white;
}

/* Admin Sidebar */
.admin-sidebar {
    background: #1a1a1a;
}

.admin-sidebar .sidebar-header {
    background: #0d0d0d;
    border-bottom: 1px solid var(--gold-color);
}

.admin-sidebar .nav-link {
    color: #bdbdbd;
}

.admin-sidebar .nav-link:hover {
    background: #2c2c2c;
    color: var(--gold-color);
}

.admin-sidebar .nav-link.active {
    background: var(--primary-color);
    color: white;
    border-left: 3px solid var(--gold-color);
}

/* Tables */
.table thead {
    background: var(--primary-color);
    color: white;
}

.table-hover tbody tr:hover {
    background: rgba(62, 39, 35, 0.05);
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 10px 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--accent-color);
}

/* Alerts */
.alert-success {
    background: #4caf50;
    color: white;
    border: none;
}

.alert-danger {
    background: #f44336;
    color: white;
    border: none;
}

.alert-info {
    background: var(--accent-color);
    color: white;
    border: none;
}

/* Modal */
.modal-header {
    background: var(--primary-color);
    color: white;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

/* Pagination */
.pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .page-link {
    color: var(--primary-color);
}

/* Footer */
footer {
    background: #1a1a1a;
    border-top: 3px solid var(--gold-color);
}

footer h5 {
    color: var(--gold-color);
}

footer a {
    color: #bdbdbd !important;
    text-decoration: none;
}

footer a:hover {
    color: var(--gold-color) !important;
}

/* Hero Slideshow */
.hero-slideshow .carousel-item::before {
    background: linear-gradient(rgba(26, 26, 26, 0.6), rgba(62, 39, 35, 0.8));
}

.hero-car-price {
    color: var(--gold-color);
}

/* Brand Logos */
.brand-logos {
    background: #f5f5f5;
}

.brand-logo-item .brand-icon {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--gold-color);
}

/* Car Request Section */
.car-request-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #3e2723 100%);
    color: white;
}

.car-request-form {
    border-top: 3px solid var(--gold-color);
}

/* WhatsApp Bubble */
.whatsapp-bubble a {
    background: #25D366;
}

/* Loading spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .car-details-image {
        height: 250px;
    }
}