/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  
  h1, h2, h3, p {
    margin: 0;
  }
  
  a {
    text-decoration: none;
  }
  
  /* Header Section */
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #f3f3f3;
    border-bottom: 1px solid #ddd;
    position: relative;
  }
  
  .logo {
    position: absolute;
    top: 20px;
    left: 20px;
  }
  
  .logo img {
    max-height: 140px; /* Adjust the logo size */
    width: auto;
  }
  
  .header-content {
    text-align: center;
    width: 100%;
  }
  
  .header-content h2 {
    font-size: 2rem;
    margin: 10px 0;
  }
  
  nav ul {
    display: flex;
    justify-content: center;
    gap: 120px; /* Increased spacing for headers */
    padding: 0;
    list-style: none;
    margin: 10px 0;
  }
  
  nav ul li a {
    text-decoration: none;
    color: #007BFF;
    font-size: 1rem;
    font-weight: bold;
  }
  
  .search-bar {
    margin-top: 20px;
  }
  
  .search-bar input {
    padding: 8px;
    width: 300px;
    border: 1px solid #ddd;
    border-radius: 4px;
  }
  
  .search-bar button {
    padding: 8px 15px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  
  .search-bar button:hover {
    background-color: #0056b3;
  }
  
  .auth-links {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 15px;
  }
  
  .auth-links a {
    text-decoration: none;
    color: #007BFF;
    font-size: 1rem;
    font-weight: bold;
  }
  
  .auth-links a:hover {
    text-decoration: underline;
  }
  
  /* Slideshow Section */
  .slideshow-container {
    padding: 20px;
  }
  
  .row {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
  }
  
  .slideshow {
    width: 250px; /* Square shape */
    height: 250px;
    position: relative;
    overflow: hidden;
    border: 2px solid #ccc;
    border-radius: 10px;
    background-color: #f9f9f9;
    text-align: center;
  }
  
  .slideshow h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }
  
  .slideshow img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* Footer Section */
  footer {
    background-color: #007BFF;
    color: white;
    text-align: center;
    padding: 15px 20px;
    margin-top: auto;
  }
  
  footer ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 15px;
    margin-bottom: 10px;
    padding: 0;
  }
  
  footer ul li a {
    text-decoration: none;
    color: white;
    font-size: 0.9rem;
  }
  
  footer p {
    font-size: 0.8rem;
  }
  








 /* Car Brands Section */
.car-brands {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* Grid with responsive columns */
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    max-width: 100%; /* Ensures it takes full width */
    padding: 0 20px;
    margin-bottom: 20px; /* Ensures no bottom scrolling */
    overflow: hidden;
}

/* Car Brand Button Styling */
.car-brand-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    border: 2px solid #ccc;
    border-radius: 10px;
    text-align: center;
    padding: 10px;
    height: 150px; /* Fixed height */
    max-width: 150px; /* Limit width for uniformity */
    overflow: hidden;
}

/* Adjusting image size and positioning */
.car-brand-button img {
    max-width: 100px;
    max-height: 100px;
    margin-top: 15px; /* Moves logos down to be centered */
    object-fit: contain; /* Keeps logo proportional */
    display: block;
    margin: 0 auto;
}

/* Car Brand Name Styling (Bold) */
.car-brand-button span {
    font-size: 14px;
    font-weight: bold; /* Ensures names are in bold */
    color: #333;
    margin-top: 10px; /* Adds space between logo and name */
}

/* Ensures logos are centered in their square */
.car-brand-button img {
    display: block;
    margin: 0 auto;
}

/* Makes sure the car brand buttons fit within the page */
@media (max-width: 1200px) {
    .car-brands {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); /* Slightly smaller columns on smaller screens */
    }
}

@media (max-width: 768px) {
    .car-brands {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); /* Smaller columns on mobile */
    }
}

/* Styles specific to the Car Page */
body.car-page .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #fff;
}

body.car-page .navbar {
    display: flex;
    justify-content: center; /* Centers the navigation links */
    flex-grow: 1; /* Takes up available space to center content */
}

body.car-page .navbar a {
    padding: 10px 20px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s;
}

body.car-page .navbar a:hover {
    color: #007bff;
}

body.car-page .logo {
    position: absolute;
    left: 20px; /* Move it further to the left */
    top: 20px; /* Adjust for proper vertical alignment */
    width: 150px; /* Adjust size of logo */
}

