/* ==========================================================================
   DRIVER PARTNER DASHBOARD & ONBOARDING STYLES
   ========================================================================== */

.driver-layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  background: var(--background);
}

/* Driver Top Header */
.driver-header {
  background: #111111;
  color: #FFFFFF;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 500;
  box-shadow: var(--shadow-md);
}

/* Online/Offline Toggle Switch */
.online-toggle-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toggle-switch {
  position: relative;
  width: 60px;
  height: 32px;
  cursor: pointer;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #444444;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.slider:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 4px;
  bottom: 4px;
  background-color: #FFFFFF;
  border-radius: 50%;
  transition: all var(--transition-fast);
}

input:checked + .slider {
  background-color: var(--success);
}

input:checked + .slider:before {
  transform: translateX(28px);
}

/* Driver Main Content Grid */
.driver-content {
  flex: 1;
  display: grid;
  grid-template-columns: 420px 1fr;
  overflow: hidden;
  position: relative;
}

/* Driver Sidebar & Duty Panel */
.driver-sidebar {
  background: #FFFFFF;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 10;
}

/* Driver Tabs */
.driver-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
}

.driver-tab-btn {
  flex: 1;
  padding: 14px;
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.driver-tab-btn.active {
  color: var(--brand-navy);
  border-bottom: 3px solid var(--primary);
  background: #FFFFFF;
}

/* Incoming Ride Request Modal Overlay */
.incoming-request-modal {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  width: 460px;
  max-width: calc(100vw - 32px);
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  border: 2px solid var(--primary);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  padding: 24px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.incoming-request-modal.active {
  transform: translateX(-50%) translateY(0);
}

/* 30s Countdown Bar */
.countdown-bar-container {
  width: 100%;
  height: 6px;
  background: #E5E7EB;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 18px;
}

.countdown-bar {
  height: 100%;
  background: var(--primary);
  width: 100%;
  transition: width 1s linear;
}

/* Earnings Cards Grid */
.earnings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.earning-metric-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.earning-metric-card.highlight {
  background: #FFFDF0;
  border: 1px solid var(--primary);
}

@media (max-width: 900px) {
  .driver-content {
    grid-template-columns: 1fr;
  }
  .driver-sidebar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    box-shadow: var(--shadow-sheet);
  }
}
