/* ==========================================================================
   APPLE LIQUID GLASS (iOS DARK MODE) CSS ENGINE
   Inspired by Apple iOS & visionOS Human Interface Guidelines
   Deep OLED (#050507) + Refractive Ambient Light + Apple Spring Physics
   ========================================================================== */

:root {
  --ios-oled-bg: #050507;
  --ios-surface-glass: rgba(28, 28, 34, 0.68);
  --ios-surface-glass-card: rgba(255, 255, 255, 0.045);
  --ios-glass-border: rgba(255, 255, 255, 0.09);
  --ios-specular-highlight: rgba(255, 255, 255, 0.22);
  --ios-gold: #d4af37;
  --ios-gold-bright: #f3cf7a;
  --ios-gold-gradient: linear-gradient(135deg, #f5d680 0%, #d4af37 50%, #ad851b 100%);
  --ios-gold-glass: linear-gradient(135deg, rgba(212, 175, 55, 0.28) 0%, rgba(212, 175, 55, 0.08) 100%);
  --ios-gold-border: rgba(212, 175, 55, 0.45);
  --ios-spring-curve: cubic-bezier(0.22, 1, 0.36, 1);
  --ios-safe-bottom: max(16px, env(safe-area-inset-bottom, 16px));
}

/* --------------------------------------------------------------------------
   GLOBAL RESET & TYPOGRAPHY
   -------------------------------------------------------------------------- */
html, body {
  background-color: var(--ios-oled-bg) !important;
  color: #f5f5f7 !important;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Inter", sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Apple Minimalist Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
  backdrop-filter: blur(10px);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 55, 0.38);
}

/* --------------------------------------------------------------------------
   AMBIENT REFRACTION LIGHT SPHERES (body::before)
   -------------------------------------------------------------------------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle 420px at 10% 15%, rgba(212, 175, 55, 0.12), transparent 70%),
    radial-gradient(circle 480px at 88% 60%, rgba(180, 120, 30, 0.09), transparent 70%),
    radial-gradient(circle 420px at 45% 92%, rgba(212, 175, 55, 0.08), transparent 70%);
  filter: blur(90px);
  animation: ambientGlowDrift 18s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes ambientGlowDrift {
  0% {
    transform: scale(1) translate(0px, 0px);
  }
  50% {
    transform: scale(1.06) translate(-25px, 20px);
  }
  100% {
    transform: scale(0.96) translate(18px, -24px);
  }
}

/* --------------------------------------------------------------------------
   MAIN CONTAINER & STAGGER CASCADE
   -------------------------------------------------------------------------- */
.ios-main-content {
  padding-bottom: 125px !important;
  max-width: 1360px;
  margin: 0 auto;
}

@keyframes iosSlideUpFade {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-panel,
.glass-card,
.ios-card,
.client-card {
  animation: iosSlideUpFade 0.45s var(--ios-spring-curve) both;
}

/* --------------------------------------------------------------------------
   TOP GLASS HEADER
   -------------------------------------------------------------------------- */
#ios-top-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 10px 18px;
  background: rgba(14, 14, 18, 0.72) !important;
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  border-bottom: 1px solid var(--ios-glass-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.ios-header-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
  text-decoration: none !important;
  color: #fff !important;
  transition: all 0.25s var(--ios-spring-curve);
}

.ios-header-brand-pill:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--ios-gold-bright) !important;
  transform: translateY(-1px);
}

.ios-page-title-badge {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #f5f5f7;
}

.ios-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
  text-decoration: none !important;
  color: #eaeaea;
  transition: all 0.25s var(--ios-spring-curve);
}

.ios-user-pill:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  transform: scale(1.02);
}

.ios-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--ios-gold);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.35);
}

/* --------------------------------------------------------------------------
   FLOATING BOTTOM PILL DOCK
   -------------------------------------------------------------------------- */
#ios-bottom-dock {
  position: fixed;
  bottom: var(--ios-safe-bottom);
  left: 50%;
  transform: translateX(-50%);
  z-index: 9990;
  width: min(94vw, 470px);
  padding: 7px 10px;
  background: linear-gradient(135deg, rgba(28, 28, 34, 0.74) 0%, rgba(14, 14, 18, 0.86) 100%);
  backdrop-filter: blur(35px) saturate(210%);
  -webkit-backdrop-filter: blur(35px) saturate(210%);
  border-radius: 9999px;
  border: 1px solid var(--ios-glass-border);
  box-shadow:
    inset 0 1px 0 0 var(--ios-specular-highlight),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 18px 45px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: space-around;
  user-select: none;
}