body.car-page .sign-in-register {
    position: absolute;
    right: 20px; /* Keep it on the right side */
    top: 25px; /* Align vertically with the navbar */
}

body.car-page .car-brands {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); /* Creates responsive columns */
    gap: 10px;
    padding: 20px;
    justify-items: center;
    align-items: center;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

body.car-page .car-brand-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 120px; /* Ensure each brand button is consistent in size */
    padding: 10px;
    background-color: #f1f1f1;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

body.car-page .car-brand-button img {
    width: 80px; /* Adjust logo size */
    height: auto;
    object-fit: contain;
    margin-bottom: 10px;
}

body.car-page .car-brand-button span {
    font-weight: bold; /* Make brand names bold */
    text-align: center;
}

body.car-page .car-brand-button:hover {
    transform: scale(1.05); /* Slightly enlarge on hover */
    background-color: #e6f7ff;
}

@media (max-width: 768px) {
    body.car-page .navbar {
        display: block; /* Stack nav links vertically on smaller screens */
        text-align: center;
    }

    body.car-page .logo {
        position: relative;
        left: 0;
        top: 0;
        margin-left: 20px;
    }

    body.car-page .sign-in-register {
        position: relative;
        top: 0;
        right: 0;
        margin-top: 10px;
    }
}


/* Dark mode base styles */
body.dark-mode {
  background-color: #333;
  color: #fff;
}

