/* ==========================================================================
   Material Design Date & Time Picker CSS - Taxi Brand Luxury Theme
   Theme: Vibrant Taxi Gold (#FFB800), Pure Midnight Black (#090B0E)
   ZERO BLUE TINTS - 100% Focused on Brand Taxi Gold & Executive Charcoal
   ========================================================================== */

.mat-picker-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(9, 11, 14, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  padding: 16px;
}

.mat-picker-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mat-picker-modal {
  background: #ffffff;
  width: 324px;
  max-width: 100%;
  border-radius: 18px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 184, 0, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.92);
  transition: transform 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  user-select: none;
}

.mat-picker-overlay.active .mat-picker-modal {
  transform: scale(1);
}

/* Header Section (Midnight Black with Taxi Gold Accents) */
.mat-picker-header {
  background: linear-gradient(145deg, #090B0E 0%, #171C26 100%);
  color: #ffffff;
  padding: 20px 24px;
  border-bottom: 3px solid #FFB800;
  position: relative;
}

.mat-date-header-year {
  font-size: 0.9rem;
  font-weight: 700;
  color: #FFB800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.mat-date-header-date {
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  margin-top: 4px;
  line-height: 1.15;
}

/* Time Picker Header */
.mat-time-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mat-time-display {
  display: flex;
  align-items: baseline;
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1;
  font-family: 'Outfit', sans-serif;
}

.mat-time-hour,
.mat-time-min {
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.15s, color 0.15s;
}

.mat-time-hour.active,
.mat-time-min.active {
  opacity: 1;
  color: #FFB800;
}

.mat-time-colon {
  margin: 0 4px;
  opacity: 0.8;
  color: #ffffff;
}

.mat-ampm-switch {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-left: 12px;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 6px;
  border-radius: 8px;
  border: 1px solid rgba(255, 184, 0, 0.2);
}

.mat-ampm-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 3px 8px;
  font-size: 0.95rem;
  font-weight: 800;
  border-radius: 5px;
  transition: all 0.15s;
}

.mat-ampm-btn.active {
  background: #FFB800;
  color: #090B0E;
}

/* Body Section */
.mat-picker-body {
  padding: 18px 16px 14px;
  background: #ffffff;
}

/* Month Navigation */
.mat-month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 6px;
}

.mat-month-label {
  font-weight: 800;
  font-size: 1rem;
  color: #111827;
  font-family: 'Outfit', sans-serif;
}

.mat-nav-btn {
  background: #F8F9FA;
  border: 1px solid #E5E7EB;
  font-size: 1.25rem;
  cursor: pointer;
  color: #111827;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: all 0.15s;
}

.mat-nav-btn:hover {
  background: #FFFBEB;
  border-color: #FFB800;
  color: #D97706;
}

/* Days Table */
.mat-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #9CA3AF;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.mat-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px 0;
  text-align: center;
}

.mat-day-cell {
  height: 38px;
  width: 38px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 50%;
  cursor: pointer;
  color: #111827;
  transition: background 0.15s, color 0.15s;
}

.mat-day-cell:hover:not(.disabled):not(.selected) {
  background: #FFFBEB;
  color: #D97706;
}

.mat-day-cell.selected {
  background: #FFB800 !important;
  color: #090B0E !important;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(255, 184, 0, 0.4);
}

.mat-day-cell.today:not(.selected) {
  border: 2px solid #FFB800;
  color: #D97706;
  font-weight: 800;
}

.mat-day-cell.disabled {
  color: #D1D5DB;
  cursor: not-allowed;
  pointer-events: none;
}

.mat-day-cell.empty {
  cursor: default;
  pointer-events: none;
}

/* Clock Face */
.mat-clock-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
}

.mat-clock-face {
  width: 240px;
  height: 240px;
  background: #F4F5F7;
  border-radius: 50%;
  position: relative;
  touch-action: none;
  cursor: pointer;
  border: 1px solid #E5E7EB;
}

.mat-clock-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background: #FFB800;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  box-shadow: 0 0 6px rgba(255, 184, 0, 0.6);
}

.mat-clock-hand {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 88px;
  background: #FFB800;
  transform-origin: 50% 0%;
  transform: translate(-50%, 0) rotate(180deg);
  z-index: 4;
  pointer-events: none;
}

.mat-clock-hand::after {
  content: "";
  position: absolute;
  bottom: -16px;
  left: 50%;
  width: 36px;
  height: 36px;
  background: #FFB800;
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 4px 12px rgba(255, 184, 0, 0.4);
}

.mat-clock-number {
  position: absolute;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.98rem;
  font-weight: 600;
  color: #111827;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 6;
  pointer-events: none;
}

.mat-clock-number.active {
  color: #090B0E;
  font-weight: 900;
}

/* Actions Footer */
.mat-picker-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 18px 16px;
  border-top: 1px solid #F1F5F9;
  background: #FAFBFD;
}

.mat-action-btn {
  background: transparent;
  border: none;
  color: #D97706;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'Outfit', sans-serif;
}

.mat-action-btn:hover {
  background: #FFFBEB;
  color: #B45309;
}

.mat-action-btn#matDateOk,
.mat-action-btn#matTimeOk {
  background: #FFB800;
  color: #090B0E;
  box-shadow: 0 2px 6px rgba(255, 184, 0, 0.35);
}

.mat-action-btn#matDateOk:hover,
.mat-action-btn#matTimeOk:hover {
  background: #F59E0B;
}

/* Custom Input Trigger wrapper */
.custom-picker-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 480px) {
  .custom-picker-group {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .picker-trigger-box input {
    height: 44px !important;
    font-size: 0.88rem !important;
    padding-left: 10px !important;
    padding-right: 30px !important;
  }
  .picker-trigger-box .trigger-icon {
    right: 8px;
    font-size: 1rem;
  }
}

.picker-trigger-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.picker-trigger-box input {
  cursor: pointer !important;
  background-color: #090B0E !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: var(--radius-md, 8px) !important;
  height: 48px;
  width: 100%;
  padding-left: 14px;
  padding-right: 38px !important;
  font-size: 0.95rem;
  font-weight: 600;
  color: #FFFFFF !important;
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}

.picker-trigger-box input:focus,
.picker-trigger-box input:hover {
  border-color: #FFB800 !important;
  box-shadow: 0 0 0 3px rgba(255, 184, 0, 0.2) !important;
  background-color: #11151E !important;
  outline: none;
}

.picker-trigger-box .trigger-icon {
  position: absolute;
  right: 12px;
  font-size: 1.15rem;
  pointer-events: none;
  opacity: 0.85;
}
