/* SS Motors Dealer - Dynamic Theme System */
:root {
  /* Theme Colors - Can be overridden by admin settings */
  --primary-color: #C8102E;
  --secondary-color: #333333;
  --accent-color: #10B981;
  --font-main: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  
  /* Base Colors */
  --black: #000000;
  --white: #FFFFFF;
  --red: var(--primary-color);
  --red-dark: #A00D25;
  --gray-light: #F8F9FA;
  --gray-medium: #E9ECEF;
  --gray-dark: #6C757D;
  --green: var(--accent-color);
  
  /* Design tokens - Can be overridden by theme */
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
  --shadow-hover: 0 4px 8px rgba(0,0,0,0.15);
  
  /* Typography scale */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.875rem;  /* 30px */
  --text-4xl: 2.25rem;   /* 36px */
  --text-5xl: 3rem;      /* 48px */
  
  /* Spacing scale */
  --space-1: 0.25rem;    /* 4px */
  --space-2: 0.5rem;     /* 8px */
  --space-3: 0.75rem;    /* 12px */
  --space-4: 1rem;       /* 16px */
  --space-5: 1.25rem;    /* 20px */
  --space-6: 1.5rem;     /* 24px */
  --space-8: 2rem;       /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  
  /* Container widths */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  
  /* Transitions */
  --transition: all 0.2s ease;
  --transition-slow: all 0.3s ease;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  font-size: var(--text-base);
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--red);
  color: var(--white);
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 10000;
  font-weight: 600;
}

.skip-link:focus {
  top: 6px;
}

/* Focus States */
*:focus {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

button:focus,
.btn:focus {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

a:focus {
  outline: 2px solid var(--red);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 1rem 0;
  font-weight: 700;
  line-height: 1.2;
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.9rem;
  color: var(--gray-dark);
}

.breadcrumbs a {
  color: var(--red);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs span {
  color: var(--gray-dark);
}

/* Vehicle Gallery Carousel */
.vehicle-gallery {
  margin-bottom: 2rem;
}

.carousel-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.carousel-slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  display: none;
}

.carousel-slide.active {
  display: block;
}

.carousel-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

/* Legacy carousel styles - keeping for compatibility */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 1rem;
  cursor: pointer;
  font-size: 1.5rem;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray-medium);
  cursor: pointer;
  transition: background 0.3s ease;
}

.indicator.active {
  background: var(--red);
}

.indicator:hover {
  background: var(--gray-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; color: var(--red); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin: 0 0 1rem 0;
}

a {
  color: var(--red);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #A00D25;
}

/* Layout */
.container {
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (min-width: 640px) {
  .container { padding: 0 var(--space-6); }
}

@media (min-width: 1024px) {
  .container { padding: 0 var(--space-8); }
}

/* Utility Classes */
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }
.text-5xl { font-size: var(--text-5xl); }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.m-0 { margin: 0; }
.m-1 { margin: var(--space-1); }
.m-2 { margin: var(--space-2); }
.m-3 { margin: var(--space-3); }
.m-4 { margin: var(--space-4); }
.m-5 { margin: var(--space-5); }
.m-6 { margin: var(--space-6); }
.m-8 { margin: var(--space-8); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.p-0 { padding: 0; }
.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

.pt-0 { padding-top: 0; }
.pt-1 { padding-top: var(--space-1); }
.pt-2 { padding-top: var(--space-2); }
.pt-3 { padding-top: var(--space-3); }
.pt-4 { padding-top: var(--space-4); }
.pt-5 { padding-top: var(--space-5); }
.pt-6 { padding-top: var(--space-6); }
.pt-8 { padding-top: var(--space-8); }

.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: var(--space-1); }
.pb-2 { padding-bottom: var(--space-2); }
.pb-3 { padding-bottom: var(--space-3); }
.pb-4 { padding-bottom: var(--space-4); }
.pb-5 { padding-bottom: var(--space-5); }
.pb-6 { padding-bottom: var(--space-6); }
.pb-8 { padding-bottom: var(--space-8); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

/* Navigation */
.nav {
  background: var(--black);
  color: var(--white);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.nav-links a {
  color: var(--white);
  font-weight: 500;
  transition: color 0.2s ease;
}

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

/* Dropdown Navigation */
.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--black);
  min-width: 200px;
  box-shadow: var(--shadow-hover);
  border-radius: var(--radius);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1001;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  border: 1px solid var(--gray-dark);
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--white);
  transition: all 0.2s ease;
  text-decoration: none;
}

.dropdown-menu a:hover {
  background: var(--red);
  color: var(--white);
}

/* Mobile dropdown support */
@media (max-width: 768px) {
  .nav-dropdown {
    position: static;
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--gray-dark);
    margin-left: 1rem;
    border-radius: 0;
  }
  
  .nav-dropdown:hover .dropdown-menu {
    transform: none;
  }
}

.nav-cta {
  background: var(--red);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background 0.2s ease;
}

.nav-cta:hover {
  background: #A00D25;
  color: var(--white);
}

/* Mobile Navigation */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Show hamburger menu only on mobile */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
}

/* Off-Canvas Navigation */
.drawer {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.drawer.open {
  display: block;
}

/* Hide drawer on desktop */
@media (min-width: 769px) {
  .drawer {
    display: none !important;
  }
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  cursor: pointer;
}

.drawer-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 280px;
  background: var(--black);
  color: var(--white);
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
  padding: var(--space-6);
}

.drawer.open .drawer-panel {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--white);
}