/* Container styles */
body.dark-mode .dashboard-container,
body.dark-mode .content-container,
body.dark-mode .main-container,
body.dark-mode .content,
body.dark-mode .business-details,
body.dark-mode .filter-section,
body.dark-mode .contact-container,
body.dark-mode .form-container {
  background-color: #444;
  color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Card styles - for any card-like containers */
body.dark-mode .setting-card,
body.dark-mode .info-card,
body.dark-mode .user-card,
body.dark-mode .listing-card,
body.dark-mode .part-card,
body.dark-mode .vehicle-card,
body.dark-mode .detail-card,
body.dark-mode .report-card {
  background-color: #555;
  color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Card headers */
body.dark-mode .setting-card h2,
body.dark-mode .info-card h2,
body.dark-mode .user-card h2,
body.dark-mode .listing-card h2,
body.dark-mode .part-card h2,
body.dark-mode .vehicle-card h2,
body.dark-mode .detail-card h2,
body.dark-mode .report-card h2,
body.dark-mode .business-details h3 {
  color: #f44336;
}

/* Card paragraphs and text */
body.dark-mode .setting-card p,
body.dark-mode .info-card p,
body.dark-mode .user-card p,
body.dark-mode .listing-card p,
body.dark-mode .part-card p,
body.dark-mode .vehicle-card p,
body.dark-mode .detail-card p,
body.dark-mode .report-card p,
body.dark-mode .content p,
body.dark-mode .filter-section p,
body.dark-mode .contact-info p,
body.dark-mode .dashboard-header p,
body.dark-mode .form-container p {
  color: #fff !important;
}

/* Card links */
body.dark-mode .setting-card a,
body.dark-mode .info-card a,
body.dark-mode .user-card a,
body.dark-mode .listing-card a,
body.dark-mode .part-card a,
body.dark-mode .vehicle-card a,
body.dark-mode .detail-card a,
body.dark-mode .report-card a {
  color: #4dabf7;
}

body.dark-mode .setting-card a:hover,
body.dark-mode .info-card a:hover,
body.dark-mode .user-card a:hover,
body.dark-mode .listing-card a:hover,
body.dark-mode .part-card a:hover,
body.dark-mode .vehicle-card a:hover,
body.dark-mode .detail-card a:hover,
body.dark-mode .report-card a:hover {
  color: #f44336;
}

/* Form styles */
body.dark-mode .form-container,
body.dark-mode .form-group,
body.dark-mode .filter-section {
  background-color: #444;
  color: #fff;
}

/* Grid containers */
body.dark-mode .settings-grid,
body.dark-mode .listings-grid,
body.dark-mode .users-grid,
body.dark-mode .parts-grid,
body.dark-mode .reports-grid {
  background-color: transparent;
}

/* Header & Navigation */
body.dark-mode header {
  background-color: #222;
}

body.dark-mode header *,
body.dark-mode footer * {
  color: #fff !important;
}

/* All labels in dark mode */
body.dark-mode label,
body.dark-mode .form-field label,
body.dark-mode .form-group label,
body.dark-mode .business-details label,
body.dark-mode .filter-section label,
body.dark-mode .contact-form label,
body.dark-mode .form-container label,
body.dark-mode .toggle-dark-mode label {
  color: #fff !important;
}

/* All inputs in dark mode */
body.dark-mode input[type="text"],
body.dark-mode input[type="email"],
body.dark-mode input[type="password"],
body.dark-mode input[type="search"],
body.dark-mode input[type="number"],
body.dark-mode input[type="tel"],
body.dark-mode input[type="url"],
body.dark-mode select,
body.dark-mode textarea,
body.dark-mode .filter-section input,
body.dark-mode .filter-section select,
body.dark-mode .form-container input,
body.dark-mode .form-container select,
body.dark-mode .form-container textarea,
body.dark-mode .form-field input,
body.dark-mode .form-field select {
  background-color: #fff !important;
  color: #000 !important;
  border: 1px solid #666;
}

/* Submit buttons and input[type="submit"] */
body.dark-mode input[type="submit"],
body.dark-mode .submit-btn,
body.dark-mode .apply-filters button {
  background-color: #f44336;
  color: #fff !important;
}

body.dark-mode input[type="submit"]:hover,
body.dark-mode .submit-btn:hover,
body.dark-mode .apply-filters button:hover {
  background-color: #d32f2f;
}

/* Input focus states */
body.dark-mode input:focus,
body.dark-mode select:focus,
body.dark-mode textarea:focus {
  border-color: #888;
  outline-color: #f44336;
}

/* Placeholders */
body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
  color: #666 !important;
}

/* Links */
body.dark-mode a:not(.auth-buttons a):not(.nav-links a) {
  color: #4dabf7 !important;
}

/* Login/Register specific styles */
body.dark-mode .form-container {
  background-color: #444;
}

body.dark-mode .form-container > p {
  color: #fff !important;
  font-weight: normal;
}

/* Appearance Settings specific styles */
body.dark-mode .toggle-dark-mode {
  color: #fff !important;
}

body.dark-mode .dashboard-container p {
  color: #fff !important;
}

body.dark-mode .form-container p a:hover {
  color: #ff8787 !important;
  text-decoration: underline;
}

/* Tables */
body.dark-mode table {
  color: #fff;
  border-color: #666;
  background-color: #444;
}

body.dark-mode td,
body.dark-mode th {
  color: #fff;
  border-color: #666;
}

/* Headers */
body.dark-mode .dashboard-header h1,
body.dark-mode .page-header h1,
body.dark-mode .section-header h1,
body.dark-mode .main-title {
  color: #fff !important;
}

/* Buttons */
body.dark-mode button:not(.submit-btn):not(.apply-filters button) {
  background-color: #fff !important;
  color: #000 !important;
  border-color: #666;
}

body.dark-mode button:not(.submit-btn):not(.apply-filters button):hover {
  background-color: #f0f0f0 !important;
}

/* List items */
body.dark-mode ul:not(footer ul) li,
body.dark-mode ol li {
  color: #fff;
}

/* Search and filter sections */
body.dark-mode .search-container,
body.dark-mode .filter-container,
body.dark-mode .sort-container {
  background-color: #444;
  color: #fff;
}

/* Help text and small text */
body.dark-mode .filter-section small,
body.dark-mode .form-container small {
  color: #ddd !important;
}

/* Status indicators */
body.dark-mode .status-badge,
body.dark-mode .tag,
body.dark-mode .label {
  background-color: #555;
  color: #fff;
}

/* Modal/popup windows */
body.dark-mode .modal,
body.dark-mode .popup,
body.dark-mode .dialog {
  background-color: #444;
  color: #fff;
  border-color: #666;
}

/* Scrollbars */
body.dark-mode *::-webkit-scrollbar {
  background-color: #333;
}

body.dark-mode *::-webkit-scrollbar-thumb {
  background-color: #666;
}

/* Tabs and navigation elements */
body.dark-mode .tab,
body.dark-mode .nav-item,
body.dark-mode .breadcrumb {
  background-color: #444;
  color: #fff;
}

body.dark-mode .tab.active,
body.dark-mode .nav-item.active {
  background-color: #555;
  color: #fff;
}

/* Alert and notification boxes */
body.dark-mode .alert,
body.dark-mode .notification,
body.dark-mode .message-box {
  background-color: #555;
  color: #fff;
  border-color: #666;
}

.reset-btn {
  padding: 10px 20px;
  background-color: #666;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

.reset-btn:hover {
  background-color: #777;
}

body.dark-mode .reset-btn {
  background-color: #555;
  color: #fff !important;
}

body.dark-mode .reset-btn:hover {
  background-color: #666;
}

.loading-state {
  text-align: center;
  padding: 20px;
  color: #666;
}

.listing-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}


.status-select {
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #ddd;
  margin-left: 10px;
  cursor: pointer;
}

.status.active {
  color: #4CAF50;
}

.status.inactive {
  color: #FFA000;
}

.status.sold {
  color: #F44336;
}


.preview-container {
  position: relative;
  display: inline-block;
  margin: 5px;
  width: 150px;
}

.preview-container img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
}

