/* Custom Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* Color Variables */
:root {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --border-glass: rgba(15, 23, 42, 0.08);
  --border-glow: rgba(99, 102, 241, 0.15);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --accent-cyan: #0284c7;
  --accent-indigo: #4f46e5;
  --accent-pink: #db2777;
  --accent-purple: #7c3aed;
  
  --state-available: #059669;
  --state-reserved: #e11d48;
  --state-warning: #d97706;
  
  --gradient-brand: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-purple) 50%, var(--accent-pink) 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
  
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.04), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.08);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  background-image: 
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.05) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(236, 72, 153, 0.03) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(6, 182, 212, 0.02) 0px, transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Layout Utilities */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* Header Section */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-brand);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.5rem;
  color: white;
  box-shadow: 0 0 15px rgba(236, 72, 153, 0.4);
}

.logo-text h1 {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  background: linear-gradient(to right, var(--text-primary), var(--accent-indigo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text p {
  font-size: 0.85rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* Control Panel (Filters, Date, Branch) */
.controls-bar {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.filters-section, .actions-section {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.control-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.control-select, .control-input {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-smooth);
  min-width: 160px;
}

.control-select:focus, .control-input:focus {
  border-color: var(--accent-indigo);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

/* Settings trigger button */
.btn-settings {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.btn-settings:hover {
  background: var(--accent-indigo);
  border-color: var(--accent-indigo);
  color: white;
  transform: translateY(-2px);
}

.btn-settings.active-tab {
  background: var(--accent-indigo) !important;
  border-color: var(--accent-indigo) !important;
  color: white !important;
}

/* Stat Cards Section */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-icon.available {
  background: rgba(16, 185, 129, 0.15);
  color: var(--state-available);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.stat-icon.reserved {
  background: rgba(244, 63, 94, 0.15);
  color: var(--state-reserved);
  border: 1px solid rgba(244, 63, 94, 0.2);
}

.stat-icon.occupancy {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  font-family: var(--font-title);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Scheduler / Reservation Grid */
.scheduler-container {
  overflow-x: auto;
  margin-bottom: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-lg);
}

.scheduler-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
}

.scheduler-table th, .scheduler-table td {
  padding: 1.2rem;
  text-align: center;
  border-bottom: 1px solid var(--border-glass);
}

.scheduler-table th {
  background: rgba(0, 0, 0, 0.02);
  font-family: var(--font-title);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

/* First Column Styling (Game Info) */
.scheduler-table th.game-header-cell, 
.scheduler-table td.game-info-cell {
  text-align: left;
  position: sticky;
  left: 0;
  background: var(--bg-secondary);
  z-index: 10;
  width: 250px;
  min-width: 250px;
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.04);
}

.game-title {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
}

.game-duration {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

/* Grid Cells (Slot cells) */
.slot-cell {
  position: relative;
  height: 90px;
  min-width: 110px;
  transition: var(--transition-smooth);
}

/* Slots booking status styles */
.slot-status-card {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 6px;
  right: 6px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0.4rem;
  cursor: pointer;
  font-size: 0.75rem;
  transition: var(--transition-smooth);
  user-select: none;
}

/* Available Card state */
.slot-status-card.available {
  background: rgba(16, 185, 129, 0.06);
  border: 1px dashed rgba(16, 185, 129, 0.3);
  color: var(--state-available);
}

.slot-status-card.available:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--state-available);
  transform: scale(1.04);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.slot-status-card.available .btn-book-quick {
  margin-top: 4px;
  font-weight: 700;
  font-size: 0.8rem;
  background: var(--state-available);
  color: #ffffff;
  border: none;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.8;
  transition: var(--transition-smooth);
}

.slot-status-card.available:hover .btn-book-quick {
  opacity: 1;
  transform: translateY(-1px);
}

/* Reserved Card state */
.slot-status-card.reserved {
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: var(--text-primary);
}

.slot-status-card.reserved:hover {
  background: rgba(244, 63, 94, 0.16);
  border-color: var(--state-reserved);
  transform: scale(1.04);
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.2);
}

.reserved-team-name {
  font-weight: 700;
  color: #be123c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
}

.reserved-gm-name {
  font-size: 0.65rem;
  color: var(--text-secondary);
}

.reserved-branch-badge {
  font-size: 0.6rem;
  background: rgba(0, 0, 0, 0.05);
  padding: 1px 4px;
  border-radius: 3px;
  margin-top: 3px;
  color: var(--text-secondary);
}

/* Modals styling (Shared properties) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  width: 100%;
  max-width: 600px;
  padding: 2rem;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(99, 102, 241, 0.1);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-title {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--text-primary), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-close-modal {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-close-modal:hover {
  color: var(--text-primary);
}

/* Booking Form Elements */
.booking-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-group-full {
  grid-column: span 2;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input, .form-select {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-smooth);
}

select.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.25rem;
  padding-right: 2.5rem;
}

.form-input:focus, .form-select:focus {
  border-color: var(--accent-indigo);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.form-actions {
  grid-column: span 2;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1rem;
}

.btn-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.btn-danger {
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #ff4a6b;
}

.btn-danger:hover {
  background: #f43f5e;
  color: white;
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.3);
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gradient-brand);
  border: none;
  color: white;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 16px rgba(236, 72, 153, 0.4);
  transform: translateY(-2px);
}

/* Warnings/Banner styling */
.warning-box {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--state-warning);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  margin-bottom: 1rem;
  display: none; /* toggled via JS */
  align-items: center;
  gap: 0.5rem;
}

/* Detail Display Modal */
.detail-item {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.detail-val {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-delete-booking {
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: var(--state-reserved);
}

.btn-delete-booking:hover {
  background: var(--state-reserved);
  color: white;
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.3);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: #25D366;
}

.btn-whatsapp:hover {
  background: #25D366;
  color: #0b0f19;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  transform: translateY(-2px);
}

/* Settings specific styling */
.settings-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  line-height: 1.4;
}

.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-left: 4px solid var(--accent-indigo);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  color: var(--text-primary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  min-width: 280px;
  max-width: 400px;
}

.toast.success {
  border-left-color: var(--state-available);
}

.toast.error {
  border-left-color: var(--state-reserved);
}

.toast.warning {
  border-left-color: var(--state-warning);
}

@keyframes slideIn {
  from {
    transform: translateX(100%) translateY(0);
    opacity: 0;
  }
  to {
    transform: translateX(0) translateY(0);
    opacity: 1;
  }
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .container {
    padding: 0.75rem;
    padding-top: calc(env(safe-area-inset-top, 20px) + 0.75rem);
  }
  
  header {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    text-align: center;
  }
  
  .logo-area {
    margin-bottom: 0.25rem;
  }
  
  .controls-bar {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .filters-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .actions-section {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
  }
  
  .control-select, .control-input {
    width: 100% !important;
    min-width: auto !important;
    height: 44px;
    font-size: 0.85rem;
    box-sizing: border-box;
  }
  
  .btn-settings {
    height: 44px;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }

  .user-badge {
    width: 100%;
    justify-content: space-between;
    box-sizing: border-box;
    display: flex !important;
  }
  
  /* Compact Table Grid for mobile */
  .scheduler-container {
    border-radius: 12px;
    margin-bottom: 1.5rem;
    -webkit-overflow-scrolling: touch; /* Momentum scrolling on iOS */
  }
  
  .scheduler-table {
    min-width: 800px;
  }
  
  .scheduler-table th, .scheduler-table td {
    padding: 0.8rem 0.5rem;
  }
  
  .scheduler-table th.game-header-cell, 
  .scheduler-table td.game-info-cell {
    width: 130px;
    min-width: 130px;
    padding: 0.8rem;
    font-size: 0.8rem;
  }
  
  .game-title {
    font-size: 0.85rem;
  }
  
  .slot-status-card {
    min-height: 54px;
    padding: 0.4rem;
  }
  
  .reserved-team-name {
    font-size: 0.75rem;
  }
  
  .reserved-gm-name {
    font-size: 0.65rem;
  }
  
  /* Stats Cards Grid */
  .stats-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
    margin-bottom: 1.5rem;
  }
  
  .stat-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 0.4rem !important;
    padding: 0.6rem 0.2rem !important;
    box-sizing: border-box;
  }

  .stat-icon {
    width: 36px !important;
    height: 36px !important;
    font-size: 1.1rem !important;
    border-radius: 8px !important;
  }

  .stat-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
  
  .stat-value {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
  }
  
  .stat-label {
    font-size: 0.58rem !important;
    line-height: 1.2 !important;
    margin-top: 0.15rem;
    word-break: break-word;
  }
  
  .modal-overlay {
    display: block !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(11, 15, 25, 0.92) !important;
  }

  /* Mobile Action Sheets (Modals slide from bottom on iOS!) */
  .modal-content {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 24px 24px 0 0 !important;
    position: fixed;
    bottom: -100% !important;
    top: auto !important;
    left: 0;
    max-height: 92vh;
    overflow-y: auto;
    margin: 0 !important;
    transform: none !important;
    transition: bottom 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    padding-top: 0.5rem !important;
  }
  
  /* Native bottom-sheet drag handle */
  .modal-content::before {
    content: "";
    display: block;
    width: 36px;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    margin: 0 auto 0.75rem auto;
  }
  
  .modal-overlay.active .modal-content {
    bottom: 0 !important;
  }

  /* Prevent iOS zoom shift by keeping inputs at minimum 16px */
  .form-input, .form-select, .control-select, .control-input {
    font-size: 16px !important;
  }
  
  .booking-form {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }
  
  .form-group-full {
    grid-column: span 1 !important;
  }
  
  .form-actions {
    grid-column: span 1 !important;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .form-actions .btn-btn {
    width: 100% !important;
    justify-content: center;
    height: 44px;
  }

  /* Two-column action button grid inside view details modal to keep bottom sheet compact */
  #view-modal .form-actions {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
  }
  
  #view-modal .form-actions .btn-btn {
    width: 100% !important;
    font-size: 0.8rem !important;
    padding: 0.5rem 0.25rem !important;
    height: 40px !important;
  }
  
  /* Make primary Back button cover full width of buttons grid */
  #view-modal .form-actions .btn-close-modal {
    grid-column: span 2 !important;
    height: 44px !important;
    font-size: 0.85rem !important;
  }

  /* Responsive Inquiries List - Table to Cards conversion */
  #inquiry-view table {
    min-width: 100% !important;
  }
  #inquiry-view thead {
    display: none !important;
  }
  #inquiry-view tbody, 
  #inquiry-view tr, 
  #inquiry-view td {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box;
  }
  #inquiry-view tr {
    margin-bottom: 0.75rem;
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-glass) !important;
    border-radius: 12px !important;
    padding: 0.6rem !important;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.02), 0 2px 4px -1px rgba(15, 23, 42, 0.01) !important;
  }
  #inquiry-view td {
    text-align: left !important;
    padding: 0.3rem 0.5rem !important;
    border-bottom: none !important;
    font-size: 0.8rem !important;
  }
  #inquiry-view td::before {
    font-weight: 700;
    color: var(--accent-cyan);
    display: inline-block;
    width: 110px;
    font-size: 0.7rem;
    text-transform: uppercase;
  }
  #inquiry-view td:nth-child(1)::before { content: "Lead No: "; }
  #inquiry-view td:nth-child(2)::before { content: "Date Logged: "; }
  #inquiry-view td:nth-child(3)::before { content: "Customer: "; }
  #inquiry-view td:nth-child(4)::before { content: "Source: "; }
  #inquiry-view td:nth-child(5)::before { content: "Theme/Branch: "; }
  #inquiry-view td:nth-child(6)::before { content: "Guests: "; }
  #inquiry-view td:nth-child(7)::before { content: "Stage: "; }
  #inquiry-view td:nth-child(8)::before { content: ""; display: none; }

  /* Login Screen Mobile optimization */
  .login-box {
    padding: 1.5rem !important;
    width: 90% !important;
    max-width: 360px !important;
  }
  .login-box h2 {
    font-size: 1.5rem !important;
  }
  .login-box p {
    margin-bottom: 1.5rem !important;
  }
}

