@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

:root {
  --sand-light: #fffef0;
  --sand-cream: #fff9c4;
  --sand-strong: #ecd799;
  --accent-gold: #ffde79;
  --accent-gold-dark: #dcbb56;
  --text-dark: #000000;
  --text-muted: #333333;
  --card-surface: #ffffff;
  --border-soft: rgba(0, 0, 0, 0.1);
  --shadow-soft: rgba(0, 0, 0, 0.15);
  --button-gradient: linear-gradient(135deg, #ffca28, #ffc107);
  --button-gradient-hover: linear-gradient(135deg, #ffe082, #ffca28);
  --panel-gradient: linear-gradient(145deg, #ffffff, #fff9c4);
  --sidebar-bg: #f5f5f5;
  --sidebar-text: #6b7280;
  --sidebar-text-active: #1e40af;
  --sidebar-active-bg: rgba(59, 130, 246, 0.12);
  --sidebar-width: clamp(248px, 24vw, 310px);
  --layout-padding: clamp(1rem, 3vw, 2rem);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  color: var(--text-dark);
  background: linear-gradient(145deg, var(--sand-light), #fff6df 60%);
}

body.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--sand-light), var(--sand-cream) 60%, #ffeec8);
  padding: 2rem;
}

body.dashboard-page {
  display: block;
  min-height: 100vh;
  margin: 0;
  background: #f4f6fb;
}

.auth-card {
  width: min(1100px, 95vw);
  min-height: 520px;
  border-radius: 32px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(300px, 1fr);
  background: var(--panel-gradient);
  box-shadow: 0 40px 90px var(--shadow-soft);
  padding: 0.5rem;
}

.dashboard-app {
  display: flex;
  align-items: stretch;
  min-height: 100vh;
  width: 100%;
  padding: 0;
  gap: 0;
  background: #f4f6fb;
}

.dashboard-sidebar {
  background: #ffffff;
  color: var(--sidebar-text);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-right: 1px solid rgba(15, 23, 42, 0.08);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  max-width: 100%;
  flex-shrink: 0;
  min-height: 100vh;
  overflow-y: auto;
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
  z-index: 20;
}

.sidebar-brand .brand-logo {
  width: 54px;
  height: auto;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: nowrap;
  min-width: 0;
}

.sidebar-brand .brand-logo {
  flex-shrink: 0;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.2));
}

.sidebar-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.sidebar-brand-title {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.35em;
  font-size: 1.2rem;
  text-transform: uppercase;
  line-height: 1.2;
  background: linear-gradient(120deg, #111827, #4338ca);
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 4px 10px rgba(67, 56, 202, 0.25);
}

.sidebar-brand-subtitle {
  font-size: 0.85rem;
  color: rgba(88, 28, 135, 0.8);
  letter-spacing: 0.25em;
  white-space: nowrap;
  text-transform: uppercase;
  text-shadow: 0 3px 8px rgba(88, 28, 135, 0.2);
}

.sidebar-user-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #ececed;
  border-radius: 20px;
  padding: 1.2rem;
  margin: 0.5rem 0 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.9rem;
  align-items: center;
}

.sidebar-user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fde68a, #fbbf24);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #111;
}

.sidebar-user-info {
  display: flex;
  flex-direction: column;
}

.sidebar-user-name {
  margin: 0;
  font-weight: 600;
  color: #111827;
}

.sidebar-user-role {
  margin: 0;
  font-size: 0.8rem;
  color: #6b7280;
}

.sidebar-user-action {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  background: #f3f4f6;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-user-action svg {
  width: 18px;
  height: 18px;
}

.sidebar-user-action:hover {
  color: #b91c1c;
  background: #fee2e2;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.sidebar-nav-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  color: rgba(0, 0, 0, 0.45);
  margin: 0 0 0.75rem;
}

.sidebar-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-nav ul li {
  border-radius: 16px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.sidebar-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 1rem;
  text-decoration: none;
  color: var(--sidebar-text);
  position: relative;
}

.sidebar-link:hover {
  color: var(--sidebar-text-active);
}

.sidebar-nav ul li.active,
.sidebar-nav ul li:hover {
  background: rgba(59, 130, 246, 0.15);
}

.sidebar-nav ul li.active .sidebar-link {
  color: var(--sidebar-text-active);
  font-weight: 600;
}

.nav-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e3a8a;
}

.nav-icon svg {
  width: 18px;
  height: 18px;
}