.ios-dock-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 14px;
  border-radius: 9999px;
  text-decoration: none !important;
  color: rgba(235, 235, 245, 0.65);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.3s var(--ios-spring-curve);
  cursor: pointer;
  outline: none;
}

.ios-dock-btn i,
.ios-dock-btn svg {
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 0.25s var(--ios-spring-curve);
}

.ios-dock-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.ios-dock-btn:active {
  transform: scale(0.92);
  transition: transform 0.15s ease;
}

/* Active Dock Item State */
.ios-dock-btn.active {
  background: var(--ios-gold-glass) !important;
  border: 1px solid var(--ios-gold-border) !important;
  color: var(--ios-gold-bright) !important;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.24);
  font-weight: 600;
}

.ios-dock-btn.active i,
.ios-dock-btn.active svg {
  transform: scale(1.08);
  filter: drop-shadow(0 0 6px rgba(243, 207, 122, 0.55));
}



/* Active Tile State in iOS Control Center Sheet */
.ios-control-tile.active-sheet-tile {
  background: var(--ios-gold-glass) !important;
  border: 1px solid var(--ios-gold-border) !important;
  color: var(--ios-gold-bright) !important;
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.28) !important;
}

.ios-control-tile.active-sheet-tile .ios-tile-icon {
  background: var(--ios-gold-gradient) !important;
  color: #111 !important;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.45) !important;
}

/* --------------------------------------------------------------------------
   iOS GLASS BOTTOM SHEET ("MAIS OPÇÕES")
   -------------------------------------------------------------------------- */
#ios-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9997;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

#ios-sheet-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

#ios-more-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  max-width: 580px;
  margin: 0 auto;
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  background: linear-gradient(180deg, rgba(26, 26, 32, 0.92) 0%, rgba(12, 12, 16, 0.98) 100%);
  backdrop-filter: blur(45px) saturate(220%);
  -webkit-backdrop-filter: blur(45px) saturate(220%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: none;
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.3),
    0 -15px 50px rgba(0, 0, 0, 0.85);
  padding: 12px 20px max(32px, env(safe-area-inset-bottom, 32px));
  transform: translateY(105%);
  transition: transform 0.45s var(--ios-spring-curve);
  will-change: transform;
}

#ios-more-sheet.show {
  transform: translateY(0);
}

.ios-sheet-grabber {
  width: 42px;
  height: 5px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 9999px;
  margin: 0 auto 16px auto;
  cursor: pointer;
}

.ios-control-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

@media (max-width: 420px) {
  .ios-control-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}

.ios-control-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  text-decoration: none !important;
  color: #f5f5f7 !important;
  text-align: center;
  transition: all 0.3s var(--ios-spring-curve);
  cursor: pointer;
}

.ios-control-tile:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  border-color: rgba(212, 175, 55, 0.3);
  color: var(--ios-gold-bright) !important;
}

.ios-control-tile:active {
  transform: scale(0.94);
  transition: transform 0.15s ease;
}

.ios-tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--ios-gold);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: all 0.25s ease;
}

.ios-control-tile:hover .ios-tile-icon {
  background: var(--ios-gold-gradient);
  color: #111;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.ios-tile-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.ios-logout-tile {
  width: 100%;
  border-radius: 18px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
  color: #f87171 !important;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s var(--ios-spring-curve);
  cursor: pointer;
}

.ios-logout-tile:hover {
  background: rgba(239, 68, 68, 0.22);
  color: #fca5a5 !important;
}

.ios-logout-tile:active {
  transform: scale(0.97);
}

/* --------------------------------------------------------------------------
   SQUIRCLE GLASS CARDS & CONTAINERS
   -------------------------------------------------------------------------- */
.card-panel,
.glass-card,
.card.bg-dark,
.client-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.018) 100%) !important;
  backdrop-filter: blur(28px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
  border-radius: 24px !important;
  border: 1px solid var(--ios-glass-border) !important;
  box-shadow:
    inset 0 1px 0 0 var(--ios-specular-highlight),
    0 12px 32px -8px rgba(0, 0, 0, 0.6) !important;
  color: #f5f5f7 !important;
  overflow: hidden;
}

