@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300..700;1,300..700&display=swap');

:root {
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Vivid Light Glassmorphism Palette */
  --bg-body: #f1f5f9;
  --bg-body-2: #e2e8f0;
  --bg-card: #ffffff;
  --bg-card-solid: #ffffff;
  --glass-bg: #ffffff;
  --glass-bg-hover: linear-gradient(135deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.65) 100%);
  --glass-border: rgba(255, 255, 255, 0.90);
  --glass-border-subtle: rgba(226, 232, 240, 0.6);

  /* ── Text ─────────────────────────────────── */
  --text-main: #0f172a;
  /* Slate 900 */
  --text-sub: #334155;
  /* Slate 700 */
  --text-muted: #64748b;
  /* Slate 500 */
  --text-light: #94a3b8;
  /* Slate 400 */

  /* ── Brand / Accent ───────────────────────── */
  --primary: #4f46e5;
  /* Indigo 600 */
  --primary-hover: #4338ca;
  /* Indigo 700 */
  --primary-light: rgba(79, 70, 229, 0.08);
  --primary-glow: rgba(79, 70, 229, 0.25);

  /* ── Semantic colours ──────────────────────── */
  --success: #059669;
  --success-light: rgba(5, 150, 105, 0.10);
  --warning: #d97706;
  --warning-light: rgba(217, 119, 6, 0.10);
  --danger: #dc2626;
  --danger-light: rgba(220, 38, 38, 0.10);
  --info: #0284c7;
  --info-light: rgba(2, 132, 199, 0.10);

  /* ── Borders & Glass Shadows ──────────────── */
  --border-color: rgba(226, 232, 240, 0.7);
  --border-light: rgba(241, 245, 249, 0.8);

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 30px -4px rgba(31, 38, 135, 0.07), inset 0 1px 1px 0 rgba(255, 255, 255, 0.95);
  --shadow-lg: 0 16px 36px -6px rgba(31, 38, 135, 0.12), inset 0 1px 1px 0 rgba(255, 255, 255, 1);
  --shadow-xl: 0 25px 60px -12px rgba(15, 23, 42, 0.18), inset 0 1px 0 0 rgba(255, 255, 255, 1);
  --shadow-glow: 0 0 28px rgba(79, 70, 229, 0.25);

  /* ── Radius ───────────────────────────────── */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.30s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ============================================================
   RESET & BASE
============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   AMBIENT MESH BACKGROUND (Hardware-Accelerated Static Pass-Through)
============================================================ */
.ambient-mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 12% 15%, rgba(99, 102, 241, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 88% 18%, rgba(56, 189, 248, 0.20) 0%, transparent 45%),
    radial-gradient(circle at 45% 88%, rgba(236, 72, 153, 0.16) 0%, transparent 40%),
    radial-gradient(circle at 82% 55%, rgba(251, 146, 60, 0.14) 0%, transparent 45%);
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.mesh-orb {
  display: none;
}

/* ============================================================
   LAYOUT
============================================================ */
.app-container {
  display: flex;
  width: 100%;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

html.login-active .app-container,
body.login-active .app-container {
  display: none !important;
}

/* ============================================================
   SIDEBAR
============================================================ */
.sidebar {
  width: 272px;
  background: #ffffff;


  border-right: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 6px 0 24px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.1rem;
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 100;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* Logo */
.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.75rem;
  text-align: center;
}

.logo-wrapper {
  width: 78px;
  height: 78px;
  border-radius: var(--radius-full);
  padding: 3px;
  background: linear-gradient(135deg, #4f46e5 0%, #818cf8 100%);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 0.65rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
}

.logo-wrapper:hover {
  transform: translate3d(0, -2px, 0) scale(1.04);
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.40);
}

.logo-img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.logo-title {
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.03em;
}

.logo-subtitle {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-top: 2px;
  font-weight: 600;
}

/* Nav */
.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex-grow: 1;
  overflow-y: auto;
}

.nav-links::-webkit-scrollbar {
  width: 0;
}

.nav-item a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.72rem 0.95rem;
  color: var(--text-sub);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.875rem;
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
  border: 1px solid transparent;
  will-change: transform;
}

.nav-item a:hover {
  background: rgba(255, 255, 255, 0.85);
  color: var(--primary);
  border-color: rgba(99, 102, 241, 0.25);
}

.nav-item.active a {
  background: linear-gradient(180deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  font-weight: 600;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-bottom: 1px solid #3730a3;
  box-shadow: 0 4px 0 #3730a3, 0 8px 18px rgba(79, 70, 229, 0.32);
}

.nav-item.active a svg {
  color: #ffffff;
}

.nav-item svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  transition: color 0.18s ease;
}

/* Sidebar Footer */
.sidebar-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(226, 232, 240, 0.7);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle at 30% 30%, #818cf8 0%, #4f46e5 70%, #3730a3 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.30);
}

.user-details {
  overflow: hidden;
}

.user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============================================================
   MAIN CONTENT
============================================================ */
.main-content {
  flex-grow: 1;
  margin-left: 272px;
  padding: 1.8rem 2.2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  position: relative;
  z-index: 1;
}

.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.header-title h1 {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.03em;
}

.header-title p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 2px;
  font-weight: 400;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ============================================================
   TACTILE 3D BUTTONS (High-Performance GPU Transitions)
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.62rem 1.25rem;
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.875rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  user-select: none;
  will-change: transform;
}

.btn-primary {
  background: linear-gradient(180deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-bottom: 1px solid #3730a3;
  box-shadow: 0 4px 0 #3730a3, 0 6px 14px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
  filter: brightness(0.96);
}

.btn-primary:active {
  transform: translate3d(0, 2px, 0);
  box-shadow: 0 2px 0 #3730a3;
}

.btn-secondary {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);


  color: var(--text-sub);
  border-top: 1px solid rgba(255, 255, 255, 1);
  border-bottom: 1px solid #cbd5e1;
  box-shadow: 0 3px 0 #cbd5e1, 0 4px 10px rgba(15, 23, 42, 0.04);
}