.drawer-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: var(--text-2xl);
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius);
  transition: var(--transition);
}

.drawer-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

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

.drawer-nav li {
  margin-bottom: var(--space-2);
}

.drawer-nav a {
  display: block;
  color: var(--white);
  text-decoration: none;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  transition: var(--transition);
  font-weight: 500;
}

.drawer-nav a:hover,
.drawer-nav a.active {
  background: var(--red);
  color: var(--white);
}

.drawer-subnav {
  list-style: none;
  margin: 0;
  padding: 0;
  margin-left: var(--space-4);
  margin-top: var(--space-2);
}

.drawer-subnav a {
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-4);
}

.drawer-cta {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  font-size: 1rem;
}

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

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

.btn-secondary {
  background: var(--white);
  color: var(--black);
  border: 2px solid var(--black);
}

.btn-secondary:hover {
  background: var(--black);
  color: var(--white);
}

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

.btn-ghost:hover {
  background: var(--red);
  color: var(--white);
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition-slow);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card-image-container {
  position: relative;
  overflow: hidden;
}

/* Vehicle Image Carousel */
.vehicle-carousel {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.carousel-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

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

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.6);
  color: var(--white);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  backdrop-filter: blur(2px);
}

.carousel-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  transition: all 0.3s ease;
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  z-index: 10;
}

.carousel-controls:hover {
  background: rgba(0,0,0,0.8);
  transform: translateY(-50%) scale(1.1);
}

.vehicle-carousel:hover .carousel-controls {
  opacity: 1;
  visibility: visible;
}

.carousel-controls.carousel-prev {
  left: 10px;
}

.carousel-controls.carousel-next {
  right: 10px;
}

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

.carousel-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.3s ease;
}

.carousel-indicator.active {
  background: var(--white);
}

/* View Details Button */
.view-details-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(220, 38, 38, 0.9);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  backdrop-filter: blur(2px);
  z-index: 5;
}

.view-details-btn:hover {
  background: var(--red);
  transform: translate(-50%, -50%) scale(1.05);
}

.card:hover .view-details-btn {
  opacity: 1;
  visibility: visible;
}

/* Hide view details button when hovering over carousel controls */
/* Keep CTA visible on card hover but not when interacting with controls */
.vehicle-carousel:hover ~ .view-details-btn { opacity: 1; visibility: visible; }

/* Fallback for single image */
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: var(--space-6);
}

.card-title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin: 0 0 var(--space-2) 0;
  color: var(--black);
  line-height: 1.3;
}

.card-price {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--red);
  margin: 0 0 var(--space-2) 0;
}

.card-meta {
  color: var(--gray-dark);
  font-size: var(--text-sm);
  margin: 0 0 var(--space-3) 0;
  font-weight: 500;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('/assets/img/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
  padding: 4rem 0;
  margin-bottom: 3rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--black);
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--gray-medium);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--red);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-error {
  color: var(--red);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* Modals */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
}

.modal[hidden] {
  display: none;
}

.modal-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--black);
  color: var(--white);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem 0;
}

.page-link {
  padding: 0.5rem 1rem;
  border: 2px solid var(--gray-medium);
  border-radius: var(--radius);
  color: var(--black);
  text-decoration: none;
  transition: all 0.2s ease;
}

.page-link:hover,
.page-link.active {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

/* Footer */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

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

.footer-section h3 {
  color: var(--red);
  margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
  color: var(--gray-medium);
  margin-bottom: 0.5rem;
}

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

.footer-bottom {
  border-top: 1px solid var(--gray-dark);
  padding-top: 1rem;
  text-align: center;
  color: var(--gray-medium);
}

/* Status Badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-available {
  background: #10B981;
  color: var(--white);
}

.badge-pending {
  background: #F59E0B;
  color: var(--white);
}

.badge-sold {
  background: var(--gray-dark);
  color: var(--white);
}

/* Vehicle Detail */
.vehicle-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.vehicle-hero {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
}

.vehicle-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.vehicle-thumb {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.vehicle-thumb:hover {
  opacity: 0.8;
}

.vehicle-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.vehicle-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 1rem;
}

.vehicle-specs {
  list-style: none;
  padding: 0;
}

.vehicle-specs li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-light);
}

.vehicle-specs strong {
  display: inline-block;
  width: 120px;
  color: var(--gray-dark);
}

/* Admin Styles */
.admin-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: var(--black);
  color: var(--white);
  padding: 2rem 0;
}

.admin-sidebar h2 {
  color: var(--red);
  padding: 0 1rem;
  margin-bottom: 2rem;
}

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

.admin-nav a {
  display: block;
  padding: 1rem;
  color: var(--white);
  text-decoration: none;
  transition: background 0.2s ease;
}

.admin-nav a:hover,
.admin-nav a.active {
  background: var(--red);
}

.admin-content {
  padding: 2rem;
  background: var(--gray-light);
}

.admin-header {
  background: var(--white);
  padding: 1rem 2rem;
  margin: -2rem -2rem 2rem -2rem;
  border-bottom: 1px solid var(--gray-medium);
}

.admin-header h1 {
  margin: 0;
  color: var(--black);
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 0.5rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .vehicle-gallery {
    grid-template-columns: 1fr;
  }
  
  .vehicle-info {
    grid-template-columns: 1fr;
  }
  
  .admin-layout {
    grid-template-columns: 1fr;
  }
  
  .admin-sidebar {
    display: none;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.hidden { display: none; }
.visible { display: block; }

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--gray-medium);
  border-radius: 50%;
  border-top-color: var(--red);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
