/* ============================================================
   AIR DATEPICKER - PROFESSIONAL GOLD/YELLOW THEME
   Designer-crafted for optimal UX on mobile & desktop
   ============================================================ */

/* Calendar container - Compact & modern */
.air-datepicker {
  --adp-color: #f59e0b;
  --adp-color-secondary: #fbbf24;
  --adp-background-color: #ffffff;
  --adp-background-color-hover: #fef3c7;
  --adp-background-color-active: #f59e0b;
  --adp-background-color-in-range: #fef3c7;
  --adp-background-color-selected-other-month: #f59e0b;
  --adp-color-other-month: #d1d5db;
  --adp-color-disabled: #d1d5db;
  --adp-color-current-date: #92400e;
  --adp-background-color-current-date: #fef3c7;
  
  background: var(--adp-background-color);
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(251, 191, 36, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  padding: 0;
  width: 260px;
}

/* Navigation header - Compact gradient matching app theme (gold/yellow) */
.air-datepicker-nav {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  border-radius: 12px 12px 0 0;
  padding: 0.8rem 0.6rem;
  border-bottom: none;
  min-height: 40px;
}

.air-datepicker-nav--title {
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
  transition: background 0.2s ease;
}

.air-datepicker-nav--title:hover {
  background: rgba(255, 255, 255, 0.15);
}

.air-datepicker-nav--action {
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.air-datepicker-nav--action:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* Hide default SVG arrows completely */
.air-datepicker-nav--action svg {
  opacity: 0 !important;
  display: none !important;
  visibility: hidden !important;
}

.air-datepicker-nav--action path {
  display: none !important;
}

/* Hide default SVG arrows completely - JavaScript will handle custom arrows */
.air-datepicker-nav--action svg {
  opacity: 0 !important;
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
}

.air-datepicker-nav--action path {
  display: none !important;
  opacity: 0 !important;
}

/* Draw arrows directly on navigation buttons using CSS */
.air-datepicker-nav--action.-prev-::after {
  content: '◀' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  color: #000000 !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  text-shadow: 0 0 6px #ffffff, 0 0 12px #ffffff, 0 2px 6px rgba(0,0,0,0.9) !important;
  z-index: 999 !important;
  pointer-events: none !important;
  line-height: 1 !important;
  font-family: Arial, sans-serif !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.air-datepicker-nav--action.-next-::after {
  content: '▶' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  color: #000000 !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  text-shadow: 0 0 6px #ffffff, 0 0 12px #ffffff, 0 2px 6px rgba(0,0,0,0.9) !important;
  z-index: 999 !important;
  pointer-events: none !important;
  line-height: 1 !important;
  font-family: Arial, sans-serif !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Calendar body - Compact */
.air-datepicker-body {
  padding: 0.6rem;
}

/* Weekdays - Minimal & clean */
.air-datepicker-body--day-names {
  margin-bottom: 0.4rem;
}

.air-datepicker-body--day-name {
  color: #6b7280;
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Day cells - Compact & responsive */
.air-datepicker-cell {
  border-radius: 8px;
  color: #1f2937;
  font-weight: 500;
  height: 32px;
  font-size: 0.9rem;
  transition: all 0.15s ease;
}

.air-datepicker-cell:hover {
  background: #f9fafb;
  color: #1f2937;
}

.air-datepicker-cell.-focus- {
  background: #fef3c7;
  color: #f59e0b;
}

.air-datepicker-cell.-current- {
  background: #fef3c7;
  color: #92400e;
  font-weight: 700;
  box-shadow: 0 0 0 2px #fbbf24 inset;
}

.air-datepicker-cell.-current-:hover {
  background: #fde68a;
}

.air-datepicker-cell.-selected- {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(251, 191, 36, 0.4);
}

.air-datepicker-cell.-selected-.-current- {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #ffffff !important;
  box-shadow: 0 0 0 2px #fbbf24, 0 3px 12px rgba(251, 191, 36, 0.4);
}

.air-datepicker-cell.-selected-:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.air-datepicker-cell.-disabled- {
  color: #d1d5db;
  cursor: not-allowed;
}

.air-datepicker-cell.-disabled-:hover {
  background: transparent;
  color: #d1d5db;
}

.air-datepicker-cell.-other-month- {
  color: #d1d5db;
}

.air-datepicker-cell.-other-month-:hover {
  color: #9ca3af;
  background: #f9fafb;
}

/* Buttons - Compact actions */
.air-datepicker--buttons {
  border-top: 1px solid #f3f4f6;
  padding: 0.6rem;
  display: flex;
  gap: 0.5rem;
}

.air-datepicker-button {
  background: #f3f4f6;
  color: #374151;
  border-radius: 6px;
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.2s ease;
  flex: 1;
  border: none;
}

.air-datepicker-button:hover {
  background: #f59e0b;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

/* Mobile modal overlay */
.air-datepicker-overlay {
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* Mobile optimizations - Compact but touch-friendly */
@media (max-width: 768px) {
  .air-datepicker {
    width: 90vw !important;
    max-width: 300px;
    border-radius: 16px;
  }
  
  .air-datepicker-nav {
    padding: 1rem 0.8rem;
    border-radius: 16px 16px 0 0;
  }
  
  .air-datepicker-nav--title {
    font-size: 0.95rem;
    padding: 0.3rem 0.6rem;
  }
  
  .air-datepicker-nav--action {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
  }
  
  .air-datepicker-nav--action:active {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(0.95);
  }
  
  /* Mobile arrow styling - Even larger and more visible */
  .air-datepicker-nav--action.-prev-::after,
  .air-datepicker-nav--action.-next-::after {
    font-size: 24px !important; /* Larger on mobile */
    text-shadow: 0 0 8px #ffffff, 0 0 16px #ffffff, 0 3px 8px rgba(0,0,0,0.9) !important;
  }
  
  /* Mobile arrow styling handled by JavaScript */
  
  .air-datepicker-body {
    padding: 0.8rem;
  }
  
  .air-datepicker-body--day-name {
    font-size: 0.75rem;
    padding: 0.5rem 0;
  }
  
  .air-datepicker-cell {
    height: 40px;
    font-size: 0.95rem;
    border-radius: 10px;
  }
  
  .air-datepicker--buttons {
    padding: 0.7rem 0.8rem 0.8rem;
  }
  
  .air-datepicker-button {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }
}

/* Input field styling - Allow manual typing */
#dob1, #dob2 {
  width: 100%;
  padding: 0.75rem 3rem 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: #1f2937;
  background: #ffffff;
  transition: all 0.2s ease;
  cursor: text;
  position: relative;
}

#dob1:hover, #dob2:hover {
  border-color: #fbbf24;
  background: #fafafa;
}

#dob1:focus, #dob2:focus,
#dob1.-focus-, #dob2.-focus- {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.12);
  background: #ffffff;
  cursor: text;
}

/* Custom calendar icon in input */
.air-datepicker--pointer {
  display: block !important;
}

/* Mobile input styling */
@media (max-width: 768px) {
  #dob1, #dob2 {
    padding: 0.85rem 3rem 0.85rem 1rem;
    font-size: 1rem;
    min-height: 52px;
  }
}