.delete-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(255, 0, 0, 0.8);
  color: white;
  border: none;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  font-size: 18px;
}

.delete-btn:hover {
  background: rgba(255, 0, 0, 1);
}

.thumbnails-preview, .additional-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.carousel-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 10; /* Add this to ensure buttons are above images */
  padding: 0 10px; /* Add padding for better spacing */
}

.carousel-controls button {
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  padding: 15px;
  cursor: pointer;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background-color 0.3s ease;
}

.carousel-controls button:hover {
  background-color: rgba(0, 0, 0, 0.8);
}


/* Add this to your CSS */
.status {
  padding: 5px 10px;
  border-radius: 4px;
  display: inline-block;
  margin: 5px 0;
  font-weight: bold;
}

.status.active {
  background-color: #4CAF50;
  color: white;
}

.status.inactive {
  background-color: #FFA726;
  color: white;
}

.status.sold {
  background-color: #F44336;
  color: white;
}


/* Add this to your existing style section */
.time-filter {
  display: flex;
  align-items: center;
  margin-left: auto; /* This will push it to the right */
}

.time-filter select {
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 16px;
  background-color: #fff;
  cursor: pointer;
}

.time-filter select:hover {
  border-color: #f44336;
}

.search-sort {
  display: flex;
  justify-content: flex-end; /* Changed to align to the right */
  align-items: center;
  margin-bottom: 20px;

}










.password-requirements {
  font-size: 0.9em;
  color: #666;
  margin: 10px 0;
  padding: 10px;
  background-color: #f8f8f8;
  border-radius: 4px;
}

.password-requirements ul {
  margin: 5px 0;
  padding-left: 20px;
  list-style-type: none;
}

.password-requirements li {
  margin: 3px 0;
  font-size: 0.85em;
}

.password-requirements li::before {
  content: "•";
  color: #f44336;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}


textarea {
  font-family: Arial, sans-serif;
  min-height: 100px;
  line-height: 1.5;
  margin-bottom: 15px;
}

textarea:focus {
  outline: none;
  border-color: #f44336;
  box-shadow: 0 0 5px rgba(244, 67, 54, 0.2);
}


.listing-card .status-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.listing-card .status {
    padding: 5px 10px;
    border-radius: 4px;
    color: white;
}

.listing-card .status.active {
    background-color: #4CAF50;
}

.listing-card .status.inactive {
    background-color: #f44336;
}

.listing-card .status.sold {
    background-color: #2196F3;
}

.delete-btn {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}










.listing-card .status-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.listing-card .status {
    padding: 5px 10px;
    border-radius: 4px;
    color: white;
}

.listing-card .status.active {
    background-color: #4CAF50;
}

.listing-card .status.inactive {
    background-color: #f44336;
}

.listing-card .status.sold {
    background-color: #2196F3;
}

.delete-btn {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}












.listing-card {
  position: relative;
}

.status-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}

.delete-btn {
  padding: 5px 10px;
  background-color: #f44336;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.status {
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 14px;
}

.status.active {
  background-color: #4CAF50;
  color: white;
}

.status.inactive {
  background-color: #FFA726;
  color: white;
}

.status.sold {
  background-color: #F44336;
  color: white;
}