.card-panel .card-header,
.glass-card .card-header {
  background: rgba(255, 255, 255, 0.02) !important;
  border-bottom: 1px solid var(--ios-glass-border) !important;
  padding: 14px 20px !important;
}

.card-panel .card-footer,
.glass-card .card-footer {
  background: rgba(255, 255, 255, 0.02) !important;
  border-top: 1px solid var(--ios-glass-border) !important;
  padding: 12px 20px !important;
}

/* Neutralize legacy Bootstrap opaque dark borders and backgrounds */
.border-secondary,
.border-dark {
  border-color: var(--ios-glass-border) !important;
}

.bg-dark,
.bg-black {
  background-color: transparent !important;
}

/* Client Cards & Grid */
.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.25rem;
}

.client-toggle {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 16px;
  cursor: pointer;
  color: inherit;
}

.client-body {
  background: rgba(0, 0, 0, 0.28) !important;
  border-top: 1px solid var(--ios-glass-border) !important;
  padding: 16px !important;
}

/* KPI numbers styling */
.kpi {
  font-size: 1.85rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
  color: #f5f5f7 !important;
  line-height: 1.15;
}

.kpi-label {
  color: rgba(235, 235, 245, 0.6) !important;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   iOS SEGMENTED CONTROL TABS (.nav-tabs & .nav-pills)
   -------------------------------------------------------------------------- */
.nav-tabs,
.nav-tabs-dark,
.nav-pills {
  border-bottom: none !important;
  background: rgba(0, 0, 0, 0.45) !important;
  border-radius: 18px !important;
  padding: 5px !important;
  border: 1px solid var(--ios-glass-border) !important;
  display: inline-flex !important;
  gap: 4px !important;
  max-width: 100% !important;
  overflow-x: auto !important;
}

.nav-tabs .nav-item,
.nav-tabs-dark .nav-item,
.nav-pills .nav-item {
  flex: 1 1 auto;
  text-align: center;
}

.nav-tabs .nav-link,
.nav-tabs-dark .nav-link,
.nav-pills .nav-link {
  border: 1px solid transparent !important;
  border-radius: 14px !important;
  padding: 9px 18px !important;
  color: rgba(235, 235, 245, 0.65) !important;
  font-weight: 500 !important;
  font-size: 0.88rem !important;
  background: transparent !important;
  transition: all 0.25s var(--ios-spring-curve) !important;
}

.nav-tabs .nav-link:hover,
.nav-tabs-dark .nav-link:hover,
.nav-pills .nav-link:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

.nav-tabs .nav-link.active,
.nav-tabs-dark .nav-link.active,
.nav-pills .nav-link.active {
  background: var(--ios-gold-glass) !important;
  border: 1px solid var(--ios-gold-border) !important;
  color: var(--ios-gold-bright) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
  font-weight: 600 !important;
}

/* --------------------------------------------------------------------------
   INPUTS, SELECTS & TEXTAREAS (ANTI-SAFARI ZOOM: font-size 16px)
   -------------------------------------------------------------------------- */
.form-control,
.form-select,
.panel-input,
input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"],
input[type="date"],
input[type="time"],
textarea {
  font-size: 16px !important; /* Imperative: prevents iOS Safari auto-zoom */
  background: rgba(0, 0, 0, 0.45) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 16px !important;
  color: #f5f5f7 !important;
  padding: 11px 16px !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.25s var(--ios-spring-curve) !important;
}

.form-control::placeholder,
textarea::placeholder,
.panel-input::placeholder {
  color: rgba(235, 235, 245, 0.35) !important;
}

.form-control:focus,
.form-select:focus,
.panel-input:focus,
textarea:focus {
  background: rgba(0, 0, 0, 0.55) !important;
  border-color: rgba(212, 175, 55, 0.65) !important;
  box-shadow:
    0 0 0 3px rgba(212, 175, 55, 0.22),
    inset 0 2px 4px rgba(0, 0, 0, 0.3) !important;
  color: #fff !important;
  outline: none !important;
}

/* --------------------------------------------------------------------------
   BUTTONS: LIQUID GOLD & GLASS PILLS
   -------------------------------------------------------------------------- */
.btn-accent,
.btn-primary,
.btn-liquid-gold,
.btn-success {
  background: var(--ios-gold-gradient) !important;
  color: #0d0c0a !important;
  font-weight: 650 !important;
  border-radius: 9999px !important;
  border: none !important;
  padding: 8px 18px !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 8px 20px -4px rgba(212, 175, 55, 0.4) !important;
  transition: all 0.25s var(--ios-spring-curve) !important;
}

.btn-accent:hover,
.btn-primary:hover,
.btn-liquid-gold:hover,
.btn-success:hover {
  filter: brightness(1.08) !important;
  transform: translateY(-1px);
}

.btn-accent:active,
.btn-primary:active,
.btn-liquid-gold:active,
.btn:active {
  transform: scale(0.96) !important;
  transition: transform 0.15s ease !important;
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  border-radius: 9999px !important;
  color: #eaeaea !important;
  padding: 8px 16px !important;
  backdrop-filter: blur(16px);
  transition: all 0.25s var(--ios-spring-curve) !important;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

.btn-danger,
.btn-outline-danger {
  border-radius: 9999px !important;
}

/* --------------------------------------------------------------------------
   APPLE SWITCH TOGGLES (51px x 31px)
   -------------------------------------------------------------------------- */
.form-check-input[type="checkbox"] {
  width: 51px !important;
  height: 31px !important;
  border-radius: 9999px !important;
  background-color: rgba(120, 120, 128, 0.32) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background-image: none !important;
  position: relative !important;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  transition: background-color 0.3s var(--ios-spring-curve), border-color 0.3s var(--ios-spring-curve) !important;
  vertical-align: middle;
}

.form-check-input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s var(--ios-spring-curve);
}

.form-check-input[type="checkbox"]:checked {
  background-color: #34c759 !important; /* iOS active green */
  border-color: #34c759 !important;
}

.form-check-input[type="checkbox"].switch-gold:checked {
  background: var(--ios-gold-gradient) !important;
  border-color: var(--ios-gold) !important;
}

.form-check-input[type="checkbox"]:checked::after {
  transform: translateX(20px);
}

/* --------------------------------------------------------------------------
   TABLES & PAGINATION IN LIQUID GLASS
   -------------------------------------------------------------------------- */
.table-dark {
  --bs-table-bg: transparent !important;
  --bs-table-striped-bg: rgba(255, 255, 255, 0.02) !important;
  --bs-table-border-color: var(--ios-glass-border) !important;
  color: #eaeaea !important;
}

.table > :not(caption) > * > * {
  border-bottom-color: var(--ios-glass-border) !important;
  padding: 12px 14px !important;
}

.pagination {
  gap: 4px;
}

.pagination .page-link {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--ios-glass-border) !important;
  border-radius: 12px !important;
  color: #eaeaea !important;
  padding: 6px 12px !important;
  transition: all 0.2s ease;
}

