/* =====================
   GENERAL
===================== */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #eef1f5;
}

/* =====================
   HEADER
===================== */
header {
  background: #0a2540;
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav a {
  color: white;
  margin-left: 15px;
  text-decoration: none;
  font-weight: bold;
}

/* =====================
   HERO
===================== */
.hero {
  background:
    linear-gradient(to right, rgba(10,37,64,0.85), rgba(31,79,216,0.85)),
    url("../images/hero.jpg") center / cover no-repeat;
  padding: 80px 40px;
  color: white;
}

.hero button {
  margin-top: 20px;
  padding: 15px 25px;
  background: #ffb703;
  border: none;
  font-size: 16px;
  cursor: pointer;
  border-radius: 6px;
}

.hero button:hover {
  transform: scale(1.05);
  transition: 0.2s;
}

/* =====================
   LAYOUT
===================== */
.layout {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  max-width: 1400px;
  margin: 40px auto;
}

.sidebar {
  width: 240px;
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  position: sticky;
  top: 100px;
}

.sidebar-link {
  display: block;
  padding: 12px 14px;
  margin-bottom: 10px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  color: #0a2540;
  background: #f4f6f8;
}

.sidebar-link:hover {
  background: #0a2540;
  color: #ffffff;
}

.content {
  flex: 1;
  min-width: 0;
}

/* =====================
   CONTENT BACKGROUND
===================== */
.content-bg {
  background: linear-gradient(
    180deg,
    #f7f9fc 0%,
    #eef3f9 50%,
    #e6edf6 100%
  );
  padding: 60px 0;
}

.section {
  margin-bottom: 60px;
  scroll-margin-top: 90px;
}

/* =====================
   CARDS (INDEX)
===================== */
.cards {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 30px;
}

.card {
  width: 260px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow:
    0 8px 20px rgba(0,0,0,0.12),
    inset 0 1px 0 rgba(255,255,255,0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 14px 30px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.7);
}

.card img {
  width: 100%;
  height: 130px;
  object-fit: contain;
  background: #f4f6f8;
  padding: 15px;
}

.card-body {
  padding: 16px;
  font-weight: 600;
  background: linear-gradient(to bottom, #ffffff, #f1f4f8);
  border-top: 1px solid #dde3ea;
}

/* =====================
   VEHICLE TABLE (DASHBOARD)
===================== */
.vehicle-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
}

.vehicle-table th,
.vehicle-table td {
  padding: 14px;
  text-align: center;
}

.vehicle-table th {
  background: #0a2540;
  color: white;
}

.vehicle-table tr {
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
  cursor: pointer;
}

.vehicle-table tr:hover {
  transform: scale(1.01);
}

/* =====================
   STATUS COLORS (CORECT)
===================== */
.status-green {
  background: #c8f7c5;
  border-left: 6px solid #2ecc71;
}

.status-yellow {
  background: #fff3b0;
  border-left: 6px solid #f1c40f;
}

.status-red {
  background: #f7c5c5;
  border-left: 6px solid #e74c3c;
}

/* =====================
   FOOTER
===================== */
footer {
  background: #0a2540;
  color: white;
  text-align: center;
  padding: 20px;
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 900px) {
  .cards {
    flex-direction: column;
    align-items: center;
  }

  .layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    position: relative;
    top: 0;
  }
}
/* =========================
   DASHBOARD VEHICULE
========================= */

.vehicle-table {
  width: 95%;
  margin: 30px auto;
  border-collapse: separate;
  border-spacing: 0 12px;
  font-size: 14px;
}

.vehicle-table thead th {
  background: #0a2540;
  color: white;
  padding: 14px;
  text-align: center;
  font-weight: 600;
}

.vehicle-table tbody tr {
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
  cursor: pointer;
}

.vehicle-table tbody tr:hover {
  transform: scale(1.01);
}

.vehicle-table td {
  padding: 14px;
  text-align: center;
  font-weight: 500;
}

/* STATUS DOCUMENTE */
.green {
  border-left: 8px solid #2ecc71;
}

.yellow {
  border-left: 8px solid #f1c40f;
}

.red {
  border-left: 8px solid #e74c3c;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .vehicle-table {
    font-size: 12px;
  }
}

.doc-form {
  max-width: 500px;
  background: #fff;
  padding: 25px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.doc-form label {
  display: block;
  margin-top: 15px;
  font-weight: 600;
}

.doc-form input {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
}

.doc-form button {
  margin-top: 25px;
  padding: 12px;
  background: #0a2540;
  color: #fff;
  border: none;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
}