.btn-secondary:hover {
  color: var(--primary);
  border-color: rgba(79, 70, 229, 0.3);
}

.btn-secondary:active {
  transform: translate3d(0, 2px, 0);
  box-shadow: 0 1px 0 #cbd5e1;
}

.btn-danger {
  background: linear-gradient(180deg, #f87171 0%, #dc2626 100%);
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-bottom: 1px solid #991b1b;
  box-shadow: 0 4px 0 #991b1b, 0 6px 14px rgba(220, 38, 38, 0.25);
}

.btn-danger:hover {
  filter: brightness(0.96);
}

.btn-danger:active {
  transform: translate3d(0, 2px, 0);
  box-shadow: 0 1px 0 #991b1b;
}

.btn-warning {
  background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-bottom: 1px solid #92400e;
  box-shadow: 0 4px 0 #92400e, 0 6px 14px rgba(217, 119, 6, 0.25);
}

.btn-warning:hover {
  filter: brightness(0.96);
}

.btn-warning:active {
  transform: translate3d(0, 2px, 0);
  box-shadow: 0 1px 0 #92400e;
}

.btn-sm {
  padding: 0.40rem 0.85rem;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
}

/* ============================================================
   3D VOLUMETRIC GLASS CARDS (GPU-Optimized)
============================================================ */
.card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.60) 100%);


  border-radius: var(--radius-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.95);
  border-left: 1px solid rgba(255, 255, 255, 0.90);
  border-right: 1px solid rgba(226, 232, 240, 0.6);
  border-bottom: 1px solid rgba(203, 213, 225, 0.7);
  box-shadow:
    0 10px 28px -4px rgba(15, 23, 42, 0.06),
    inset 0 1px 1px 0 rgba(255, 255, 255, 1);
  overflow: hidden;
}

.card-header {
  padding: 1.15rem 1.45rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.35) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.card-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.015em;
}

.card-body {
  padding: 1.45rem;
}

/* ============================================================
   DASHBOARD GRID & 3D STAT CARDS
============================================================ */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.stat-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.90) 0%, rgba(255, 255, 255, 0.62) 100%);


  border-radius: var(--radius-lg);
  padding: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 1);
  border-left: 1px solid rgba(255, 255, 255, 0.9);
  border-right: 1px solid rgba(226, 232, 240, 0.6);
  border-bottom: 1px solid rgba(203, 213, 225, 0.7);
  box-shadow:
    0 10px 24px -4px rgba(31, 38, 135, 0.06),
    inset 0 1px 1px 0 rgba(255, 255, 255, 1);
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon svg {
  width: 25px;
  height: 25px;
}

.stat-icon.primary {
  background: radial-gradient(circle at 30% 30%, #818cf8 0%, #4f46e5 70%, #3730a3 100%);
  color: #ffffff;
  box-shadow: 0 10px 22px -4px rgba(79, 70, 229, 0.45), inset 0 2px 3px rgba(255, 255, 255, 0.6), inset 0 -2px 4px rgba(0, 0, 0, 0.25);
}

.stat-icon.success {
  background: radial-gradient(circle at 30% 30%, #34d399 0%, #10b981 70%, #047857 100%);
  color: #ffffff;
  box-shadow: 0 10px 22px -4px rgba(16, 185, 129, 0.45), inset 0 2px 3px rgba(255, 255, 255, 0.6), inset 0 -2px 4px rgba(0, 0, 0, 0.25);
}

.stat-icon.warning {
  background: radial-gradient(circle at 30% 30%, #fbbf24 0%, #f59e0b 70%, #b45309 100%);
  color: #ffffff;
  box-shadow: 0 10px 22px -4px rgba(245, 158, 11, 0.45), inset 0 2px 3px rgba(255, 255, 255, 0.6), inset 0 -2px 4px rgba(0, 0, 0, 0.25);
}

.stat-icon.danger {
  background: radial-gradient(circle at 30% 30%, #f87171 0%, #ef4444 70%, #b91c1c 100%);
  color: #ffffff;
  box-shadow: 0 10px 22px -4px rgba(239, 68, 68, 0.45), inset 0 2px 3px rgba(255, 255, 255, 0.6), inset 0 -2px 4px rgba(0, 0, 0, 0.25);
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 2px;
  letter-spacing: -0.03em;
}

/* ============================================================
   SECTION PANELS
============================================================ */
.sections-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.section-panel {
  display: none;
}

.section-panel.active {
  display: block;
}

/* ============================================================
   TABLES
============================================================ */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  font-size: 0.875rem;
}

.table th {
  background: #f8fafc;
  color: var(--text-muted);
  font-weight: 600;
  padding: 0.85rem 1.1rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid #e2e8f0;
}

.table td {
  background: #ffffff;
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid #f1f5f9;
  color: var(--text-main);
  vertical-align: middle;
  transition: background 0.15s ease;
}

.table tr:last-child td {
  border-bottom: none;
}

.table tbody tr:hover td {
  background: rgba(99, 102, 241, 0.05);
}

/* ============================================================
   BADGES
============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  font-size: 0.73rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.badge-sport {
  background: rgba(241, 245, 249, 0.9);
  color: #334155;
  margin-right: 4px;
  border: 1px solid rgba(203, 213, 225, 0.6);
}

.badge-sport.gymnastics {
  background: rgba(254, 226, 226, 0.8);
  color: #b91c1c;
  border: 1px solid rgba(252, 165, 165, 0.6);
}

.badge-sport.yoga {
  background: rgba(237, 233, 254, 0.8);
  color: #6d28d9;
  border: 1px solid rgba(216, 180, 254, 0.6);
}

.badge-sport.pilates {
  background: rgba(209, 250, 229, 0.8);
  color: #047857;
  border: 1px solid rgba(110, 231, 183, 0.6);
}

.badge-success {
  background: rgba(209, 250, 229, 0.8);
  color: #047857;
  border: 1px solid rgba(110, 231, 183, 0.6);
}

.badge-warning {
  background: rgba(254, 243, 199, 0.8);
  color: #b45309;
  border: 1px solid rgba(252, 211, 77, 0.6);
}

.badge-danger {
  background: rgba(254, 226, 226, 0.8);
  color: #b91c1c;
  border: 1px solid rgba(252, 165, 165, 0.6);
}

.badge-info {
  background: rgba(224, 242, 254, 0.8);
  color: #0369a1;
  border: 1px solid rgba(125, 211, 252, 0.6);
}

/* ============================================================
   FORM ELEMENTS
============================================================ */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.05rem;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.05rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group.full-width-3 {
  grid-column: span 3;
}

.form-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.68rem 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(203, 213, 225, 0.8);
  font-family: var(--font-family);
  font-size: 0.875rem;
  outline: none;
  background: #ffffff;
  color: var(--text-main);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: var(--transition);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-light);
}

.form-select option {
  background: #ffffff;
  color: var(--text-main);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: #6366f1;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15), 0 2px 8px rgba(99, 102, 241, 0.10);
}

.checkbox-group {
  display: flex;
  gap: 1.25rem;
  margin-top: 0.25rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  cursor: pointer;
  color: var(--text-sub);
  font-weight: 500;
}

.checkbox-label input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

/* Sports checkboxes */
.sports-selection {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.sport-checkbox {
  display: none;
}

.sport-label {
  padding: 0.45rem 1rem;
  border: 1px solid rgba(203, 213, 225, 0.8);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition-bounce);
  color: var(--text-sub);
  background: rgba(255, 255, 255, 0.70);

}

.sport-checkbox:checked+.sport-label {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  border-color: transparent;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.30);
}