.pagination .page-link:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: var(--ios-gold-bright) !important;
}

.pagination .page-item.active .page-link {
  background: var(--ios-gold-glass) !important;
  border-color: var(--ios-gold-border) !important;
  color: var(--ios-gold-bright) !important;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   FULLCALENDAR APPLE DARK THEME
   -------------------------------------------------------------------------- */
.fc {
  --fc-page-bg-color: transparent !important;
  --fc-neutral-bg-color: rgba(255, 255, 255, 0.04) !important;
  --fc-neutral-text-color: #eaeaea !important;
  --fc-border-color: var(--ios-glass-border) !important;
  --fc-button-bg-color: rgba(255, 255, 255, 0.06) !important;
  --fc-button-border-color: var(--ios-glass-border) !important;
  --fc-button-text-color: #eaeaea !important;
  --fc-button-hover-bg-color: rgba(255, 255, 255, 0.12) !important;
  --fc-button-active-bg-color: var(--ios-gold) !important;
  --fc-today-bg-color: rgba(212, 175, 55, 0.08) !important;
}

.fc .fc-button {
  border-radius: 9999px !important;
  padding: 6px 14px !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
}

.fc-event {
  border-radius: 10px !important;
  padding: 2px 6px !important;
  border: none !important;
  font-weight: 500 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

/* --------------------------------------------------------------------------
   MODALS IN APPLE LIQUID GLASS
   -------------------------------------------------------------------------- */
.modal-content {
  background: linear-gradient(145deg, rgba(28, 28, 34, 0.94) 0%, rgba(14, 14, 18, 0.98) 100%) !important;
  backdrop-filter: blur(40px) saturate(210%) !important;
  -webkit-backdrop-filter: blur(40px) saturate(210%) !important;
  border-radius: 28px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.28),
    0 24px 60px rgba(0, 0, 0, 0.85) !important;
  overflow: hidden;
}

.modal-header {
  border-bottom: 1px solid var(--ios-glass-border) !important;
  padding: 18px 24px !important;
}

.modal-footer {
  border-top: 1px solid var(--ios-glass-border) !important;
  padding: 16px 24px !important;
}

.btn-close-white {
  opacity: 0.65;
  transition: opacity 0.2s ease;
}
.btn-close-white:hover {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   NOTIFICATION TOASTS IN LIQUID GLASS
   -------------------------------------------------------------------------- */
.toast {
  background: rgba(22, 22, 28, 0.88) !important;
  backdrop-filter: blur(28px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
  border: 1px solid var(--ios-glass-border) !important;
  border-radius: 18px !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 14px 35px rgba(0, 0, 0, 0.6) !important;
  color: #fff !important;
}
/* ApexCharts in Apple Liquid Glass */
.apexcharts-canvas {
  background: transparent !important;
}
.apexcharts-canvas text {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif !important;
}
.apexcharts-tooltip {
  background: rgba(20, 20, 26, 0.92) !important;
  backdrop-filter: blur(30px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(30px) saturate(200%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 16px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 14px 35px rgba(0, 0, 0, 0.7) !important;
  color: #fff !important;
}
.apexcharts-tooltip.apexcharts-theme-dark,
.apexcharts-tooltip.apexcharts-theme-light {
  background: rgba(20, 20, 26, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}
.apexcharts-tooltip-title {
  background: rgba(255, 255, 255, 0.05) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  font-family: inherit !important;
  font-weight: 600 !important;
  color: var(--ios-gold-bright) !important;
}
.apexcharts-xaxistooltip,
.apexcharts-yaxistooltip {
  background: rgba(20, 20, 26, 0.92) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 10px !important;
  color: #fff !important;
}
.apexcharts-gridline {
  stroke: rgba(255, 255, 255, 0.05) !important;
}

/* ==========================================================================
   Apple Liquid Glass - Profile & Team Management Extensions
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
@media (max-width: 576px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}
.team-card {
  background: rgba(22, 22, 26, 0.72) !important;
  backdrop-filter: blur(28px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 20px !important;
  padding: 18px !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}
.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
}
.team-card:hover {
  transform: translateY(-2px);
  border-color: rgba(243, 207, 122, 0.4) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(243, 207, 122, 0.12);
}
.team-avatar-ring {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  object-fit: cover;
  border: 2px solid rgba(243, 207, 122, 0.6);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

/* iOS Weekday Pills */
.ios-weekday-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ios-weekday-pill {
  flex: 1;
  min-width: 38px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}
.ios-weekday-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.ios-weekday-pill.active {
  background: linear-gradient(135deg, rgba(243, 207, 122, 0.35), rgba(243, 207, 122, 0.15)) !important;
  border-color: #f3cf7a !important;
  color: #f3cf7a !important;
  box-shadow: 0 0 14px rgba(243, 207, 122, 0.3);
}

/* Quick Time Preset Chips */
.ios-time-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ios-time-chip {
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.ios-time-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.ios-time-chip.active {
  background: rgba(10, 132, 255, 0.25) !important;
  border-color: #0a84ff !important;
  color: #60a5fa !important;
}

/* Block Item Card */
.block-item-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px 18px;
  transition: all 0.2s ease;
}
.block-item-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
}


/* --------------------------------------------------------------------------
   DARK THEME CONTRAST & TYPOGRAPHY FIXES (High Legibility on Dark Backgrounds)
   -------------------------------------------------------------------------- */
.text-muted,
.muted {
  color: rgba(235, 235, 245, 0.72) !important;
}

.text-secondary {
  color: rgba(235, 235, 245, 0.75) !important;
}

.text-muted.small,
small.text-muted {
  color: rgba(235, 235, 245, 0.78) !important;
}

.text-white-50 {
  color: rgba(255, 255, 255, 0.72) !important;
}

/* Specific Client Card Expansion Contrast */
.client-card .text-muted,
.client-body .text-muted {
  color: rgba(235, 235, 245, 0.82) !important;
}

.client-body small.text-muted {
  color: rgba(243, 207, 122, 0.90) !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
}

.client-body .p-2.rounded-3 {
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}