/* Login Page Styles */
.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #ffffff 0%, #e2e8f0 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.login-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.login-box {
  width: 100%;
  max-width: 420px;
  padding: 2.5rem;
  border-radius: 20px;
  text-align: center;
  background: var(--bg-glass);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08), 0 0 30px rgba(99, 102, 241, 0.05);
  border: 1px solid var(--border-glass);
}

.login-logo {
  width: 60px;
  height: 60px;
  background: var(--gradient-brand);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 2rem;
  color: white;
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.login-box h2 {
  font-family: var(--font-title);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.login-box p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Status specific slot colors */
.slot-status-card.arrived {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: var(--text-primary);
}

.slot-status-card.arrived:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: var(--accent-purple);
  transform: scale(1.04);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.2);
}

.slot-status-card.noshow {
  background: rgba(100, 116, 139, 0.15);
  border: 1px dashed rgba(100, 116, 139, 0.4);
  color: var(--text-secondary);
}

.slot-status-card.noshow:hover {
  background: rgba(100, 116, 139, 0.25);
  border-style: solid;
  transform: scale(1.04);
}

.noshow-indicator {
  font-size: 0.65rem;
  background: rgba(245, 158, 11, 0.2);
  color: var(--state-warning);
  padding: 1px 4px;
  border-radius: 3px;
  margin-top: 3px;
}

.arrived-indicator {
  font-size: 0.65rem;
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  padding: 1px 4px;
  border-radius: 3px;
  margin-top: 3px;
}

/* Checkin dynamic inputs columns */
.player-input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.inquiry-row-status-select {
  background: var(--bg-tertiary) !important;
  border: 1px solid var(--border-glass) !important;
  color: var(--text-primary) !important;
}
.inquiry-row-status-select.badge-contacted {
  border-left: 4px solid var(--accent-cyan) !important;
}
.inquiry-row-status-select.badge-conversion {
  border-left: 4px solid #10b981 !important; /* Green */
}
.inquiry-row-status-select.badge-dropped {
  border-left: 4px solid #ef4444 !important; /* Red */
}
.inquiry-row-status-select.badge-interested {
  border-left: 4px solid var(--accent-indigo) !important;
}