.nav-details {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.nav-label {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
}

.nav-details small {
  font-size: 0.78rem;
  color: #94a3af;
  line-height: 1.3;
}

.nav-indicator {
  width: 6px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(180deg, #60a5fa, #2563eb);
}

.sidebar-footer {
  margin-top: auto;
  padding: 1rem;
  border-radius: 20px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px dashed rgba(37, 99, 235, 0.3);
  text-align: center;
}

.sidebar-footer p {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: #1f2937;
}

.sidebar-support-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.85rem;
  transition: opacity 0.2s ease;
}

.sidebar-support-btn:hover {
  opacity: 0.9;
}

.dashboard-main {
  margin-left: var(--sidebar-width);
  padding: var(--layout-padding);
  min-height: 100vh;
  width: calc(100% - var(--sidebar-width));
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard-header .eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: rgba(15, 28, 63, 0.6);
}

.dashboard-header h1 {
  margin: 0.2rem 0 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stats-grid.alt-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.stats-card {
  background: #fff;
  border-radius: 18px;
  padding: 1.3rem;
  box-shadow: 0 20px 30px rgba(6, 18, 48, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stats-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 1000px) {
  .dashboard-app {
    flex-direction: column;
    gap: 1rem;
  }

  .dashboard-sidebar {
    position: relative;
    width: 100%;
    min-height: auto;
    height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: none;
  }

  .dashboard-main,
  .dashboard-main--minimal {
    margin-left: 0;
    width: 100%;
    padding: 1.25rem;
  }
}

.stat-label {
  margin: 0;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: rgba(15, 28, 63, 0.5);
}

.stat-value {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
}

.stat-note {
  margin: 0;
  color: rgba(15, 28, 63, 0.6);
  font-size: 0.9rem;
}

.accent-red .stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff5c5c, #ff7f7f);
}

.accent-green .stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2ecc71, #56d48c);
}

.accent-blue .stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

.accent-orange .stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.section-card {
  background: #fff;
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 20px 30px rgba(8, 16, 48, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-heading h2 {
  margin: 0;
}

.table-wrapper {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

table th,
table td {
  padding: 0.9rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  color: #333;
}

table th {
  color: rgba(0, 0, 0, 0.6);
  font-weight: 600;
}

.badge {
  display: inline-flex;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
}

.badge-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.pending-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.pending-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  background: rgba(243, 244, 255, 0.8);
}

.pending-actions {
  display: flex;
  gap: 0.4rem;
}

.driver-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.driver-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  background: rgba(247, 187, 68, 0.18);
}

.driver-card span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.button {
  border: none;
  border-radius: 10px;
  padding: 0.45rem 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  background: var(--button-gradient);
  color: #1f160a;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(229, 161, 33, 0.35);
}

.button.ghost {
  background: transparent;
  border: 1px solid rgba(48, 29, 8, 0.25);
  color: #1f160a;
}

.illustration {
  background: linear-gradient(160deg, var(--sand-cream), var(--sand-strong));
  padding: 3rem 2rem;
  display: flex;
  border-radius: 20px;
  align-items: center;
  justify-content: center;
}

.illustration-inner {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.illustration-figure {
  position: relative;
  width: 220px;
  height: 220px;
  margin-top: 1rem;
}

.illustration-laptop,
.illustration-person {
  position: absolute;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 40px rgba(15, 23, 42, 0.2);
}

.illustration-laptop {
  width: 150px;
  height: 90px;
  top: 35px;
  left: 20px;
  background: radial-gradient(circle at 20% 20%, #f7ce63, #d18a0b);
}

.illustration-person {
  width: 130px;
  height: 150px;
  bottom: 0;
  right: 0;
  background: radial-gradient(circle at 30% 25%, #f7d56d, #f2b115);
}

.pill-soft {
  display: inline-flex;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(247, 183, 51, 0.15);
  color: #a15c00;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.login-panel {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  background: #fff;
}

.panel-heading h1 {
  margin: 0;
  font-size: 2rem;
}

.panel-heading p {
  margin: 0.35rem 0 0;
  color: rgba(3, 18, 63, 0.65);
}

.login-form .input-group {
  position: relative;
}

.logo-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logo svg {
  width: 60px;
  height: auto;
  display: block;
}

.brand-logo img {
  width: 68px;
  height: auto;
  object-fit: contain;
  display: block;
}

.login-form .input-group input {
  width: 100%;
  padding-right: 2.5rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  padding-bottom: 0.6rem;
  font-size: 1rem;
  color: #3c3c3c;
  transition: border-color 0.2s ease;
}

.login-form .input-group input:focus {
  border-bottom-color: #c48c0c;
  outline: none;
}

.input-icon {
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  opacity: 0.6;
}

.primary-btn {
  border: none;
  background: linear-gradient(135deg, #f2c94c, #e0a800);
  color: #111;
  padding: 0.95rem 1.25rem;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  margin-top: 0.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(224, 168, 0, 0.45);
}

.login-footer {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.login-footer .social-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.social-icons {
  display: flex;
  gap: 0.5rem;
}

.social-icons span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.08);
  font-weight: 700;
}

.login-shell {
  width: 100%;
  max-width: 420px;
  padding: 1.5rem;
}

@media (max-width: 960px) {
  body.auth-page {
    padding: clamp(1rem, 4vw, 2rem);
    align-items: flex-start;
  }

  .auth-card {
    grid-template-columns: 1fr;
    width: min(640px, 100%);
    row-gap: 1rem;
  }

  .login-panel {
    order: 2;
    padding: 2.25rem 2rem;
    border-radius: 24px;
  }

  .illustration {
    order: 1;
    border-radius: 24px;
    min-height: 260px;
    text-align: center;
  }

  .illustration-inner {
    align-items: center;
  }

  .illustration h2,
  .illustration p {
    margin-left: auto;
    margin-right: auto;
    max-width: 360px;
  }
}

@media (max-width: 600px) {
  .auth-card {
    padding: 0.75rem;
    border-radius: 24px;
  }

  .login-panel {
    padding: 1.75rem 1.35rem;
  }

  .logo-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .illustration {
    padding: 2rem 1.5rem;
    min-height: 220px;
  }

  .illustration-figure {
    width: 180px;
    height: 180px;
    margin: 0 auto;
  }
}

.login-card {
  background: rgba(255, 255, 255, 0.04);

  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 25px 80px rgba(5, 10, 40, 0.5);
}

.login-card header {
  margin-bottom: 1.5rem;
}

.login-card h1 {
  margin: 0;
  font-size: 1.9rem;
  letter-spacing: 0.02em;
}

.login-card p {
  margin: 0.5rem 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.login-form label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
}

.login-form input {
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 1rem;
  border: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.login-form input:focus {
  outline: none;
  border-color: #4d7cff;
}

.login-form button {
  margin-top: 0.5rem;
  border: none;
  border-radius: 12px;
  padding: 0.95rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #f2c94c, #e0a800);
  color: #111;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(224, 168, 0, 0.35);
}

.login-foot {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.muted-link {
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.6);
  text-decoration: none;
}

.muted-link:hover {
  color: #c48c0c;
}

.message {
  /* margin: 10; */
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  font-size: 0.95rem;
}

.message.success {
  margin-top: 10;
  margin-bottom: 15;
  /* background: rgba(63, 124, 17, 0.665); */
  color: #0aa605;
}

.message.error {
  background: rgba(244, 67, 54, 0.14);
  color: #ffb3b0;
}

.message .hint {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
}

.verify-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  /* Removed background-color to show body background */
  padding: 1rem;
}

.verify-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  max-width: 500px;
  /* Increased width for 6 digits */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.verify-header {
  margin-bottom: 2rem;
}

.verify-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.5rem 0;
}

.verify-header .subhead {
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
}

.verify-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pin-board {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.pin-inputs {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.pin-digit {
  width: 3rem;
  /* Reduced size slightly to fit 6 */
  height: 3.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
  color: #111827;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  outline: none;
  transition: all 0.2s ease;
  padding: 0;
}

.pin-digit:focus {
  border-color: #6366f1;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.button.full-width {
  width: 100%;
  justify-content: center;
  padding: 0.75rem;
  font-size: 1rem;
  border-radius: 8px;
  background-color: #6366f1;
  color: white;
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.button.full-width:hover {
  background-color: #4f46e5;
}

.verify-footer {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #6b7280;
}

.link-text {
  color: #6366f1;
  text-decoration: none;
  font-weight: 500;
}

.link-text:hover {
  text-decoration: underline;
}

/* Hide old styles if not used elsewhere */
.verify-layout,
.illustration-panel,
.verify-panel {
  display: none;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 0 25px rgba(255, 255, 255, 0.7);
}

.illustration-top {
  height: 30px;
  width: 70%;
  margin: 20px auto 0;
  border-radius: 999px;
  background: #b7c7ff;
}

.illustration-screen {
  margin: 25px auto;
  width: 85%;
  height: 200px;
  background: #0f1c4c;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: #fff;
  text-align: center;
  padding: 1rem;
}

.illustration-title {
  font-size: 1rem;
  letter-spacing: 0.2em;
}

.illustration-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.illustration-strip {
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, #4d7cff, #6fb1ff);
  border-radius: 999px;
}

.verify-panel {
  background: #fff;
  border-radius: 28px;
  padding: 2rem;
  box-shadow: 0 35px 50px rgba(9, 16, 61, 0.15);
  color: #0b1c3a;
}

.verify-panel header h1 {
  margin: 0.3rem 0 0;
  font-size: 2rem;
  color: #03123f;
}

.verify-panel .subhead {
  color: rgba(3, 18, 63, 0.7);
}

.verify-panel .message.hero {
  background: #e2f6d9;
  color: #0a7c3f;
  border: 1px solid #9cd0a8;
  box-shadow: none;
}

.primary-btn {
  width: 100%;
  text-align: center;
  background: #1c45ff;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 20px 30px rgba(28, 69, 255, 0.35);
}

.verify-footer {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.dashboard-shell {
  max-width: 1200px;
  margin: 2.5rem auto;
  width: 100%;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.panel-header h1 {
  margin: 0;
  font-size: 2rem;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.subhead {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.header-actions {
  display: flex;
  gap: 0.5rem;
}

.button {
  border: none;
  border-radius: 10px;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
  color: #1f160a;
  background: var(--button-gradient);
  transition: transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  box-shadow: 0 12px 30px rgba(229, 161, 33, 0.35);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(48, 29, 8, 0.2);
  color: #1f160a;
}

.button:hover {
  transform: translateY(-1px);
  background: var(--button-gradient-hover);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.stats-card {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(247, 183, 51, 0.4);
  box-shadow: 0 20px 40px rgba(33, 18, 6, 0.08);
}

.stat-label {
  margin: 0;
  font-size: 0.85rem;
  color: #a15c00;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.stat-value {
  margin: 0.6rem 0 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.tab-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.panel {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 1.25rem;
  border: 1px solid rgba(247, 183, 51, 0.3);
  box-shadow: 0 20px 35px rgba(33, 18, 6, 0.15);
}

.panel h2 {
  margin: 0;
  font-size: 1.2rem;
}

.panel-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.driver-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.driver-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(247, 183, 51, 0.12);
  border: 1px solid rgba(247, 183, 51, 0.4);
  gap: 1rem;
}

.driver-card p {
  margin: 0.15rem 0;
  color: #1f160a;
}

.driver-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.driver-card form button {
  border: none;
  background: transparent;
  padding: 0;
  width: 100%;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.pill {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid transparent;
  font-weight: 600;
}

.pill-success {
  background: rgba(76, 175, 80, 0.15);
  border-color: rgba(76, 175, 80, 0.35);
}

.pill-danger {
  background: rgba(244, 67, 54, 0.15);
  border-color: rgba(244, 67, 54, 0.35);
}

.empty-state {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

.hero {
  padding: 0.85rem 1rem;
}

/* Delete Dropdown Styles */
.delete-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.25rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  min-width: 180px;
  overflow: hidden;
}

.delete-option {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  background: white;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: background-color 0.15s ease;
  border-bottom: 1px solid #f3f4f6;
}

.delete-option:last-child {
  border-bottom: none;
}

.delete-option:hover {
  background-color: #f9fafb;
}

.delete-option.danger {
  color: #dc2626;
}

.delete-option.danger:hover {
  background-color: #fef2f2;
}

/* Responsive Tables */
@media (max-width: 1024px) {

  .table-wrapper table,
  .table-wrapper thead,
  .table-wrapper tbody,
  .table-wrapper th,
  .table-wrapper td,
  .table-wrapper tr {
    display: block;
  }

  .table-wrapper thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  .table-wrapper tr {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 16px;
    padding: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  }

  .table-wrapper td {
    border: none;
    padding: 8px 0;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    text-align: right;
    border-bottom: 1px solid #f8fafc;
  }

  .table-wrapper td:last-child {
    border-bottom: none;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    justify-content: flex-end;
  }

  .table-wrapper td:before {
    content: attr(data-label);
    font-weight: 600;
    color: #64748b;
    font-size: 0.875rem;
    margin-right: 16px;
    text-align: left;
    flex-shrink: 0;
    width: 40%;
  }

  .table-wrapper .driver-info,
  .table-wrapper .fw-bold,
  .table-wrapper .text-muted,
  .table-wrapper .small {
    text-align: right;
    word-break: break-all;
  }

  .table-wrapper .driver-info {
    flex-direction: row-reverse;
    width: 100%;
    justify-content: flex-start;
  }

  .table-wrapper td>div:not(.driver-info),
  .table-wrapper td>span {
    max-width: 60%;
    margin-left: auto;
  }

  .table-wrapper .actions-cell {
    width: 100%;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
  }

  .table-wrapper td:last-child:before {
    display: none;
  }
}