/* ==========================================================================
   LEVEL TACÁMBARO - PANEL ADMINISTRADOR MATCHING USER REFERENCE SCREENSHOT (1:1)
   ========================================================================== */

:root {
  /* Layout Colors */
  --bg-app: #F3F5F8;
  --bg-sidebar: #0D1C22;
  --bg-sidebar-dark: #0A161B;
  --bg-card: #FFFFFF;
  --panel-border: #E2E8F0;
  
  /* Brand Accent Colors */
  --brand-emerald: #10B981;
  --brand-emerald-dark: #0F5B46;
  --brand-green-glow: rgba(16, 185, 129, 0.25);
  --brand-lime: #84CC16;
  --brand-cyan: #38BDF8;
  --brand-blue: #2563EB;
  --brand-orange: #F97316;
  --brand-purple: #9333EA;
  --brand-red: #EF4444;
  
  /* Text Colors */
  --text-dark: #0F172A;
  --text-muted: #64748B;
  --text-sidebar: #94A3B8;
  --text-sidebar-active: #10B981;
  
  /* Radius & Shadows */
  --radius-xl: 18px;
  --radius-lg: 12px;
  --radius-md: 8px;
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 10px 25px -3px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-app);
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-emerald);
}

/* Main Layout Structure */
.admin-app-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
  background-color: var(--bg-app);
}

/* ==========================================================================
   1. SIDEBAR DRAWER NAVIGATION (DARK TEAL ELEGANT STYLE)
   ========================================================================== */
/* COLOR ANTERIOR DEL MENÚ - DESCOMENTAR PARA RESTAURAR:
   background: #0F172A;
*/
.admin-sidebar {
  width: 250px;
  min-width: 250px;
  background: linear-gradient(170deg, #047857 0%, #059669 25%, #0284C7 75%, #0369A1 100%);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 50;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.sidebar-brand-card {
  height: 68px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #E2E8F0;
  background: #FFFFFF;
  box-sizing: border-box;
}

.brand-logo-text-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.brand-logo-level {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
}

.bracket-orange {
  color: #FF5500;
  font-weight: 900;
  margin-right: 2px;
}

.level-word {
  color: #0F172A;
  font-weight: 900;
  position: relative;
}

.level-word::after {
  content: '•';
  color: #84CC16;
  position: absolute;
  top: -3px;
  right: 15px;
  font-size: 13px;
}

.bracket-cyan {
  color: #00B4D8;
  font-weight: 900;
  margin-left: 2px;
}

.brand-sub-centro {
  font-family: 'Outfit', sans-serif;
  font-size: 8px;
  font-weight: 800;
  color: #84CC16;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-top: 4px;
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-title-main {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.2px;
}

.brand-subtitle-sub {
  font-size: 9px;
  font-weight: 700;
  color: var(--brand-emerald);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px 12px;
}

/* Sidebar Top User Card (Matches Mobile App Drawer Header Card) */
.sidebar-top-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.65);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.user-avatar-halo {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284C7 0%, #10B981 100%);
  border: 2px solid #84CC16;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.user-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #34D399;
  border: 2px solid #0F172A;
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.8);
}

