/* public/css/style.css – Cleaned & Unified */

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: #061a2b;
  color: white;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header (new design) */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 80px;
  background: #061a2b;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 35px;
  height: 35px;
}

.logo h2 {
  color: #00ff9c;
  font-size: 24px;
}

nav a {
  margin: 0 15px;
  text-decoration: none;
  color: white;
  font-size: 18px;
}

nav a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.btn {
  background: #00ff9c;
  border: 2px solid #000501c4;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

.btn:hover {
  background: #00cc7a;
  box-shadow: 0 0 15px rgba(0, 255, 156, 0.5);
}

/* Main content area – centered, with max-width */
main {
  flex: 1;
  width: 85%;             /* use percentage for flexibility */
  margin: 2rem auto;
  padding: 0 2rem;
}

/* Headings – dark theme */
h1, h2, h3, h4 {
  color: white;
  margin-bottom: 1rem;
}

h1 {
  border-bottom: 2px solid #00ff9c;
  padding-bottom: 0.5rem;
}

/* General form styles – dark (for add vehicle, etc.) */
form:not(.login-form) {   /* exclude login page forms (they have their own styles) */
  background: #0a2d45;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 255, 156, 0.2);
  max-width: 500px;
  margin: 0 auto;
}

form:not(.login-form) div {
  margin-bottom: 1rem;
}

form:not(.login-form) label {
  display: block;
  margin-bottom: 0.3rem;
  color: #9ec3d9;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"] {
  width: 100%;
  padding: 0.8rem;
  background: #1e3a5a;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  color: white;
  transition: 0.2s;
}

input:focus {
  outline: 2px solid #00ff9c;
}

button:not(.login-btn):not(.register-btn) {  /* exclude toggle buttons */
  background-color: #00ff9c;
  color: #061a2b;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

button:not(.login-btn):not(.register-btn):hover {
  background-color: #00cc7a;
  box-shadow: 0 0 10px #00ff9c;
}

/* Vehicle & Report Items (dashboard) */
.vehicle-item, .report-item {
  background: #0a2d45;
  padding: 1.2rem;
  margin-bottom: 1rem;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 255, 156, 0.2);
  border-left: 4px solid #00ff9c;
}

.vehicle-item h3 a, .report-item a {
  color: #00ff9c;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
}

.vehicle-item h3 a:hover, .report-item a:hover {
  text-decoration: underline;
}

.vehicle-item p, .report-item p {
  margin: 0.5rem 0 0;
  color: #9ec3d9;
}

/* Report Detail Page */
#report-details {
  background: #0a2d45;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 255, 156, 0.2);
}

#report-details h2, #report-details h3 {
  color: white;
}

#report-details h3 {
  border-bottom: 1px solid #00ff9c;
  padding-bottom: 0.3rem;
}

#report-details h4 {
  color: #9ec3d9;
}

#report-details ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  color: #ccc;
}

/* Quick Check Form on Home */
#quick-check {
  max-width: 400px;
  margin: 2rem 0;
  background: #0a2d45;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 255, 156, 0.2);
}

#quick-check input {
  width: 100%;
  margin-bottom: 1rem;
}

/* ========== Home page specific sections ========== */
.hero {
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2));
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px;
}

.hero-text h1 {
  font-size: 48px;
  margin-bottom: 20px;
  border: none;
}

.hero-text p {
  margin-bottom: 25px;
  color: #ccc;
}

.vin-box input {
  padding: 15px;
  width: 250px;
  border: none;
  border-radius: 8px;
}

.vin-box button {
  padding: 15px 25px;
  background: #00ff9c;
  border: 2px solid #000501c4;
  border-radius: 8px;
  margin-left: 10px;
  cursor: pointer;
  font-weight: 600;
}

.features {
  display: flex;
  justify-content: space-around;
  padding: 40px;
  background: #08233a;
}

.feature h3 {
  font-size: 30px;
  color: #00ff9c;
}

.how {
  text-align: center;
  padding: 60px 20px;
  color: white;
}

.steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
}

.step {
  position: relative;
  padding: 15px 40px;
  border-radius: 8px;
  background: linear-gradient(90deg, #08233a, #08233a);
  font-weight: 500;
}

.step::after {
  content: "";
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 20px solid #1a2a6c;
}

.step:last-child::after {
  display: none;
}

.cars {
  background: #021a2b;
  padding: 80px 20px;
  text-align: center;
  color: white;
}

.cars-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding: 20px;
}

.car-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #0a2d45;
  padding: 20px 40px;
  width: 400px;
  border-radius: 15px;
  transition: 0.3s;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.car-card:hover {
  transform: translateY(-8px);
  background: #0f3c5c;
}

.car-icon {
  font-size: 28px;
}

.car-info h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.car-info p {
  margin: 3px 0 0;
  color: #9ec3d9;
}

.reports {
  display: flex;
  height: 500px;
}

.left {
  width: 50%;
  background: url('/images/diago.jpg') center/cover no-repeat;
  position: relative;
}

.overlay {
  background: rgba(0,0,0,0.55);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 80px;
}

.overlay h1 {
  color: white;
  font-size: 48px;
  margin: 0;
  border: none;
}

.overlay h2 {
  color: #4da3ff;
  font-size: 60px;
  margin: 0;
}

.right {
  width: 50%;
  background: #08233a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.list {
  display: flex;
  gap: 80px;
}

.list ul {
  list-style: none;
  padding: 0;
}

.list li {
  color: white;
  font-size: 20px;
  margin-bottom: 20px;
}

/* Footer (new design) */
footer {
  background-color: #244059;
  padding: 30px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  color: #f1eeee;
}

.footer-section {
  flex: 1 1 250px;
  margin: 10px;
}

footer h2, footer h3 {
  margin-top: 0;
  color: #f2eeee;
}

footer ul {
  list-style: none;
  padding: 0;
}

footer ul li {
  margin: 5px 0;
}

footer ul li a {
  text-decoration: none;
  color: #00ff9c;
}

footer ul li a:hover {
  text-decoration: underline;
}

.live-support-btn {
  background-color: #00ff9c;
  color: #061a2b;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
  font-weight: 600;
}

.live-support-btn:hover {
  background-color: #00cc7a;
}

/* Alerts (optional) */
.alert {
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  border: 1px solid transparent;
}
.alert-success {
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}
.alert-error {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

/* Responsive */
@media (max-width: 768px) {
  header {
    padding: 20px;
    flex-direction: column;
    gap: 15px;
  }
  nav a {
    margin: 0 8px;
  }
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
  }
  .hero-text h1 {
    font-size: 36px;
  }
  .features {
    flex-wrap: wrap;
    gap: 20px;
  }
  .steps {
    flex-direction: column;
  }
  .step::after {
    display: none;
  }
  .reports {
    flex-direction: column;
    height: auto;
  }
  .left, .right {
    width: 100%;
    height: 300px;
  }
  .list {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }
  footer {
    flex-direction: column;
    text-align: center;
  }
}

/* Make hero full width (already full width as it's outside main) 
.home-page main {
  max-width: none;
  margin: 0;
  padding: 0;
}*/