/* ==========================================================
   GET DRIVER - DEREVA.CO.KE PROFESSIONAL THEME & LAYOUT
   ================================================---------- */

:root {
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-input: #f1f5f9;
  --border: #e2e8f0;
  --gold: #00A86B;
  --gold-hover: #008B5E;
  --cta-orange: #00A86B;
  --cta-orange-hover: #008B5E;
  --text-main: #0f172a;
  --text-sub: #334155;
  --text-muted: #64748b;
  --success: #10b981;
  --danger: #ef4444;
  --header-bg: linear-gradient(135deg, #00A86B, #00794e);
  --nav-bg: #ffffff;

  /* Dereva Teal-Green Themed Section Headers */
  --headline-hero: linear-gradient(135deg, #e6f7f0, #f0fdf4);
  --headline-drivers: linear-gradient(135deg, #e6f7f0, #f0fdf4);
  --headline-emergency: linear-gradient(135deg, #fee2e2, #fef2f2);
  --headline-profile: linear-gradient(135deg, #fef3c7, #fffbeb);
  --headline-admin: linear-gradient(135deg, #e0e7ff, #ede9fe);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  padding-bottom: 85px;
}

/* TOP HEADER */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--header-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  background: #ffffff;
  padding: 2px;
  border: 1.5px solid rgba(255,255,255,0.4);
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.badge-gold {
  font-size: 0.55rem;
  padding: 2px 6px;
  background-color: #ffffff;
  color: #00A86B;
  border-radius: 4px;
  font-weight: 800;
  text-transform: uppercase;
}

.brand-sub {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 1px;
}

.header-icons-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-icons-right button, 
.header-icons-right div {
  color: #ffffff !important;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
}

/* MAIN CONTAINER */
.main-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 16px;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* SECTION HEADERS */
.section-header {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  background: var(--headline-hero);
}

.section-header h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
}

.section-header p {
  font-size: 0.85rem;
  color: var(--text-sub);
  margin-top: 3px;
}

/* HERO SECTION */
.hero-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.hero-banner h2 {
  font-size: 1.5rem;
  font-weight: 900;
  text-align: center;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.2;
}

.hero-quote {
  text-align: center;
  font-style: italic;
  color: var(--text-sub);
  font-size: 0.88rem;
  margin-bottom: 14px;
}

.hero-img-container {
  width: 100%;
  margin: 14px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border: 1px solid var(--border);
}

.hero-img-container img {
  width: 100%;
  height: 210px;
  display: block;
  object-fit: cover;
}

.hero-desc {
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.5;
  margin: 14px 0;
  text-align: center;
}

.info-bullet-box {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 14px 0;
}

.media-video-container {
  width: 100%;
  margin: 16px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}

.media-video-container video {
  width: 100%;
  height: auto;
  display: block;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

/* ==========================================================
   DRIVER ROSTER GRID (2-COLUMN VERTICAL CARD LAYOUT)
   ================================================---------- */
.cards-grid, #driverList {
  display: grid;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 12px !important;
}

@media (max-width: 480px) {
  .cards-grid, #driverList {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
}

.driver-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 0 !important;
}

.gold-text {
  color: #00A86B;
}

/* INPUTS & SEARCH */
.search-box {
  margin-bottom: 16px;
}

.input-field, .search-box input, select.input-field {
  width: 100%;
  padding: 12px 14px;
  background-color: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.input-field:focus, .search-box input:focus {
  border-color: #00A86B;
}

/* FORMS & CHECKBOXES */
.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-sub);
  margin-bottom: 5px;
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(65px, 1fr));
  gap: 6px;
  margin-top: 6px;
}

.checkbox-group label {
  font-size: 0.82rem;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--bg-input);
  padding: 7px;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-gold {
  background-color: #00A86B;
  color: #ffffff;
}

.btn-gold:hover {
  background-color: #008B5E;
}

.btn-connect {
  background-color: #00A86B;
  color: #ffffff;
}

.btn-connect:hover {
  background-color: #008B5E;
}

.btn-view, .btn-primary, .btn-secondary {
  background-color: var(--bg-input);
  color: var(--text-main);
  border: 1px solid var(--border);
}

.btn-success {
  background-color: var(--success);
  color: #ffffff;
}

.btn-danger {
  background-color: var(--danger);
  color: #ffffff;
}

/* STATS */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.stat-card {
  text-align: center;
  padding: 12px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 0;
}

.stat-card h3 {
  font-size: 1.5rem;
  color: #00A86B;
  margin-bottom: 2px;
  font-weight: 800;
}

.stat-card p {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* BADGES */
.badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  display: inline-block;
}

.badge-ready {
  background-color: rgba(16, 185, 129, 0.12);
  color: var(--success);
  border: 1px solid var(--success);
}

.badge-booked {
  background-color: rgba(239, 68, 68, 0.12);
  color: var(--danger);
  border: 1px solid var(--danger);
}

/* BOTTOM NAVIGATION */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 68px;
  background: var(--nav-bg);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

.nav-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  padding: 4px 0;
  flex: 1;
  transition: color 0.2s ease;
}

.nav-btn.active {
  color: #00A86B;
}

.nav-icon {
  font-size: 1.35rem;
  margin-bottom: 2px;
  position: relative;
}

.badge-count {
  position: absolute;
  top: -4px;
  right: -8px;
  background-color: #00A86B;
  color: #ffffff;
  font-size: 0.6rem;
  font-weight: 800;
  border-radius: 10px;
  padding: 1px 5px;
}

/* MODALS */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  justify-image: center;
  align-items: center;
  z-index: 200;
  padding: 14px;
}

.modal-content {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-main);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* INSTALL / UPDATE BANNER */
.install-banner {
  position: fixed;
  bottom: 74px;
  left: 12px;
  right: 12px;
  max-width: 616px;
  margin: 0 auto;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 90;
  font-size: 0.82rem;
  color: var(--text-sub);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.btn-close-sm {
  background: none;
  border: none;
  color: var(--text-muted);
  margin-left: 8px;
  cursor: pointer;
  font-size: 0.95rem;
}

.hidden {
  display: none !important;
}