/* ============================================================
   MODALS  (Vivid Light Glassmorphism)
============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

#create-schedule-modal {
  z-index: 10200 !important;
}

#lessons-list-modal {
  z-index: 10100 !important;
}

#lessons-list-modal .modal {
  max-width: 98vw !important;
  width: 98vw !important;
  height: 90vh !important;
  max-height: 90vh !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

#lessons-list-modal .modal-header {
  flex-shrink: 0;
}

#lessons-list-modal .modal-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 1.25rem 1.5rem;
}

#lessons-list-modal .table-responsive {
  flex: 1;
  min-height: 0;
  max-height: none !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

#lessons-list-modal .table th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #f8fafc !important;
  box-shadow: 0 1px 0 #e2e8f0;
}

#lessons-list-modal .modal-footer {
  flex-shrink: 0;
}

.modal {
  background: #ffffff !important;
  opacity: 1 !important;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  border: 1px solid #e2e8f0;
  width: 100%;
  max-width: 750px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.30s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal::-webkit-scrollbar {
  width: 4px;
}

.modal::-webkit-scrollbar-track {
  background: transparent;
}

.modal::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 2px;
}

.modal-header {
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
}

.modal-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.modal-close {
  background: #ffffff;
  border: 1px solid var(--border-color);
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--danger-light);
  border-color: rgba(220, 38, 38, 0.25);
  color: var(--danger);
}

.modal-body {
  padding: 1.5rem;
  background: #ffffff;
}

.modal-footer {
  padding: 1.05rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  background: #f8fafc;
}

/* ============================================================
   ERROR MODAL
============================================================ */
.error-modal-box {
  border-color: rgba(220, 38, 38, 0.25) !important;
  box-shadow: var(--shadow-xl), 0 0 36px rgba(220, 38, 38, 0.12) !important;
}

.error-modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 1.5rem;
  border-bottom: 1px solid rgba(220, 38, 38, 0.14);
  background: rgba(254, 242, 242, 0.7);
}

.error-modal-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: rgba(254, 226, 226, 0.8);
  color: var(--danger);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: pulse-error 2s infinite;
}

@keyframes pulse-error {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.30);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(220, 38, 38, 0);
  }
}

.error-modal-icon.error-404 {
  background: rgba(254, 243, 199, 0.8);
  color: var(--warning);
  animation: none;
}

.error-modal-icon svg {
  width: 26px;
  height: 26px;
}

.error-modal-code {
  font-size: 2rem;
  font-weight: 600;
  color: var(--danger);
  line-height: 1;
}

.error-modal-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 2px;
}

.error-modal-body {
  padding: 1.4rem 1.5rem;
  color: var(--text-sub);
  font-size: 0.9rem;
  line-height: 1.6;
}

.error-modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  background: rgba(248, 250, 252, 0.6);
}

/* ============================================================
   TOAST NOTIFICATION
============================================================ */
.alert-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: var(--text-main);
  padding: 0.9rem 1.3rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 30px -4px rgba(15, 23, 42, 0.12);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  transform: translateY(110px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 20000;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s, visibility 0.25s;
  max-width: 370px;
  font-size: 0.875rem;
  font-weight: 500;
}