.user-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.user-name {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-subtext {
  font-size: 10.5px;
  font-weight: 600;
  color: #CBD5E1;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sidebar Bottom Logout Footer */
.sidebar-user-footer {
  padding: 14px 14px 18px 14px;
  background: rgba(15, 23, 42, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.sidebar-logout-btn {
  width: 100%;
  background: rgba(239, 68, 68, 0.14);
  color: #F87171;
  border: 1.5px solid rgba(239, 68, 68, 0.35);
  padding: 11px;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.sidebar-logout-btn:hover {
  background: #EF4444;
  color: #FFFFFF;
  border-color: #EF4444;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

.sidebar-logout-btn .logout-icon {
  width: 16px;
  height: 16px;
  color: inherit;
}

.menu-label {
  padding: 18px 10px 8px 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 900;
  color: #34D399;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: all 0.2s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  min-height: 40px;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateX(4px);
}

.nav-btn.active {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  border: 1px solid #34D399;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35);
}

.nav-title {
  font-family: 'Outfit', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.nav-btn.active .nav-title {
  color: #FFFFFF;
  font-weight: 800;
}

.nav-icon {
  width: 18px;
  height: 18px;
  min-width: 18px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.icon-cyan { color: #38BDF8; }
.icon-green { color: #34D399; }
.icon-amber { color: #FBBF24; }
.icon-blue { color: #60A5FA; }
.icon-lime { color: #A3E635; }

.nav-btn.active .nav-icon {
  color: #FFFFFF !important;
}

.nav-badge {
  font-size: 8px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-left: auto;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-live { background: rgba(16, 185, 129, 0.25); color: #6EE7B7; border: 1px solid rgba(52, 211, 153, 0.4); }
.badge-gray { background: rgba(255, 255, 255, 0.15); color: #E2E8F0; border: 1px solid rgba(255, 255, 255, 0.25); }
.badge-red { background: rgba(239, 68, 68, 0.25); color: #FCA5A5; border: 1px solid rgba(239, 68, 68, 0.4); }

.sidebar-footer {
  padding: 14px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.2);
}

.btn-app-preview {
  width: 100%;
  background: rgba(16, 185, 129, 0.12);
  color: var(--brand-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 9px;
  border-radius: var(--radius-md);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 12px;
}

.btn-app-preview:hover {
  background: var(--brand-emerald);
  color: #000000;
}

.sidebar-user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
}

.sidebar-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--brand-emerald);
}

.sidebar-user-name {
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
}

.sidebar-user-role {
  font-size: 10px;
  color: var(--text-sidebar);
}

/* ==========================================================================
   2. MAIN WORKSPACE AREA & TOP NAVBAR HEADER
   ========================================================================== */
.admin-main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-y: auto;
}

/* Top Navbar Header */
.admin-navbar {
  height: 56px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--panel-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.header-left-section {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pill-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 20px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #475569;
}

.dot-green {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-emerald);
  box-shadow: 0 0 8px var(--brand-emerald);
}

.header-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 6px 14px;
  width: 180px;
}

.header-search-bar input {
  background: transparent;
  border: none;
  outline: none;
  font-size: 12px;
  color: var(--text-dark);
  width: 100%;
}

.header-action-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-header-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-action-emerald {
  background: #0F5B46;
  color: #FFFFFF;
}

.btn-action-emerald:hover {
  background: #10B981;
  transform: translateY(-1px);
}

.btn-action-whatsapp {
  background: #128C7E;
  color: #FFFFFF;
}

.btn-action-whatsapp:hover {
  background: #25D366;
  transform: translateY(-1px);
}

.btn-action-tpv {
  background: #1E293B;
  color: #FFFFFF;
}

.btn-action-tpv:hover {
  background: #334155;
  transform: translateY(-1px);
}

.header-right-profile {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-bell-btn {
  position: relative;
  background: transparent;
  border: none;
  color: #64748B;
  font-size: 18px;
  cursor: pointer;
}

.bell-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 14px;
  height: 14px;
  background: var(--brand-red);
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand-emerald);
}

.header-user-info {
  display: flex;
  flex-direction: column;
}

.header-user-name {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-dark);
}

.header-user-sub {
  font-size: 10px;
  color: var(--text-muted);
}

/* ==========================================================================
   3. DASHBOARD MAIN CONTAINER & TITLE ROW
   ========================================================================== */
.admin-container {
  padding: 16px 18px;
  flex: 1;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}

.admin-tab-pane {
  display: none;
  animation: fadeInTab 0.3s ease forwards;
}

.admin-tab-pane.active {
  display: block;
}

@keyframes fadeInTab {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.dashboard-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 16px;
}

.dashboard-title-row h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 19px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.4px;
}

.dashboard-title-row p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.time-filter-group {
  display: flex;
  background: #E2E8F0;
  padding: 3px;
  border-radius: var(--radius-md);
  gap: 3px;
}

.filter-btn {
  background: transparent;
  border: none;
  color: #64748B;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn.active {
  background: #10B981;
  color: #000000;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

/* ==========================================================================
   4. TOP 4 EXECUTIVE KPI CARDS (LIGHT CLEAN GRAPHIC CARDS)
   ========================================================================== */
.kpi-grid-executive {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.kpi-card-exec {
  background: #FFFFFF;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-xl);
  padding: 14px 15px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.kpi-card-exec:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: #CBD5E1;
}

.kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.kpi-title {
  font-family: 'Outfit', sans-serif;
  font-size: 9.5px;
  font-weight: 800;
  color: #64748B;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.kpi-icon-circle {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.icon-green-bg { background: #ECFDF5; color: var(--brand-emerald); }
.icon-blue-bg { background: #F0F9FF; color: var(--brand-cyan); }
.icon-orange-bg { background: #FFF7ED; color: var(--brand-orange); }
.icon-purple-bg { background: #F3E8FF; color: var(--brand-purple); }

.kpi-card-exec h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 4px;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.kpi-card-exec h2 small {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.kpi-bottom {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
}

.text-green { color: #059669; }
.text-muted { color: var(--text-muted); }

/* ==========================================================================
   5. MIDDLE GRID (SANKEY FLOW CHART + 3D ISOMETRIC COURTS)
   ========================================================================== */
.executive-middle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .executive-middle-grid { grid-template-columns: 1fr; }
}

.exec-card {
  background: #FFFFFF;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-xl);
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
}

.card-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #F1F5F9;
}

.header-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-title-group h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-dark);
}

.update-badge {
  font-size: 10px;
  font-weight: 700;
  color: #64748B;
  background: #F1F5F9;
  padding: 3px 8px;
  border-radius: 12px;
}

.link-action {
  font-size: 11px;
  font-weight: 800;
  color: #0284C7;
  text-decoration: none;
}

.link-action:hover {
  text-decoration: underline;
}

/* SANKEY FLOW RIBBON CHART GRAPHIC */
.sankey-chart-container {
  position: relative;
  width: 100%;
  height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sankey-svg-ribbons {
  position: absolute;
  top: 15px;
  left: 0;
  width: 100%;
  height: 130px;
  z-index: 1;
  pointer-events: none;
}

.sankey-columns-flex {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 150px;
  gap: 8px;
}

.sankey-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}

.sankey-percent {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.sankey-bar-pill {
  width: 100%;
  max-width: 32px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: height 0.6s ease;
}

.sankey-green-fill { background: linear-gradient(180deg, #10B981 0%, #059669 100%); }
.sankey-blue-fill { background: linear-gradient(180deg, #0284C7 0%, #0369A1 100%); }
.sankey-lime-fill { background: linear-gradient(180deg, #84CC16 0%, #65A30D 100%); }
.sankey-red-fill { background: linear-gradient(180deg, #EF4444 0%, #B91C1C 100%); }

.sankey-time-label {
  font-size: 10px;
  font-weight: 700;
  color: #475569;
  margin-top: 8px;
  text-align: center;
}

.sankey-sub-label {
  font-size: 9px;
  color: #94A3B8;
}

/* 3D ISOMETRIC COURT GRAPHIC BOX */
.courts-3d-wrapper {
  position: relative;
  width: 100%;
  height: 190px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid #E2E8F0;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
}

.courts-3d-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.court-overlay-badge {
  position: absolute;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
}

.badge-pista-1 {
  top: 14px;
  left: 14px;
}

.badge-pista-2 {
  bottom: 14px;
  right: 14px;
}

.tag-pista-num {
  background: #0F172A;
  color: #FFFFFF;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 800;
}

.badge-status-playing {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FCA5A5;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
}

.badge-status-reserved {
  background: #EFF6FF;
  color: #2563EB;
  border: 1px solid #BFDBFE;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
}

/* ==========================================================================
   6. BOTTOM TABLE: ÚLTIMAS RESERVAS REGISTRADAS
   ========================================================================== */
.admin-table-exec {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}

.admin-table-exec th {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 800;
  color: #64748B;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 12px 14px;
  border-bottom: 2px solid #F1F5F9;
  background: #F8FAFC;
}

.admin-table-exec td {
  padding: 12px 14px;
  border-bottom: 1px solid #F1F5F9;
  color: var(--text-dark);
  vertical-align: middle;
}

.admin-table-exec tbody tr:hover {
  background: #F8FAFC;
}

.qr-thumb-img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 1px solid #CBD5E1;
}

.btn-qr-view {
  background: #0284C7;
  color: #FFFFFF;
  border: none;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-qr-view:hover {
  background: #0369A1;
}

.dot-status-red {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #EF4444;
  display: inline-block;
  margin-left: 4px;
}

.dot-status-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  display: inline-block;
  margin-left: 4px;
}

/* Responsiveness */
@media (max-width: 950px) {
  .admin-app-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; min-width: 100%; height: auto; position: relative; }
  .kpi-grid-executive { grid-template-columns: 1fr 1fr; }
  .calendar-weekdays-grid, .calendar-days-grid { grid-template-columns: repeat(4, 1fr); }
  .day-24h-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   7. MONTHLY CALENDAR GRID & PLANNING (CUADRANTE DE CANCHAS)
   ========================================================================== */

/* Modern Month Selector Toolbar */
.calendar-month-selector-container {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F8FAFC;
  padding: 5px;
  border-radius: 14px;
  border: 1px solid #E2E8F0;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.month-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #475569;
  font-family: 'Outfit', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.month-nav-btn:hover {
  background: #0284C7;
  color: #FFFFFF;
  border-color: #0284C7;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.current-month-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #FFFFFF;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 800;
  padding: 7px 18px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
  letter-spacing: 0.3px;
}

.month-cal-icon {
  font-size: 14px;
}

.today-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #86EFAC;
  font-family: 'Outfit', sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  padding: 6.5px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 4px;
}

.today-quick-btn:hover {
  background: #10B981;
  color: #FFFFFF;
  border-color: #10B981;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.today-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #22C55E;
  border-radius: 50%;
  display: inline-block;
  animation: pulseGreen 1.8s infinite;
}

.today-quick-btn:hover .today-pulse-dot {
  background-color: #FFFFFF;
  animation: none;
}

@keyframes pulseGreen {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.calendar-day-card.today {
  background: linear-gradient(135deg, #ECFDF5 0%, #F0FDF4 100%);
  border: 2px solid #10B981;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2);
}

.pulse-highlight {
  animation: todayCardFlash 1.5s ease-in-out infinite;
}

@keyframes todayCardFlash {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2); }
  50% { transform: scale(1.04); box-shadow: 0 8px 28px rgba(16, 185, 129, 0.45); }
}

.monthly-calendar-wrapper {
  background: #FFFFFF;
  border-radius: 20px;
  border: 1px solid #E2E8F0;
  padding: 24px;
  margin-top: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.calendar-weekdays-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: #64748B;
  letter-spacing: 0.5px;
  padding-bottom: 14px;
  border-bottom: 1px solid #E2E8F0;
  margin-bottom: 16px;
}

.calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}

.calendar-day-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 14px 12px;
  min-height: 95px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.calendar-day-card:hover {
  background: #FFFFFF;
  border-color: #0284C7;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.16);
}

.calendar-day-card.today {
  background: #F0FDF4;
  border: 2px solid #10B981;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.15);
}

.day-number-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.day-num {
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: #0F172A;
}

.today-badge {
  background: #10B981;
  color: #FFFFFF;
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 8px;
  letter-spacing: 0.5px;
}

.day-occupancy-pill {
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 10px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.occ-medium {
  background: #F0FDF4;
  color: #15803D;
  border: 1px solid #BBF7D0;
}

.occ-high {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FCA5A5;
}

.occ-full {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #F87171;
}

/* ==========================================================================
   8. ADMIN MODALS & 24-HOUR AVAILABILITY MODAL
   ========================================================================== */

.admin-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Modal Stacking Hierarchy - Action Modals Open ON TOP of Base Modals */
#dayAvailabilityModalOverlay {
  z-index: 9990 !important;
}

#bookingModalOverlay,
#createUserModalOverlay,
#editUserModalOverlay,
#createCourtModalOverlay,
#editCourtModalOverlay,
#modalProductOverlay {
  z-index: 10050 !important;
}

#modalAddCategoryOverlay,
#modalQuickSaleOverlay,
#adminLogoutConfirmModalOverlay {
  z-index: 100000 !important;
}


.admin-modal-card {
  background: #FFFFFF;
  border-radius: 24px;
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F8FAFC;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-title-group h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
}

.btn-close-modal {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 14px;
  font-weight: 700;
  color: #64748B;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-close-modal:hover {
  background: #EF4444;
  color: #FFFFFF;
  border-color: #EF4444;
}

.form-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background: #F8FAFC;
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
}

/* Court Switcher Tabs in 24h Modal */
.day-modal-card {
  max-width: 1060px !important;
  width: 96% !important;
  max-height: 94vh !important;
  overflow: hidden !important;
  border-radius: 20px !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35) !important;
}

.day-modal-card .modal-header {
  padding: 12px 20px !important;
}

.day-modal-card .form-body {
  padding: 12px 18px !important;
  overflow: hidden !important;
}

.day-modal-card .modal-footer {
  padding: 10px 20px !important;
}

.day-modal-courts-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.court-tab-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #CBD5E1;
  background: #F8FAFC;
  font-family: 'Outfit', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.court-tab-btn.active {
  background: #0284C7;
  color: #FFFFFF;
  border-color: #0284C7;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

/* 24 Hours Grid (Exact 6 Columns x 4 Rows - NO SCROLL) */
.day-24h-grid {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 6px !important;
  margin-top: 6px !important;
}

.time-slot-card {
  padding: 6px 2px !important;
  border-radius: 8px !important;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s ease;
  border: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 48px !important;
  box-sizing: border-box;
}

.time-slot-card div {
  font-family: 'Outfit', sans-serif;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.1;
}

.time-slot-card small {
  font-size: 9px !important;
  font-weight: 600 !important;
  letter-spacing: -0.2px;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  padding: 0 1px;
}

.time-slot-card.free {
  background: #F0FDF4;
  border-color: #86EFAC;
  color: #166534;
}

.time-slot-card.free:hover {
  background: #DCFCE7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22, 101, 52, 0.15);
}

.time-slot-card.booked {
  background: #FEF2F2;
  border-color: #FCA5A5;
  color: #991B1B;
}

.time-slot-card.booked:hover {
  background: #FEE2E2;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(153, 27, 27, 0.15);
}

.time-slot-card.blocked {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #64748B;
}

.time-slot-card.blocked:hover {
  background: #E2E8F0;
}

/* ==========================================================================
   9. FORM INPUT CONTROLS & MODAL FORM STYLING
   ========================================================================== */

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 6px;
}

.form-group label .req {
  color: #EF4444;
  font-weight: 800;
}

.admin-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #CBD5E1;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #0F172A;
  background: #FFFFFF;
  transition: all 0.2s ease;
  outline: none;
  box-sizing: border-box;
}

.admin-input:focus {
  border-color: #0284C7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.selected-time-summary {
  background: #F0F9FF;
  border: 1px solid #BAE6FD;
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.range-badge {
  font-size: 12px;
  color: #0369A1;
  font-weight: 600;
}

.total-summary-box {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  font-family: 'Outfit', sans-serif;
}

.total-summary-box span {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
}

.total-summary-box strong {
  font-size: 20px;
  font-weight: 900;
  color: #10B981;
}

/* ==========================================================================
   10. UNIVERSAL BUTTON & MODAL FOOTER DESIGN SYSTEM
   ========================================================================== */

/* Universal Modal Header Close Button (X) */
.btn-close-modal {
  background: #F1F5F9 !important;
  border: 1px solid #CBD5E1 !important;
  border-radius: 50% !important;
  width: 32px !important;
  height: 32px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #64748B !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  outline: none !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04) !important;
}

.btn-close-modal:hover {
  background: #EF4444 !important;
  color: #FFFFFF !important;
  border-color: #EF4444 !important;
  transform: scale(1.08) !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}

/* Universal Action Buttons */
.btn-head-action, .btn-primary, .btn-secondary, .btn-dark, .btn-green, .btn-cyan, .btn-danger, .btn-red {
  font-family: 'Outfit', sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  padding: 8px 16px !important;
  border-radius: 10px !important;
  border: none !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  outline: none !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  text-decoration: none !important;
}

/* Button Variants */
.btn-dark {
  background: #1E293B !important;
  color: #FFFFFF !important;
  border: 1px solid #334155 !important;
  box-shadow: 0 2px 8px rgba(30, 41, 59, 0.15) !important;
}
.btn-dark:hover {
  background: #0F172A !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25) !important;
}

.btn-green, .btn-primary {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid #059669 !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25) !important;
}
.btn-green:hover, .btn-primary:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35) !important;
}

.btn-cyan {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid #0369A1 !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25) !important;
}
.btn-cyan:hover {
  background: linear-gradient(135deg, #0369A1 0%, #075985 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35) !important;
}

.btn-danger, .btn-red {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid #DC2626 !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25) !important;
}
.btn-danger:hover, .btn-red:hover {
  background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.35) !important;
}

/* Modern Styled Dropdowns matching App Theme */
.admin-select-action, .admin-select-filter, #bookingUserFilterSelect {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 8px 30px 8px 14px !important;
  border-radius: 10px !important;
  border: 1.5px solid #CBD5E1 !important;
  background-color: #FFFFFF !important;
  color: #0F172A !important;
  cursor: pointer !important;
  outline: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230284C7' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  background-size: 13px !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

.admin-select-action:hover, .admin-select-filter:hover, #bookingUserFilterSelect:hover {
  border-color: #0284C7 !important;
  background-color: #F8FAFC !important;
  box-shadow: 0 3px 8px rgba(2, 132, 199, 0.15) !important;
  transform: translateY(-1px) !important;
}

.admin-select-action:focus, .admin-select-filter:focus, #bookingUserFilterSelect:focus {
  border-color: #10B981 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2) !important;
}

.admin-select-action option, .admin-select-filter option, #bookingUserFilterSelect option {
  font-family: 'Outfit', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 8px 12px !important;
  background: #FFFFFF !important;
  color: #0F172A !important;
}

/* Lucide Icon Alignment inside Buttons */
.btn-head-action svg, .btn-primary svg, .btn-secondary svg, .btn-dark svg, .btn-green svg, .btn-cyan svg, .btn-danger svg, .btn-red svg {
  width: 15px !important;
  height: 15px !important;
  stroke-width: 2.2px !important;
}

/* Modal Footer Styling */
.modal-footer {
  padding: 12px 20px !important;
  border-top: 1px solid #E2E8F0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  background: #F8FAFC !important;
  border-bottom-left-radius: 20px !important;
  border-bottom-right-radius: 20px !important;
}

/* ==========================================================================
   11. CENTERED ELEGANT WHITE TOAST & ALERT SYSTEM
   ========================================================================== */

.toast-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 25000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: transparent;
  transition: background 0.3s ease;
}

.toast-container:has(.toast-item) {
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
}

.toast-item {
  pointer-events: auto;
  background: #FFFFFF !important;
  border-radius: 20px !important;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.3), 0 0 0 1px rgba(226, 232, 240, 0.9) !important;
  padding: 28px 32px !important;
  max-width: 440px !important;
  width: 90% !important;
  text-align: center !important;
  margin: 0 auto !important;
  animation: modalCenterScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

@keyframes modalCenterScaleIn {
  from {
    opacity: 0;
    transform: scale(0.85) translateY(15px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.toast-icon {
  width: 60px !important;
  height: 60px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 16px auto !important;
  font-size: 28px !important;
}

.toast-success .toast-icon {
  background: #ECFDF5 !important;
  color: #10B981 !important;
  border: 1.5px solid #A7F3D0 !important;
}

.toast-error .toast-icon {
  background: #FEF2F2 !important;
  color: #EF4444 !important;
  border: 1.5px solid #FCA5A5 !important;
}

.toast-warning .toast-icon {
  background: #FFFBEB !important;
  color: #F59E0B !important;
  border: 1.5px solid #FDE68A !important;
}

.toast-info .toast-icon {
  background: #F0F9FF !important;
  color: #0284C7 !important;
  border: 1.5px solid #BAE6FD !important;
}

.toast-content {
  width: 100% !important;
}

.toast-content h4 {
  font-family: 'Outfit', sans-serif !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #0F172A !important;
  margin: 0 0 8px 0 !important;
}

.toast-content p {
  font-family: 'Inter', sans-serif !important;
  font-size: 13.5px !important;
  color: #475569 !important;
  margin: 0 0 20px 0 !important;
  line-height: 1.45 !important;
  white-space: pre-line !important;
}

.toast-close-btn {
  background: #0F172A !important;
  color: #FFFFFF !important;
  border: none !important;
  padding: 10px 24px !important;
  border-radius: 12px !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15) !important;
  width: 100% !important;
  max-width: 160px !important;
}

.toast-close-btn:hover {
  background: #1E293B !important;
  transform: translateY(-1px) !important;
}

/* ==========================================================================
   ADMIN LOGIN SCREEN (Glassmorphism Dark Elegance)
   ========================================================================== */
.admin-login-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #F0FDF4 0%, #F0F9FF 50%, #FFF5F5 100%);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  overflow: hidden;
}

.admin-login-screen::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  pointer-events: none;
  animation: pulseGlow 6s ease-in-out infinite alternate;
}

.admin-login-screen::after {
  content: '';
  position: absolute;
  bottom: -120px;
  left: -120px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.15) 0%, transparent 70%);
  pointer-events: none;
  animation: pulseGlow 8s ease-in-out infinite alternate-reverse;
}

@keyframes pulseGlow {
  0% { transform: scale(0.9); opacity: 0.7; }
  100% { transform: scale(1.15); opacity: 1; }
}

.admin-login-card {
  width: 100%;
  max-width: 430px;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 28px;
  padding: 40px 34px;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.1), 0 4px 16px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
  animation: loginCardAppear 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 10;
  overflow: hidden;
}

.admin-login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #10B981 0%, #0284C7 50%, #EF4444 100%);
}

@keyframes loginCardAppear {
  from { opacity: 0; transform: scale(0.95) translateY(16px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.login-brand-header {
  text-align: center;
  margin-bottom: 24px;
}

.login-club-logo-container {
  width: auto;
  max-width: 240px;
  height: 64px;
  border-radius: 16px;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  margin: 0 auto 16px auto;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.login-club-logo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border: none;
  box-shadow: none;
  margin: 0;
}

.login-title {
  font-family: 'Outfit', sans-serif;
  font-size: 25px;
  font-weight: 900;
  color: #0F172A;
  margin: 0 0 6px 0;
  letter-spacing: -0.5px;
}

.login-subtitle-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #059669;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 4px;
}

.login-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: #475569;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.login-input {
  width: 100%;
  padding: 12px 14px;
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: 14px;
  color: #0F172A;
  font-size: 13.5px;
  font-weight: 600;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.admin-login-card .login-input {
  width: 100%;
  padding: 12px 14px 12px 38px !important;
  background: #F8FAFC !important;
  border: 1.5px solid #CBD5E1 !important;
  border-radius: 14px !important;
  color: #0F172A !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.admin-login-card .login-input::placeholder {
  color: #94A3B8 !important;
}

.login-input:focus,
.admin-login-card .login-input:focus {
  outline: none;
  border-color: #0284C7 !important;
  background: #FFFFFF !important;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15) !important;
}

.btn-submit-login {
  width: 100%;
  padding: 14px;
  margin-top: 10px;
  background: linear-gradient(135deg, #10B981 0%, #0284C7 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.35);
  transition: all 0.25s ease;
}

.btn-submit-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.45);
  background: linear-gradient(135deg, #059669 0%, #0369A1 100%);
}

.login-footer-info {
  margin-top: 20px;
  text-align: center;
  font-size: 11.5px;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 500;
}

/* Modal Cerrar Sesion Ejecutivo */
.logout-confirm-card {
  background: #FFFFFF;
  border-radius: 24px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  padding: 32px 28px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  border: 1px solid #E2E8F0;
  animation: logoutModalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  margin: auto;
}

.logout-confirm-card input,
.logout-confirm-card select,
.logout-confirm-card textarea {
  width: 100%;
  padding: 11px 14px;
  background: #F8FAFC !important;
  border: 1px solid #CBD5E1 !important;
  border-radius: 12px !important;
  color: #0F172A !important;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.logout-confirm-card input:focus,
.logout-confirm-card select:focus,
.logout-confirm-card textarea:focus {
  outline: none;
  background: #FFFFFF !important;
  border-color: #10B981 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18) !important;
}

@keyframes logoutModalPop {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.logout-modal-icon-container {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: #FEF2F2;
  color: #EF4444;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  border: 1.5px solid #FECACA;
  box-shadow: 0 10px 20px rgba(239, 68, 68, 0.12);
}

.logout-modal-icon {
  width: 30px;
  height: 30px;
}

.logout-modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 10px 0;
  letter-spacing: -0.02em;
}

.logout-modal-text {
  font-size: 14px;
  color: #64748B;
  margin: 0 0 28px 0;
  line-height: 1.6;
}

.logout-user-highlight {
  color: #0F172A;
  font-weight: 700;
}

.logout-modal-actions {
  display: flex;
  gap: 12px;
}

.btn-logout-cancel {
  flex: 1;
  padding: 14px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #CBD5E1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-logout-cancel:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.btn-logout-confirm {
  flex: 1.2;
  padding: 14px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 14px;
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-logout-confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.45);
}

/* ==========================================================================
   ELEGANT SEGMENTED CONTROL BAR FOR CASH SUB-TABS
   ========================================================================== */
.cash-tab-segmented {
  display: inline-flex;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  padding: 5px;
  border-radius: 14px;
  gap: 6px;
  max-width: 100%;
  flex-wrap: wrap;
}

.cash-tab-sub-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: #64748B;
  padding: 9px 20px;
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.cash-tab-sub-btn i {
  width: 17px;
  height: 17px;
  color: #64748B;
  transition: color 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.cash-tab-sub-btn span {
  pointer-events: none;
}

.cash-tab-sub-btn:hover {
  color: #1E293B;
  background: rgba(255, 255, 255, 0.65);
}

.cash-tab-sub-btn:hover i {
  color: #334155;
}

.cash-tab-sub-btn.active {
  background: #FFFFFF;
  color: #0F172A;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
  border-color: rgba(226, 232, 240, 0.9);
}

.cash-tab-sub-btn.active i {
  color: #10B981;
}

.cash-tab-sub-btn.active.history-tab i {
  color: #0284C7;
}

.tab-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  display: inline-block;
  margin-left: 2px;
}







/* =========================================================
   ESTADO / PAGO BADGES & UTILITIES
   ========================================================= */
.badge-status-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 4px 10px !important;
  border-radius: 20px !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.2px !important;
  white-space: nowrap !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.badge-status-pill.status-pending {
  background: #FEF2F2 !important;
  color: #DC2626 !important;
  border: 1px solid #FCA5A5 !important;
}

.badge-status-pill.status-review {
  background: #FFFBEB !important;
  color: #D97706 !important;
  border: 1px solid #FDE68A !important;
}

.badge-status-pill.status-cash {
  background: #F0F9FF !important;
  color: #0284C7 !important;
  border: 1px solid #BAE6FD !important;
}

.badge-status-pill.status-card {
  background: #F5F3FF !important;
  color: #7C3AED !important;
  border: 1px solid #DDD6FE !important;
}

.badge-status-pill.status-transfer {
  background: #F0FDF4 !important;
  color: #166534 !important;
  border: 1px solid #86EFAC !important;
}

.badge-status-pill.status-rejected {
  background: #FFF1F2 !important;
  color: #E11D48 !important;
  border: 1px solid #FECDD3 !important;
}