/**
 * KaamEasy — Driver app premium shell (load after style.css)
 * Matches premium service-pro / admin-premium quality: DM Sans, glass header, gradient bg.
 */

body.driver-premium {
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  color: #0f172a;
  background:
    radial-gradient(circle at 84% 10%, rgba(15, 157, 143, 0.12), transparent 42%),
    radial-gradient(circle at 15% 20%, rgba(18, 115, 222, 0.12), transparent 40%),
    linear-gradient(180deg, #f8fbff, #f2f8ff);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
}

/* Kill default dark header from style.css for premium */
body.driver-premium > header {
  background: transparent !important;
  color: inherit !important;
  border-bottom: none !important;
}

/* Premium header shell */
.dp-shell {
  position: sticky;
  top: 0;
  z-index: 300;
  padding: 14px 5% 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid #e8eef8;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}

.dp-shell--simple {
  padding-bottom: 14px;
}

.dp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 4px;
}

.dp-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #0f172a;
}

.dp-brand img {
  height: 40px;
  width: auto;
  display: block;
}

.dp-pill {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e6f4ff;
  border: 1px solid #dbeafe;
  color: #0b65c8;
}

/* Nav grid (same idea as dashboard inline) */
body.driver-premium .driver-top-nav {
  width: 100%;
  margin-top: 8px;
  background: #fff;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  padding: 12px;
}

body.driver-premium .driver-top-nav ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

body.driver-premium .driver-top-nav ul li a {
  display: block;
  padding: 9px 11px;
  border-radius: 10px;
  color: #334155 !important;
  text-decoration: none !important;
  font-size: 0.86rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

body.driver-premium .driver-top-nav ul li a:hover {
  background: #f8fbff;
  color: #1273de !important;
}

body.driver-premium .driver-top-nav ul li a.active {
  background: linear-gradient(135deg, #0f9d8f, #1273de);
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.15);
}

/* Mobile menu button */
.dp-menu-btn {
  display: none;
  border: 1px solid #dbeafe;
  background: #fff;
  color: #0f172a;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

/* Main content */
body.driver-premium .services {
  flex: 1;
  padding: 28px 5% 56px !important;
  text-align: left !important;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

body.driver-premium .services h2 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin: 0 0 18px !important;
}

body.driver-premium .services > p {
  color: #475569;
  line-height: 1.55;
}

/* Cards */
body.driver-premium .card-container {
  gap: 16px !important;
}

body.driver-premium .card {
  background: #fff !important;
  border: 1px solid #dbeafe !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  backdrop-filter: none;
  color: #0f172a !important;
}

body.driver-premium .card h3 {
  color: #0f172a !important;
}

/* Forms */
body.driver-premium .booking-form input,
body.driver-premium .booking-form select,
body.driver-premium .booking-form textarea,
body.driver-premium .booking-form button {
  border-radius: 12px;
}

body.driver-premium .booking-form input,
body.driver-premium .booking-form select,
body.driver-premium .booking-form textarea {
  background: #fbfffe !important;
  border: 1px solid #dbeafe !important;
  color: #0f172a !important;
}

body.driver-premium .booking-form button,
body.driver-premium button {
  background: linear-gradient(135deg, #0f9d8f, #1273de) !important;
  color: #fff !important;
  border: none !important;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

body.driver-premium .booking-form button:hover,
body.driver-premium button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 157, 143, 0.35);
}

body.driver-premium a {
  color: #1273de;
}

body.driver-premium .services a[style*="color:white"],
body.driver-premium header a {
  color: inherit;
}

/* Hub / auth pages */
.driver-hub-main {
  flex: 1;
  padding: 48px 6% 64px;
  max-width: 720px;
  margin: 0 auto;
}

.driver-hub-main h1 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.driver-hub-main > p {
  color: #475569;
  line-height: 1.55;
  margin: 0 0 28px;
}

.driver-hub-main .drv-hub h1 {
  margin: 0 0 10px;
}

.driver-hub-main .drv-hub > p {
  color: #475569;
  margin: 0 0 28px;
}

.drv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.drv-actions a {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.drv-actions a.primary {
  background: linear-gradient(135deg, #0f9d8f, #1273de);
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(15, 157, 143, 0.35);
}

.drv-actions a.secondary {
  background: #fff;
  color: #334155 !important;
  border: 1px solid #dbeafe;
}

.drv-actions a.ghost {
  border: 1px solid #dbeafe;
  color: #334155 !important;
  background: #f8fbff;
}

.drv-actions a:hover {
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .dp-top { flex-wrap: nowrap; }
  .dp-menu-btn { display: inline-flex; align-items: center; gap: 8px; }

  /* Compact: nav hidden until opened */
  body.driver-premium .driver-top-nav {
    display: none;
    margin-top: 10px;
    padding: 10px;
  }

  body.driver-premium .driver-top-nav.is-open {
    display: block;
  }

  body.driver-premium .driver-top-nav ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  body.driver-premium .driver-top-nav ul li a {
    border-radius: 12px;
    padding: 10px 10px;
    font-size: 0.86rem;
  }
}