.alert-toast.active {
  transform: translateY(0);
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.alert-toast.success {
  border-left: 3px solid var(--success);
}

.alert-toast.warning {
  border-left: 3px solid var(--warning);
}

.alert-toast.danger {
  border-left: 3px solid var(--danger);
}

/* ============================================================
   SEARCH / FILTER BAR
============================================================ */
.search-container {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

/* ============================================================
   PROFILE STAT BOXES
============================================================ */
.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.profile-stat-box {
  background: rgba(255, 255, 255, 0.75);

  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--glass-border-subtle);
}

.profile-stat-num {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  letter-spacing: -0.02em;
}

.profile-stat-num.primary {
  color: var(--primary);
}

.profile-stat-num.success {
  color: var(--success);
}

.profile-stat-num.warning {
  color: var(--warning);
}

.profile-stat-num.danger {
  color: var(--danger);
}

.profile-stat-lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* ============================================================
   SETTINGS INFO BANNER
============================================================ */
.settings-info-banner {
  background: rgba(79, 70, 229, 0.06);
  color: var(--primary);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  margin-top: 1rem;
  border: 1px solid rgba(79, 70, 229, 0.18);
  line-height: 1.55;
  font-weight: 400;
}

/* ============================================================
   EMPTY STATE
============================================================ */
.empty-state {
  text-align: center;
  padding: 2.25rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.empty-state h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-sub);
  margin-bottom: 0.25rem;
}

/* Table Actions */
.table-actions {
  display: flex;
  gap: 0.45rem;
  justify-content: flex-end;
}

/* ============================================================
   AUTH / LOGIN OVERLAY
============================================================ */
.login-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, #1e293b 0%, #0f172a 70%, #090d16 100%);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.login-overlay.active,
html.login-active .login-overlay,
body.login-active .login-overlay {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.login-overlay.hidden {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.login-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.90) 0%, rgba(255, 255, 255, 0.72) 100%);


  border-radius: var(--radius-xl);
  box-shadow: 0 30px 60px -12px rgba(15, 23, 42, 0.25), inset 0 1px 1px 0 rgba(255, 255, 255, 1);
  border: 1px solid rgba(255, 255, 255, 0.95);
  width: 100%;
  max-width: 420px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from {
    transform: translateY(36px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.login-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.login-logo-wrapper {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #4f46e5 0%, #818cf8 100%);
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 auto 0.9rem auto;
}

.login-logo-img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.login-title {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.03em;
}

.login-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 400;
}

.login-btn {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.78rem 1.5rem;
}



/* ============================================================
   PROFILE PHOTO
============================================================ */
.profile-photo-container {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-full);
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
}

.profile-photo-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   PROFILE SIDEBAR CARDS (used in student profile modal)
============================================================ */
.student-profile {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1.4rem;
}

.profile-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.profile-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.80) 0%, rgba(255, 255, 255, 0.50) 100%);

  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.90);
  box-shadow: 0 10px 28px 0 rgba(31, 38, 135, 0.06);
  padding: 1.35rem;
  text-align: center;
}

.profile-avatar {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #4f46e5 0%, #818cf8 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.85rem auto;
  font-size: 1.75rem;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.30);
}

.profile-name {
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.22rem;
  letter-spacing: -0.015em;
}

.profile-sub {
  font-size: 0.80rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  font-weight: 400;
}

.profile-details-list {
  list-style: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.58rem;
}

.profile-detail-item {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  padding-bottom: 0.4rem;
}

.profile-detail-item:last-child {
  border-bottom: none;
}

.profile-detail-label {
  font-size: 0.70rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.profile-detail-value {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-main);
}

.profile-main {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

/* ============================================================
   ATTENDANCE
============================================================ */
.attendance-grid {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 1.25rem;
}

.attendance-filters {
  background: rgba(255, 255, 255, 0.75);

  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: fit-content;
  box-shadow: var(--shadow-sm);
}

.student-attendance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.72rem 1rem;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.14s ease;
}

.student-attendance-row:hover {
  background: rgba(79, 70, 229, 0.03);
}

.attendance-options {
  display: flex;
  gap: 0.45rem;
}

.attendance-btn {
  background: rgba(241, 245, 249, 0.8);
  border: 1px solid rgba(203, 213, 225, 0.7);
  padding: 0.36rem 0.76rem;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-sub);
  font-family: var(--font-family);
}

.attendance-btn:hover {
  background: #e0e7ff;
  border-color: rgba(79, 70, 229, 0.3);
  color: var(--primary);
}

.attendance-btn.present.active {
  background: var(--success);
  color: #ffffff;
  border-color: var(--success);
  box-shadow: 0 0 10px rgba(5, 150, 105, 0.30);
}

.attendance-btn.makeup.active {
  background: var(--warning);
  color: #ffffff;
  border-color: var(--warning);
  box-shadow: 0 0 10px rgba(217, 119, 6, 0.30);
}

.attendance-btn.absent.active {
  background: var(--danger);
  color: #ffffff;
  border-color: var(--danger);
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.30);
}

/* ============================================================
   CALENDAR (Student Portal)
============================================================ */
.calendar-wrapper {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.75);

}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: rgba(248, 250, 252, 0.7);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 0.5rem 0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.calendar-day-box {
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  min-height: 80px;
  padding: 5px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.6);
  transition: background 0.13s ease;
}

.calendar-day-box:nth-child(7n) {
  border-right: none;
}

.calendar-day-box:hover {
  background: rgba(238, 242, 255, 0.7);
}

.calendar-day-number {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  align-self: flex-end;
}

.calendar-day-box.today .calendar-day-number {
  color: var(--primary);
  background: rgba(79, 70, 229, 0.10);
  padding: 2px 5px;
  border-radius: 4px;
}

.calendar-day-box.other-month {
  background: rgba(248, 250, 252, 0.4);
  opacity: 0.45;
}

.calendar-day-box.quota-active {
  background: rgba(240, 253, 244, 0.7) !important;
}

.calendar-day-box.quota-active:hover {
  background: rgba(220, 252, 231, 0.8) !important;
}

.calendar-day-box.quota-makeup {
  background: rgba(254, 242, 242, 0.7) !important;
}

.calendar-day-box.quota-makeup:hover {
  background: rgba(254, 226, 226, 0.8) !important;
}

.calendar-day-events {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 3px;
}

