/* === CWVS Dark Theme (Steel & Asphalt) === */

/* General layout */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #2C2C2C;   /* dark asphalt grey */
    color: #f5f5f5;              /* light text for contrast */
}

/* Page wrapper */
.container {
    max-width: 960px;
    margin: 40px auto;
    padding: 20px;
    background: #1E1E1E;         /* dark inner container */
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.4);
}

/* Headings */
h1, h2, h3 {
    color: #D32F2F;              /* red accent */
    margin-bottom: 20px;
}

/* Forms */
form {
    display: flex;
    flex-direction: column;
}

label {
    margin-top: 10px;
    font-weight: bold;
    color: #f5f5f5;
}

input[type="text"],
input[type="number"],
textarea,
select {
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #444;
    border-radius: 4px;
    font-size: 16px;
    background-color: #333;
    color: #f5f5f5;
}

textarea {
    resize: vertical;
}

input[type="submit"],
button {
    background-color: #D32F2F;
    color: #fff;
    padding: 10px 15px;
    border: none;
    margin-top: 20px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover,
button:hover {
    background-color: #B71C1C;
}

/* Navigation bar */
nav {
    background-color: #1E1E1E;
    padding: 10px 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

nav a {
    display: inline-block;
    background-color: transparent;
    color: #f5f5f5;
    padding: 10px 16px;
    margin: 5px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease, background-color 0.2s ease;
}

nav a:hover {
    color: #D32F2F;
    background-color: #2C2C2C;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #111;
    color: #aaa;
    font-size: 14px;
    border-top: 1px solid #333;
}

/* Dashboard navigation */
.dashboard-nav {
    background-color: #1E1E1E;
    padding: 10px 0;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.4);
}

.dashboard-nav a {
    display: inline-block;
    background-color: #D32F2F;
    color: white;
    padding: 10px 16px;
    margin: 5px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.dashboard-nav a:hover {
    background-color: #B71C1C;
}
/* Scrap Car Quote Page */
.quote-page .card {
  background-color: #1E1E1E !important;
  color: #f5f5f5 !important;
  border: 1px solid #333 !important;
}

.quote-page h1 {
  color: #D32F2F !important;
}

.quote-page p {
  color: #ddd !important;
}

.quote-page .form-control {
  background-color: #333 !important;
  color: #fff !important;
  border: 1px solid #444 !important;
}

.quote-page .form-control::placeholder {
  color: #aaa !important;
}

.quote-page .alert-warning {
  background-color: #2C2C2C !important;
  color: #ffcc00 !important;
  border: 1px solid #555 !important;
}

.quote-page .btn {
  background-color: #D32F2F !important;
  color: #fff !important;
  font-weight: 600;
}

.quote-page .btn:hover {
  background-color: #B71C1C !important;
}
/* Center fixes for nav + footer */
.navbar-nav {
  text-align: center;
}

footer {
  text-align: center !important;
  background-color: #111;
  color: #aaa;
  border-top: 1px solid #333;
  padding: 20px;
}
/* Transport Booking Page */
.booking-page .card {
  background-color: #1E1E1E !important;
  border: 1px solid #333 !important;
  color: #f5f5f5 !important;
}

.booking-page .form-control {
  background-color: #333 !important;
  border: 1px solid #444 !important;
  color: #fff !important;
}

.booking-page .form-control::placeholder {
  color: #aaa !important;
}

.booking-page .btn {
  background-color: #D32F2F !important;
  color: #fff !important;
  font-weight: 600;
}

.booking-page .btn:hover {
  background-color: #B71C1C !important;
}
/* Cars for Sale Boxes - Dark Theme */
/* Car Sales Boxes */
.car-item, .car-card {
  background-color: #1E1E1E !important; /* Dark background for car boxes */
  color: #f5f5f5 !important;           /* Light text for readability */
  border: 1px solid #333 !important;    /* Dark border to match theme */
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.car-item img, .car-card img {
  width: 100%;
  max-height: 200px; /* Limit image height */
  object-fit: cover; /* Ensure image covers the space */
  border-radius: 4px;
}

.car-item h3, .car-card h3 {
  color: #D32F2F !important; /* Red title for emphasis */
}

.car-item .description, .car-card .description {
  color: #ddd !important; /* Light grey description */
  font-size: 1rem;
  line-height: 1.5;
}

.car-item p, .car-card p {
  color: #ddd !important; /* Description text color */
  font-size: 1rem;
  line-height: 1.5;
}
.car-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.car-item img {
  width: 100%;
  height: 200px;
  object-fit: contain;        /* shows full car without cropping */
  background-color: #ffffff;  /* fills behind if image doesn’t cover fully */
  border-radius: 4px;
  margin-bottom: 10px;
  display: block;
}
/* --- SOLD Overlay Image --- */
.sold-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  z-index: 10;
}

.sold-stamp {
  width: 70%;
  max-width: 240px;
  opacity: 0.9;
  transform: rotate(-12deg);
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.6));
}

/* 📱 Mobile responsiveness */
@media (max-width: 768px) {
  .sold-stamp {
    width: 55%;
    max-width: 160px;
    transform: rotate(-10deg);
  }
}

@media (max-width: 480px) {
  .sold-stamp {
    width: 45%;
    max-width: 130px;
    transform: rotate(-8deg);
  }
}