.calendar-event {
  font-size: 0.60rem;
  font-weight: 600;
  padding: 2px 4px;
  border-radius: 3px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.calendar-event.present {
  background: rgba(209, 250, 229, 0.8);
  color: var(--success);
}

.calendar-event.absent {
  background: rgba(254, 226, 226, 0.8);
  color: var(--danger);
}

.calendar-event.makeup {
  background: rgba(254, 243, 199, 0.8);
  color: var(--warning);
}

.calendar-event.payment-event {
  background: rgba(224, 242, 254, 0.8);
  color: var(--info);
}

/* User avatar background */
.user-avatar[style*="background-image"] {
  color: transparent !important;
}

/* ============================================================
   ACTIVITY LOG TIMELINE
============================================================ */
.activity-log-container {
  max-height: 240px;
  overflow-y: auto;
}

.activity-log-container::-webkit-scrollbar {
  width: 3px;
}

.activity-log-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 2px;
}

.activity-log-item {
  display: flex;
  gap: 0.7rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-light);
}

.activity-log-item:last-child {
  border-bottom: none;
}

.activity-log-dot {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  margin-top: 5px;
}

.activity-log-dot.period_start {
  background: var(--primary);
}

.activity-log-dot.makeup_granted {
  background: var(--success);
}

.activity-log-dot.makeup_used {
  background: var(--warning);
}

.activity-log-dot.period_end {
  background: #94a3b8;
}

.activity-log-dot.rights_reset {
  background: var(--info);
}

.activity-log-content {
  flex: 1;
  min-width: 0;
}

.activity-log-msg {
  font-size: 0.80rem;
  color: var(--text-sub);
  line-height: 1.45;
}

.activity-log-time {
  font-size: 0.67rem;
  color: var(--text-light);
  margin-top: 2px;
}

/* ============================================================
   LESSON SCHEDULE – Drag & Drop Cards
============================================================ */
.schedule-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.90) 0%, rgba(255, 255, 255, 0.65) 100%);


  border-top: 1px solid rgba(255, 255, 255, 1);
  border-left: 1px solid rgba(255, 255, 255, 0.9);
  border-right: 1px solid rgba(226, 232, 240, 0.6);
  border-bottom: 1px solid rgba(203, 213, 225, 0.7);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  cursor: grab;
  transition: transform 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  user-select: none;
  box-shadow: 0 6px 16px -2px rgba(15, 23, 42, 0.06), inset 0 1px 1px rgba(255, 255, 255, 1);
}

.schedule-card:active {
  cursor: grabbing;
}

.schedule-card:hover {
  border-color: rgba(99, 102, 241, 0.40);
}

.schedule-card.dragging {
  opacity: 1 !important;
  transform: scale(1);
}

.schedule-card-sport {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.22rem;
}

.schedule-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.22rem;
}

.schedule-card-time {
  font-size: 0.74rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.28rem;
  font-weight: 400;
}

.schedule-card-actions {
  display: flex;
  gap: 0.32rem;
  margin-top: 0.5rem;
}

/* ============================================================
   LESSON SCHEDULE – Monthly Calendar Grid
============================================================ */
.schedule-calendar-wrapper {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255, 255, 255, 0.95);
  border-left: 1px solid rgba(255, 255, 255, 0.9);
  border-right: 1px solid rgba(226, 232, 240, 0.7);
  border-bottom: 1px solid rgba(203, 213, 225, 0.8);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.78);

  box-shadow: 0 12px 30px -4px rgba(15, 23, 42, 0.07);
}

.schedule-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.schedule-day-cell {
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  min-height: 96px;
  padding: 5px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: rgba(255, 255, 255, 0.6);
  transition: background 0.13s ease;
}

.schedule-day-cell:nth-child(7n) {
  border-right: none;
}

.schedule-day-cell.drag-over {
  background: rgba(79, 70, 229, 0.08) !important;
  border-color: rgba(79, 70, 229, 0.40) !important;
}

.schedule-day-num {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: right;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 2px;
}

.schedule-day-cell.today .schedule-day-num {
  color: var(--primary);
}

.schedule-day-cell.other-month {
  background: rgba(248, 250, 252, 0.4);
  opacity: 0.40;
}

.schedule-slot-pill {
  font-size: 0.63rem;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 6px;
  cursor: grab;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  user-select: none;
  -webkit-user-drag: element;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}

.schedule-slot-pill:hover {
  filter: brightness(0.95);
}

.schedule-slot-pill.dragging {
  opacity: 0.45;
  transform: scale(0.95);
  cursor: grabbing !important;
}

.schedule-slot-pill.jimnastik {
  background: rgba(254, 226, 226, 0.9);
  color: #b91c1c;
  border: 1px solid rgba(252, 165, 165, 0.6);
}

.schedule-slot-pill.yoga {
  background: rgba(237, 233, 254, 0.9);
  color: #6d28d9;
  border: 1px solid rgba(216, 180, 254, 0.6);
}

.schedule-slot-pill.pilates {
  background: rgba(209, 250, 229, 0.9);
  color: #047857;
  border: 1px solid rgba(110, 231, 183, 0.6);
}

/* ============================================================
   SLOT STUDENTS MODAL
============================================================ */
.slot-student-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.62rem 0.88rem;
  border-radius: var(--radius-md);
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid var(--border-light);
  margin-bottom: 0.45rem;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.slot-student-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
}

.slot-student-tc {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* ============================================================
   MULTI SELECT CHECKLIST FOR SCHEDULE
   ============================================================ */
.multi-select-list {
  max-height: 140px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.75);

  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.multi-select-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--text-main);
  transition: background 0.1s ease;
}

.multi-select-item:hover {
  background: rgba(79, 70, 229, 0.05);
}

.multi-select-item input[type="checkbox"] {
  width: 15px;
  height: 15px;
  cursor: pointer;
}

/* ============================================================
   ATTENDANCE CARDS GRID & MODAL
============================================================ */
.attendance-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.attendance-class-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.55) 100%);


  border-radius: var(--radius-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.95);
  border-left: 1px solid rgba(255, 255, 255, 0.9);
  border-right: 1px solid rgba(226, 232, 240, 0.6);
  border-bottom: 1px solid rgba(203, 213, 225, 0.7);
  padding: 1.35rem;
  box-shadow: 0 10px 28px -4px rgba(15, 23, 42, 0.06), inset 0 1px 1px rgba(255, 255, 255, 1);
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.attendance-class-card:hover {
  border-color: rgba(79, 70, 229, 0.35);
}

.attendance-class-card .card-sport {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  align-self: flex-start;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.attendance-class-card .card-sport.jimnastik {
  background: rgba(254, 226, 226, 0.9);
  color: #b91c1c;
  border: 1px solid rgba(252, 165, 165, 0.6);
}

.attendance-class-card .card-sport.yoga {
  background: rgba(237, 233, 254, 0.9);
  color: #6d28d9;
  border: 1px solid rgba(216, 180, 254, 0.6);
}

.attendance-class-card .card-sport.pilates {
  background: rgba(209, 250, 229, 0.9);
  color: #047857;
  border: 1px solid rgba(110, 231, 183, 0.6);
}

.attendance-class-card .card-title {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
  letter-spacing: -0.015em;
}

.attendance-class-card .card-info {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Dynamic Sports Selection Styling */
.sports-selection {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.5rem 0;
  min-height: 42px;
}

.sports-selection .sport-checkbox {
  display: none;
}

.sports-selection .sport-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.7);

  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.sports-selection .sport-label:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(79, 70, 229, 0.06);
}

.sports-selection .sport-checkbox:checked+.sport-label {
  background: linear-gradient(180deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-bottom: 1px solid #3730a3;
  box-shadow: 0 4px 0 #3730a3, 0 8px 18px rgba(79, 70, 229, 0.35);
  font-weight: 600;
}

.sports-selection .sport-checkbox:checked+.sport-label::before {
  content: '✓';
  font-weight: 600;
}

/* Sticky Schedule Calendar Styling */
.schedule-sticky-calendar {
  position: sticky !important;
  top: 1.5rem !important;
  z-index: 10;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.10);
}

/* ============================================================
   DUSTY PASTEL LESSON CARDS (TOZ RENKLİ DERS KUTUCUKLARI)
============================================================ */
.dusty-lesson-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  padding: 0.5rem 0;
  max-height: 480px;
  overflow-y: auto;
}

.dusty-lesson-card {
  position: relative;
  border-radius: var(--radius-lg, 12px);
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  user-select: none;
}

.dusty-lesson-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* Dusty Color Palette Variants */
.dusty-lesson-card.variant-rose {
  background: #fbf0f2;
  border-color: #e8d0d5;
  color: #5c353c;
}
.dusty-lesson-card.variant-sage {
  background: #f1f6f1;
  border-color: #d1e2d2;
  color: #324e34;
}
.dusty-lesson-card.variant-lavender {
  background: #f4f1f9;
  border-color: #dad2e9;
  color: #46395c;
}
.dusty-lesson-card.variant-sky {
  background: #f0f6fa;
  border-color: #cae1ef;
  color: #2b495c;
}
.dusty-lesson-card.variant-gold {
  background: #fbf7ee;
  border-color: #eadcb9;
  color: #594a28;
}
.dusty-lesson-card.variant-slate {
  background: #f3f5f8;
  border-color: #d2dae4;
  color: #364252;
}

/* Card Elements */
.dusty-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.dusty-card-title {
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.25;
}

.dusty-card-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  white-space: nowrap;
}

.dusty-card-body {
  font-size: 0.78rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  opacity: 0.88;
  margin-bottom: 0.6rem;
}

.dusty-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 0.4rem;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
}

.dusty-card-price {
  font-weight: 700;
  font-size: 0.88rem;
}

.dusty-check-indicator {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.35;
  transition: all 0.2s ease;
}

/* Selected State */
.dusty-lesson-card.selected {
  border-color: var(--primary, #4f46e5) !important;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.22), 0 0 0 1px var(--primary, #4f46e5) !important;
  transform: translateY(-2px);
}

.dusty-lesson-card.selected .dusty-check-indicator {
  background: var(--primary, #4f46e5);
  border-color: var(--primary, #4f46e5);
  color: #ffffff;
  opacity: 1;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.4);
}

/* ==========================================
   ACCORDION CARD STYLES
   ========================================== */
.accordion-card {
  transition: all 0.25s ease-in-out;
}

.accordion-header {
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease, border-radius 0.2s ease;
  border-radius: 12px;
}

.accordion-header:hover {
  background-color: rgba(99, 102, 241, 0.04);
}

.accordion-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-main, #1e293b);
  font-size: 0.8rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s ease;
  margin-left: 6px;
  flex-shrink: 0;
}

.accordion-header:hover .accordion-icon {
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary, #4f46e5);
}

.accordion-card.collapsed .accordion-icon {
  transform: rotate(-180deg);
}

.accordion-card.collapsed .card-body,
.accordion-card.collapsed .accordion-body {
  display: none !important;
}

.accordion-card.collapsed {
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

/* ==========================================
   PRODUCT TREE (ÜRÜN AĞACI GÖRÜNÜMÜ) STYLES
   ========================================== */
.tree-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.tree-category-node {
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 12px;
  background: var(--bg-card, #ffffff);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  transition: all 0.2s ease;
}

.tree-category-header {
  padding: 0.75rem 0.95rem;
  background: linear-gradient(90deg, rgba(79, 70, 229, 0.06) 0%, rgba(79, 70, 229, 0.02) 100%);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--primary, #4f46e5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid rgba(79, 70, 229, 0.08);
}

.tree-category-header:hover {
  background: rgba(79, 70, 229, 0.1);
}

.tree-category-body {
  padding: 0.6rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.tree-category-node.collapsed .tree-category-body {
  display: none;
}

.tree-category-node.collapsed .tree-arrow {
  transform: rotate(-90deg);
}

.tree-arrow {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
  display: inline-block;
}

.tree-course-node {
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  margin-left: 0.4rem;
  overflow: hidden;
}

.tree-course-header {
  padding: 0.55rem 0.75rem;
  font-weight: 600;
  font-size: 0.86rem;
  color: #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}

.tree-course-header:hover {
  background: #e2e8f0;
}

.tree-course-body {
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-left: 0.4rem;
}

.tree-course-node.collapsed .tree-course-body {
  display: none;
}

.tree-course-node.collapsed .tree-arrow {
  transform: rotate(-90deg);
}

.tree-class-item {
  position: relative;
  border-left: 4px solid var(--primary, #4f46e5) !important;
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  background: #ffffff !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  cursor: grab;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tree-class-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.tree-action-btn {
  padding: 2px 6px !important;
  font-size: 0.7rem !important;
  line-height: 1.2 !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
}

/* ==========================================
   DUSTY PRODUCT TREE (TOZ RENKLİ HİYERARŞİK AĞAÇ SATIRLARI) STYLES
   ========================================== */
.dusty-cat-card {
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 16px;
  background: var(--bg-card, #ffffff);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: all 0.25s ease;
}

.dusty-cat-header {
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(99, 102, 241, 0.03) 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid rgba(79, 70, 229, 0.1);
}

.dusty-cat-header:hover {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.12) 0%, rgba(99, 102, 241, 0.06) 100%);
}

.dusty-cat-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dusty-cat-icon {
  font-size: 1.3rem;
}

.dusty-cat-name {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--primary, #4f46e5);
}

.dusty-cat-count-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(79, 70, 229, 0.12);
  color: var(--primary, #4f46e5);
}

.dusty-cat-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dusty-cat-body {
  padding: 1rem 1.25rem;
}

/* DUSTY LIST ROWS (TOZ RENKLİ LİSTE SATIRLARI) */
.dusty-courses-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dusty-course-row-item {
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.03);
  transition: all 0.2s ease;
}

.dusty-course-row-item:hover {
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07);
}

.dusty-course-row-header {
  padding: 0.85rem 1.15rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  user-select: none;
}

.dusty-row-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 220px;
}

.dusty-row-icon {
  font-size: 1.15rem;
}

.dusty-row-title {
  font-weight: 800;
  font-size: 0.98rem;
  color: #0f172a;
}

.dusty-row-center {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dusty-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 8px;
  white-space: nowrap;
}

.dusty-row-price {
  font-weight: 800;
  font-size: 1rem;
  white-space: nowrap;
}

.dusty-row-unit {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
}

.dusty-row-hours {
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
}

.dusty-row-right {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.dusty-btn-pill {
  border-radius: 9999px !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
  padding: 4px 12px !important;
}

.dusty-nested-classes {
  padding: 0.75rem 1.15rem;
  background: rgba(255, 255, 255, 0.75);
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dusty-nested-class-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.85rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.82rem;
}

.dusty-class-empty {
  font-size: 0.78rem;
  color: #64748b;
  font-style: italic;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.65);
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* ==========================================
   NOTIFICATION CENTER & ATTENDANCE REMINDERS
   ========================================== */
.notification-bell-btn {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main, #1e293b);
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.notification-bell-btn:hover {
  background: #f8fafc;
  border-color: var(--primary, #4f46e5);
  color: var(--primary, #4f46e5);
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--danger, #ef4444);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 9999px;
  padding: 2px 6px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
}

.notification-dropdown {
  position: absolute;
  top: 48px;
  right: 0;
  width: 360px;
  background: #ffffff;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  z-index: 1000;
  overflow: hidden;
}

.notification-dropdown-header {
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-weight: 700;
  font-size: 0.88rem;
  color: #0f172a;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notification-dropdown-body {
  max-height: 360px;
  overflow-y: auto;
  padding: 0.5rem;
}

.notification-item {
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notification-item-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: #9a3412;
}

.notification-item-meta {
  font-size: 0.78rem;
  color: #c2410c;
}

.notification-item-action {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

/* Graceful Pulsating Effect for Schedule Notification Target */
@keyframes gracefulPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    border-color: rgba(245, 158, 11, 1) !important;
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 24px 8px rgba(245, 158, 11, 0.6);
    border-color: rgba(217, 119, 6, 1) !important;
    transform: scale(1.03);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    transform: scale(1);
  }
}

.highlight-pulse {
  animation: gracefulPulse 1.2s ease-in-out 3 !important;
  border-color: #f59e0b !important;
  z-index: 10;
  position: relative;
}

/* ============================================================
   SLOT SELECTION FLAP & DRAG-DROP CALENDAR STYLES
============================================================ */
.schedule-slot-pill {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  padding: 0.3rem 0.5rem 0.3rem 1.6rem !important;
  border-radius: 6px !important;
  font-size: 0.76rem !important;
  font-weight: 600 !important;
  margin-bottom: 0.35rem !important;
  cursor: grab !important;
  user-select: none !important;
  transition: all 0.18s ease !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.schedule-slot-pill:active {
  cursor: grabbing !important;
}

.schedule-slot-pill.dragging {
  opacity: 0.4 !important;
  transform: scale(0.96) !important;
}

/* Selection Flap / Checkbox on top-left */
.slot-select-flap {
  position: absolute !important;
  top: 50% !important;
  left: 4px !important;
  transform: translateY(-50%) !important;
  width: 16px !important;
  height: 16px !important;
  border-radius: 4px !important;
  border: 1.5px solid rgba(0, 0, 0, 0.25) !important;
  background: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 5 !important;
  transition: all 0.15s ease !important;
}

.slot-select-flap:hover {
  border-color: #4f46e5 !important;
  background: #f0f4ff !important;
}

.slot-select-flap.checked {
  background: #4f46e5 !important;
  border-color: #4f46e5 !important;
}

.slot-select-flap.checked::after {
  content: '✓' !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

.schedule-slot-pill.selected-slot {
  border: 2px solid #6366f1 !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25), 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  transform: translateY(-1px) !important;
}

/* Drag over visual drop zone target */
.schedule-day-cell.drag-over {
  background: rgba(99, 102, 241, 0.12) !important;
  border: 2px dashed #6366f1 !important;
  outline: none !important;
}

/* ============================================================
   MOBILE & RESPONSIVE DESIGN (iOS & Android Optimization)
============================================================ */

/* Mobile Menu Toggle Button Base Styling */
.mobile-menu-toggle {
  display: none;
}

/* Sidebar Backdrop Overlay */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-backdrop.active {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

/* ------------------------------------------------------------
   MEDIA QUERY: TABLETS & MOBILE (max-width: 1024px)
------------------------------------------------------------ */
@media (max-width: 1024px) {

  /* Mobile Hamburger Toggle */
  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: var(--radius-md);
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
  }

  .mobile-menu-toggle:active {
    transform: scale(0.95);
    background: var(--bg-body);
  }

  /* Sidebar Drawer Transition */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100vh;
    width: 280px;
    max-width: 85vw;
    z-index: 1000;
    transform: translateX(-100%);
    -webkit-transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 10px 0 30px rgba(15, 23, 42, 0.15);
    overflow-y: auto;
  }

  .sidebar.mobile-open {
    transform: translateX(0);
    -webkit-transform: translateX(0);
  }

  /* Main Content Layout Adjustment */
  .main-content {
    margin-left: 0 !important;
    padding: 1.25rem 1rem !important;
    width: 100% !important;
    min-width: 0;
  }

  /* Header Layout */
  .top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-bottom: 1rem;
  }

  .header-title {
    flex: 1 1 auto;
  }

  .header-title h1 {
    font-size: 1.35rem;
  }

  .header-title p {
    font-size: 0.8rem;
  }

  .header-actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
    margin-top: 0.25rem;
  }

  .header-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
  }

  /* Dashboard Stats Grid */
  .dashboard-grid,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }

  /* Responsive Tables */
  .table-responsive {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
  }

  .table {
    min-width: 650px;
  }

  /* Notification Dropdown Positioning */
  .notification-dropdown {
    right: -10px !important;
    width: 320px !important;
    max-width: 90vw !important;
  }
}

/* ------------------------------------------------------------
   MEDIA QUERY: SMARTPHONES (max-width: 768px)
------------------------------------------------------------ */
@media (max-width: 768px) {

  .main-content {
    padding: 1rem 0.65rem !important;
    gap: 1.1rem !important;
  }

  .top-header {
    gap: 0.6rem;
  }

  .header-title h1 {
    font-size: 1.2rem;
  }

  /* Stack Dashboard Stats Grid on Phones */
  .dashboard-grid,
  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }

  .stat-card {
    padding: 1rem !important;
  }

  /* Form & Grid Layouts to Single Column */
  .form-grid,
  .grid-2-cols,
  .grid-3-cols,
  .grid-4-cols,
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }

  .form-group {
    width: 100% !important;
  }

  .form-control,
  input[type="text"],
  input[type="number"],
  input[type="date"],
  input[type="time"],
  input[type="password"],
  input[type="email"],
  select,
  textarea {
    font-size: 0.95rem !important;
    min-height: 44px !important; /* Touch friendly height */
  }

  /* Filter & Search Toolbars */
  .filter-bar,
  .action-bar,
  .search-bar,
  .table-toolbar,
  .card-header-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
    width: 100% !important;
  }

  .filter-bar input,
  .filter-bar select,
  .search-bar input,
  .search-bar select {
    width: 100% !important;
    min-width: 0 !important;
  }

  .btn-group,
  .card-actions {
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
  }

  .btn-group .btn,
  .card-actions .btn {
    flex: 1 1 auto !important;
    justify-content: center !important;
    min-height: 42px !important;
  }

  /* Modals Optimization */
  .modal-dialog,
  .modal-content {
    width: 95% !important;
    max-width: 95vw !important;
    margin: 0.75rem auto !important;
    max-height: 92vh !important;
    border-radius: var(--radius-lg) !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .modal-header {
    padding: 1rem 1.1rem !important;
  }

  .modal-body {
    padding: 1rem 1.1rem !important;
    overflow-y: auto !important;
    max-height: calc(92vh - 135px) !important;
  }

  .modal-footer {
    padding: 0.85rem 1.1rem !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
  }

  .modal-footer .btn {
    flex: 1 1 auto !important;
    justify-content: center !important;
    min-height: 42px !important;
  }

  /* Tab Navigation inside Panels */
  .tab-menu,
  .sub-tabs {
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.35rem !important;
    display: flex !important;
    gap: 0.5rem !important;
  }

  .tab-menu .tab-btn,
  .sub-tabs .tab-item {
    flex: 0 0 auto !important;
    padding: 0.5rem 0.85rem !important;
  }

  /* Accordions & Cards */
  .card {
    padding: 1rem !important;
    margin-bottom: 1rem !important;
  }

  .accordion-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.6rem !important;
  }

  .accordion-header > div {
    width: 100% !important;
    justify-content: space-between !important;
  }



  /* Touch Friendly Table Buttons */
  .table td .btn,
  .table td button {
    padding: 0.4rem 0.65rem !important;
    font-size: 0.8rem !important;
    min-height: 36px !important;
  }
}

/* Online User Pulse Green Dot Indicator */
.online-dot-pulse {
  display: inline-block;
  width: 9px;
  height: 9px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}
