/* ==========================================================================
   CADENCES LabOS — Stylesheet (style.css)
   ==========================================================================
   File ini berisi SEMUA styling untuk aplikasi.
   
   PENJELASAN UNTUK PEMULA:
   - CSS Variables (:root) = warna & ukuran yang bisa dipakai ulang
   - Setiap section diberi komentar agar mudah ditemukan
   - Desain menggunakan dark theme dengan efek glassmorphism
   ========================================================================== */

/* ─── CSS Variables (Design Tokens) ─────────────────────────────────────── */
:root {
  /* Premium Dark Space Palette */
  --bg-dark: #07090F;
  --bg-surface: #0E1320;
  --bg-card: rgba(18, 25, 41, 0.65);
  --bg-card-hover: rgba(26, 36, 56, 0.85);
  
  /* Borders and Glass */
  --border-color: rgba(255, 255, 255, 0.05);
  --border-glow: rgba(99, 102, 241, 0.4);
  --glass-blur: blur(20px);
  
  /* Vibrant Accents */
  --primary: #6366f1; /* Indigo */
  --primary-hover: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.5);
  
  --color-green: #10b981;
  --bg-green-glow: rgba(16, 185, 129, 0.15);
  --color-amber: #f59e0b;
  --bg-amber-glow: rgba(245, 158, 11, 0.15);
  --color-red: #ef4444;
  --bg-red-glow: rgba(239, 68, 68, 0.15);
  --color-blue: #3b82f6;
  --bg-blue-glow: rgba(59, 130, 246, 0.15);
  --color-purple: #8b5cf6;
  
  /* Typography */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  /* Geometry */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  /* Depth & Motion */
  --shadow-card: 0 15px 35px -5px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.35);
  --transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); /* Bouncy transition */
}

/* ─── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  background-image:
    radial-gradient(circle at 10% 10%, rgba(37, 99, 235, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 40%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* ─── Utility Classes ───────────────────────────────────────────────────── */
.hidden { display: none !important; }
.margin-top-sm { margin-top: 8px; }
.margin-top-md { margin-top: 16px; }
.margin-top-lg { margin-top: 24px; }
.text-muted { color: var(--text-muted); }
.text-green { color: var(--color-green); }
.text-red { color: var(--color-red); }
.text-caption { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }

/* ─── Buttons ───────────────────────────────────────────────────────────── */
.btn { padding: 9px 18px; border-radius: var(--radius-md); font-size: 0.88rem; font-weight: 600; border: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: var(--transition); font-family: inherit; }
.btn-primary { background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%); color: #fff; box-shadow: 0 4px 14px var(--primary-glow); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px var(--primary-glow); }
.btn-secondary { background: rgba(255, 255, 255, 0.08); color: var(--text-main); border: 1px solid var(--border-color); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.12); }
.btn-success { background: var(--color-green); color: #fff; }
.btn-danger { background: var(--color-red); color: #fff; }
.btn-warning { background: linear-gradient(135deg, #f59e0b, #d97706); color: #1c1108; border: none; font-weight: 700; }
.btn-warning:hover { background: linear-gradient(135deg, #fbbf24, #f59e0b); transform: translateY(-1px); }
.btn-lg { padding: 12px 28px; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; border-radius: var(--radius-sm); }
.btn-block { width: 100%; }

/* ─── Badges ────────────────────────────────────────────────────────────── */
.badge { padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; display: inline-flex; align-items: center; gap: 5px; }
.badge-green { background: var(--bg-green-glow); color: var(--color-green); border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-amber { background: var(--bg-amber-glow); color: var(--color-amber); border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-red { background: var(--bg-red-glow); color: var(--color-red); border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-blue { background: var(--bg-blue-glow); color: var(--color-blue); border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-neutral { background: rgba(255, 255, 255, 0.08); color: var(--text-muted); border: 1px solid var(--border-color); }
.badge-purple { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }

/* ─── Hazard Tags ───────────────────────────────────────────────────────── */
.hazard-tags-container { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.hazard-tag { padding: 3px 9px; border-radius: 12px; font-size: 0.72rem; font-weight: 600; }
.tag-amber { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.tag-red { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.tag-blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }

/* ─── Cards ─────────────────────────────────────────────────────────────── */
.card { background: var(--bg-card); backdrop-filter: blur(12px); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 20px; }
.card-title { font-size: 0.95rem; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; letter-spacing: -0.2px; }
.card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ─── App Container ─────────────────────────────────────────────────────── */
.app-container { max-width: 1440px; margin: 0 auto; padding: 24px; }

/* ─── Panel Headers ─────────────────────────────────────────────────────── */
.panel-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; }
.panel-header h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.5px; }
.panel-subtitle { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }

/* ─── Animations ────────────────────────────────────────────────────────── */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes pulseGlow {
  0%   { transform: scale(1) translate(0, 0); opacity: 0.35; }
  50%  { transform: scale(1.15) translate(20px, -20px); opacity: 0.55; }
  100% { transform: scale(0.9) translate(-15px, 15px); opacity: 0.35; }
}
@keyframes slideUp { to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }

.animate-fadeIn { animation: fadeIn 0.3s ease-in-out; }

/* ─── Data Table ────────────────────────────────────────────────────────── */
.table-responsive { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; text-align: left; }
.data-table th, .data-table td { padding: 12px 16px; border-bottom: 1px solid var(--border-color); }
.data-table th { font-size: 0.78rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; background: rgba(255, 255, 255, 0.02); }

/* ═══════════════════════════════════════════════════════════════════════════
   LAYOUT — Header, Navigation, Stats Ribbon, Welcome Banner
   ═══════════════════════════════════════════════════════════════════════════ */

.app-header { position: sticky; top: 0; z-index: 100; display: flex; flex-direction: column; align-items: stretch; background: rgba(18, 24, 39, 0.85); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border-color); }
.header-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 24px; gap: 16px; }
.header-bottom { padding: 0 24px 12px 24px; }
.brand-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-icon { width: 40px; height: 40px; border-radius: var(--radius-md); background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: #fff; box-shadow: 0 4px 12px var(--primary-glow); }
.brand-title { font-weight: 800; font-size: 1.15rem; letter-spacing: 0.5px; display: block; }
.brand-sub { color: var(--primary); font-weight: 700; }
.brand-caption { font-size: 0.72rem; color: var(--text-muted); display: block; font-weight: 500; }

.nav-tabs { display: flex; gap: 6px; background: rgba(255, 255, 255, 0.04); padding: 4px; border-radius: var(--radius-md); border: 1px solid var(--border-color); min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav-tabs::-webkit-scrollbar { display: none; }
.nav-btn { background: transparent; border: none; color: var(--text-muted); padding: 8px 16px; border-radius: var(--radius-sm); font-size: 0.88rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: var(--transition); text-decoration: none; font-family: inherit; white-space: nowrap; }
.nav-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav-btn.active { background: var(--primary); color: #fff; box-shadow: 0 2px 8px var(--primary-glow); }

.header-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.date-display { font-size: 0.85rem; color: var(--text-muted); background: rgba(255, 255, 255, 0.04); padding: 8px 14px; border-radius: var(--radius-md); border: 1px solid var(--border-color); display: flex; align-items: center; gap: 8px; font-family: 'JetBrains Mono', monospace; white-space: nowrap; }

.user-header-pill { display: flex; align-items: center; gap: 10px; background: rgba(15, 23, 42, 0.7); border: 1px solid var(--border-color); padding: 4px 12px 4px 6px; border-radius: 40px; backdrop-filter: blur(8px); }
.header-user-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary); }
.header-user-info { display: flex; flex-direction: column; line-height: 1.2; white-space: nowrap; }
.header-user-name { font-size: 0.82rem; font-weight: 700; color: var(--text-main); white-space: nowrap; }
.header-user-role { font-size: 0.65rem; padding: 1px 6px; white-space: nowrap; }
.btn-logout { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition); font-size: 0.9rem; margin-left: 4px; }
.btn-logout:hover { background: #ef4444; color: #fff; border-color: #ef4444; transform: scale(1.08); }

/* Stats Ribbon */
.stats-ribbon { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-card { background: var(--bg-card); backdrop-filter: blur(12px); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 18px 20px; display: flex; align-items: center; gap: 16px; position: relative; transition: var(--transition); }
.stat-card:hover { background: var(--bg-card-hover); border-color: rgba(255, 255, 255, 0.15); transform: translateY(-2px); }
.clickable-stat { cursor: pointer; }
.stat-icon { width: 48px; height: 48px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.icon-blue { background: var(--bg-blue-glow); color: var(--color-blue); }
.icon-green { background: var(--bg-green-glow); color: var(--color-green); }
.icon-amber { background: var(--bg-amber-glow); color: var(--color-amber); }
.icon-red { background: var(--bg-red-glow); color: var(--color-red); }
.stat-value { font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
.stat-label { font-size: 0.88rem; font-weight: 700; margin-top: 2px; }
.stat-sub { font-size: 0.75rem; color: var(--text-muted); }
.stat-arrow { margin-left: auto; color: var(--text-muted); }

/* Welcome Banner */
.role-welcome-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; border-bottom: 1px solid var(--border-color); transition: var(--transition); flex-wrap: wrap; margin: 0 24px 24px; border-radius: var(--radius-md); }
.banner-student { background: linear-gradient(90deg, rgba(37,99,235,0.12) 0%, rgba(37,99,235,0.03) 100%); border-left: 3px solid var(--primary); }
.banner-supervisor { background: linear-gradient(90deg, rgba(245,158,11,0.12) 0%, rgba(245,158,11,0.03) 100%); border-left: 3px solid var(--color-amber); }
.banner-admin { background: linear-gradient(90deg, rgba(168,85,247,0.12) 0%, rgba(168,85,247,0.03) 100%); border-left: 3px solid #a855f7; }
.welcome-left { display: flex; align-items: center; gap: 14px; }
.welcome-role-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.banner-student .welcome-role-icon { background: rgba(37,99,235,0.18); color: var(--primary); }
.banner-supervisor .welcome-role-icon { background: rgba(245,158,11,0.18); color: var(--color-amber); }
.banner-admin .welcome-role-icon { background: rgba(168,85,247,0.18); color: #a855f7; }
.welcome-text { display: flex; flex-direction: column; gap: 2px; }
.welcome-greeting { font-size: 0.95rem; font-weight: 700; color: var(--text-main); }
.welcome-detail { font-size: 0.8rem; color: var(--text-muted); }
.welcome-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-status-indicator { display: flex; align-items: center; gap: 5px; font-size: 0.78rem; color: var(--text-muted); background: var(--bg-card); padding: 4px 10px; border-radius: 20px; border: 1px solid var(--border-color); }

/* ═══════════════════════════════════════════════════════════════════════════
   DASHBOARD — Filter Chips, Activity Cards, Calendar
   ═══════════════════════════════════════════════════════════════════════════ */
.filter-group { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-chip { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-color); color: var(--text-muted); padding: 6px 14px; border-radius: 20px; font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: var(--transition); font-family: inherit; }
.filter-chip:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.filter-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.activities-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 32px; }
.activity-card { background: var(--bg-card); backdrop-filter: blur(12px); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 20px; display: grid; grid-template-columns: 100px 1fr; gap: 18px; transition: var(--transition); position: relative; cursor: pointer; }
.activity-card:hover { border-color: var(--border-glow); box-shadow: var(--shadow-card); transform: translateY(-3px); }
.activity-thumb { width: 100px; height: 100px; border-radius: var(--radius-md); overflow: hidden; background: #1e293b; display: flex; align-items: center; justify-content: center; }
.activity-thumb img { width: 100%; height: 100%; object-fit: cover; }
.activity-main { display: flex; flex-direction: column; justify-content: space-between; }
.activity-title-row { display: flex; justify-content: space-between; align-items: flex-start; }
.activity-title-row h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.3px; text-transform: uppercase; }
.activity-meta-list { font-size: 0.85rem; color: var(--text-muted); margin-top: 6px; display: flex; flex-direction: column; gap: 3px; }
.meta-link { color: var(--primary); text-decoration: none; font-weight: 600; cursor: pointer; background: none; border: none; font-size: inherit; padding: 0; font-family: inherit; }
.meta-link:hover { text-decoration: underline; }

.calendar-widget-section { background: var(--bg-card); backdrop-filter: blur(12px); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 24px; }
.section-title-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.section-title-bar h3 { font-size: 1.1rem; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.weekly-calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.calendar-day-col { background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 12px 10px; min-height: 150px; }
.day-header { font-size: 0.78rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border-color); }
.calendar-event-pill { background: rgba(37, 99, 235, 0.2); border: 1px solid rgba(37, 99, 235, 0.4); color: #93c5fd; padding: 6px 8px; border-radius: 6px; font-size: 0.73rem; font-weight: 600; margin-bottom: 6px; cursor: pointer; transition: var(--transition); }
.calendar-event-pill:hover { background: rgba(37, 99, 235, 0.4); color: #fff; }

/* ═══════════════════════════════════════════════════════════════════════════
   FORM — Activity Form
   ═══════════════════════════════════════════════════════════════════════════ */
.form-container-card { background: var(--bg-card); backdrop-filter: blur(16px); border: 1px solid var(--border-color); border-radius: var(--radius-xl); padding: 32px; box-shadow: var(--shadow-card); }
.form-header-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--border-color); }
.form-title h2 { font-size: 1.4rem; font-weight: 800; }
.form-title p { color: var(--text-muted); font-size: 0.85rem; }

.stepper-wrapper { display: flex; align-items: center; gap: 12px; }
.step-item { display: flex; align-items: center; gap: 8px; opacity: 0.5; }
.step-item.active { opacity: 1; }
.step-circle { width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.85rem; }
.step-item.active .step-circle { background: var(--primary); box-shadow: 0 0 10px var(--primary-glow); }
.step-label { font-size: 0.82rem; font-weight: 700; }
.step-line { width: 24px; height: 2px; background: rgba(255, 255, 255, 0.15); }

.form-columns-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.column-header { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; color: var(--primary); }
.column-header h3 { font-size: 1.1rem; font-weight: 700; color: var(--text-main); }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.83rem; font-weight: 700; margin-bottom: 6px; color: var(--text-main); }
.req { color: var(--color-red); }

input[type="text"], input[type="email"], input[type="date"], input[type="time"], input[type="password"], select, textarea {
  width: 100%; padding: 11px 14px; background: rgba(15, 23, 42, 0.8); border: 1px solid var(--border-color); border-radius: var(--radius-md); color: #fff; font-family: inherit; font-size: 0.9rem; transition: var(--transition);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

.checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checkbox-stack { display: flex; flex-direction: column; gap: 10px; }
.checkbox-item { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-color); padding: 10px 12px; border-radius: var(--radius-sm); cursor: pointer; font-size: 0.85rem; transition: var(--transition); }
.checkbox-item:hover { background: rgba(255, 255, 255, 0.06); }
.checkbox-item input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }

.file-upload-zone { border: 2px dashed rgba(59, 130, 246, 0.4); background: rgba(59, 130, 246, 0.05); border-radius: var(--radius-md); padding: 24px; text-align: center; cursor: pointer; transition: var(--transition); position: relative; }
.file-upload-zone:hover { border-color: var(--primary); background: rgba(59, 130, 246, 0.1); }
.upload-icon { font-size: 2.2rem; color: var(--primary); margin-bottom: 8px; }
.upload-text strong { display: block; font-size: 0.85rem; color: var(--primary); letter-spacing: 0.5px; }
.upload-text span { font-size: 0.75rem; color: var(--text-muted); }
.photo-preview-container { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: #000; border-radius: var(--radius-md); overflow: hidden; }
.photo-preview-container img { width: 100%; height: 100%; object-fit: cover; }
.btn-remove-photo { position: absolute; top: 8px; right: 8px; background: rgba(0, 0, 0, 0.7); color: #fff; border: none; width: 28px; height: 28px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; }

.form-footer-bar { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.submission-note { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 0.85rem; }

/* ═══════════════════════════════════════════════════════════════════════════
   APPROVAL — Approval Cards
   ═══════════════════════════════════════════════════════════════════════════ */
.approval-layout { display: flex; flex-direction: column; gap: 24px; }
.approval-card { background: var(--bg-card); backdrop-filter: blur(12px); border: 1px solid var(--border-color); border-radius: var(--radius-xl); padding: 24px; display: grid; grid-template-columns: 1fr 340px; gap: 24px; }
.approval-main-info h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.approval-checklist-box { background: rgba(15, 23, 42, 0.6); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 16px; margin-top: 14px; }
.checklist-title { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; margin-bottom: 10px; }
.approval-actions-box { display: flex; flex-direction: column; gap: 12px; }
.action-btn-large { width: 100%; padding: 14px; font-size: 1rem; font-weight: 700; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; gap: 10px; }

/* ═══════════════════════════════════════════════════════════════════════════
   PROFILE — Student Profile
   ═══════════════════════════════════════════════════════════════════════════ */
.profile-header-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-xl); padding: 24px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }
.profile-main-info { display: flex; align-items: center; gap: 20px; }
.profile-avatar { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%); display: flex; align-items: center; justify-content: center; font-size: 2rem; color: #fff; box-shadow: var(--shadow-glow); flex-shrink: 0; }
.profile-name-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.profile-name-row h2 { font-size: 1.5rem; font-weight: 800; }
.profile-sub { color: var(--text-muted); font-size: 0.9rem; }
.profile-meta-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.student-select-wrapper { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--text-muted); }
.select-styled { background: rgba(15, 23, 42, 0.8); border: 1px solid var(--border-color); padding: 6px 12px; border-radius: var(--radius-sm); color: #fff; font-weight: 600; font-size: 0.85rem; }

.profile-grid { display: grid; grid-template-columns: 280px 1fr 300px; gap: 24px; }
.profile-card-col { display: flex; flex-direction: column; gap: 24px; }
.profile-center-col { display: flex; flex-direction: column; gap: 24px; }

.summary-field { margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
.field-label-profile { display: block; font-size: 0.75rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; }
.field-val { font-size: 0.88rem; font-weight: 600; margin-top: 2px; display: block; }

.current-activity-card { background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.9) 100%); border: 1px solid var(--border-glow); }
.activity-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.activity-details-text { font-size: 0.85rem; color: var(--text-muted); margin-top: 6px; }

.progress-item { margin-bottom: 12px; }
.progress-header { display: flex; justify-content: space-between; font-size: 0.82rem; font-weight: 700; margin-bottom: 4px; }
.progress-pct { color: var(--text-muted); }
.progress-bar-bg { height: 8px; background: rgba(255, 255, 255, 0.08); border-radius: 4px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary) 0%, #60a5fa 100%); border-radius: 4px; transition: width 0.6s ease; }

.activity-history-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.activity-history-list li { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; padding: 8px 10px; background: rgba(255, 255, 255, 0.02); border-radius: var(--radius-sm); }
.hist-date { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: var(--text-muted); }
.hist-title { font-weight: 600; }

.checklist-passport { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 0.85rem; }
.cert-done { color: var(--color-green); font-weight: 600; }
.cert-pending { color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════════════════════
   LAB — Room Cards, Equipment Table
   ═══════════════════════════════════════════════════════════════════════════ */
.lab-layout-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.room-card { border-top: 4px solid var(--primary); }
.room-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.room-desc { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 12px; }
.room-stats { font-size: 0.83rem; display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }

/* ═══════════════════════════════════════════════════════════════════════════
   ADMIN — Panel
   ═══════════════════════════════════════════════════════════════════════════ */
.admin-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.admin-stat-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 16px 18px; display: flex; align-items: center; gap: 14px; transition: var(--transition); }
.admin-stat-card:hover { border-color: var(--border-glow); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.admin-stat-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.admin-stat-value { font-size: 1.7rem; font-weight: 800; color: var(--text-main); line-height: 1; }
.admin-stat-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 3px; }
.admin-grid-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.admin-equip-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border-color); }
.admin-equip-item:last-child { border-bottom: none; }
.admin-equip-info { display: flex; flex-direction: column; gap: 2px; }
.admin-equip-name { font-size: 0.87rem; font-weight: 600; color: var(--text-main); }

.admin-room-list { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.admin-room-item { display: flex; flex-direction: column; gap: 6px; }
.admin-room-info { display: flex; align-items: center; justify-content: space-between; }
.admin-room-name { font-size: 0.85rem; font-weight: 600; color: var(--text-main); }
.admin-capacity-bar { height: 6px; background: var(--border-color); border-radius: 99px; overflow: hidden; }
.admin-capacity-fill { height: 100%; border-radius: 99px; transition: width 0.5s ease; }

.admin-quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.admin-action-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 10px; background: rgba(255,255,255,0.04); border: 1px solid var(--border-color); border-radius: var(--radius-md); color: var(--text-muted); font-size: 0.78rem; font-weight: 600; cursor: pointer; transition: var(--transition); font-family: inherit; }
.admin-action-btn i { font-size: 1.3rem; color: var(--text-main); }
.admin-action-btn:hover { background: rgba(37,99,235,0.1); border-color: var(--border-glow); color: var(--text-main); transform: translateY(-2px); }

.admin-log-list { list-style: none; margin-top: 12px; display: flex; flex-direction: column; gap: 0; }
.admin-log-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border-color); font-size: 0.82rem; }
.admin-log-list li:last-child { border-bottom: none; }
.log-time-sm { font-size: 0.75rem; color: var(--text-dim); font-family: 'JetBrains Mono', monospace; min-width: 38px; flex-shrink: 0; }
.log-msg { flex: 1; color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════════════════════
   MODAL & TOAST
   ═══════════════════════════════════════════════════════════════════════════ */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(8px); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; animation: fadeIn 0.2s ease-in-out; }
.modal-card { background: #111827; border: 1px solid var(--border-glow); border-radius: var(--radius-xl); width: 100%; max-width: 850px; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8); }
.modal-header { padding: 20px 24px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.modal-close-btn { background: transparent; border: none; color: var(--text-muted); font-size: 1.8rem; cursor: pointer; }
.modal-body { padding: 24px; }
.modal-grid-2 { display: grid; grid-template-columns: 320px 1fr; gap: 24px; }
.modal-photo-box { width: 100%; height: 200px; border-radius: var(--radius-md); overflow: hidden; background: #1e293b; }
.modal-photo-box img { width: 100%; height: 100%; object-fit: cover; }
.modal-info-block { display: flex; flex-direction: column; gap: 8px; font-size: 0.85rem; }
.info-row { display: flex; justify-content: space-between; }
.info-label { color: var(--text-muted); font-weight: 600; }
.info-val { font-weight: 700; }
.modal-section-title { font-size: 0.8rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; margin-bottom: 8px; }
.modal-badge-group { display: flex; flex-wrap: wrap; gap: 6px; }
.modal-desc-text { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border-color); display: flex; justify-content: flex-end; gap: 12px; background: rgba(0, 0, 0, 0.2); }

.timeline-log { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.log-item { display: flex; gap: 12px; font-size: 0.82rem; }
.log-time { font-family: 'JetBrains Mono', monospace; color: var(--primary); font-weight: 700; }
.log-content { flex: 1; }
.log-content p { color: var(--text-muted); margin-top: 2px; }

.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { background: #1e293b; color: #fff; border-left: 4px solid var(--primary); padding: 12px 18px; border-radius: var(--radius-md); font-size: 0.88rem; font-weight: 600; box-shadow: 0 10px 25px rgba(0,0,0,0.5); animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; align-items: center; gap: 10px; pointer-events: auto; }
.toast-success { border-left-color: var(--color-green); }
.toast-danger { border-left-color: var(--color-red); }
.toast-info { border-left-color: var(--primary); }

/* ═══════════════════════════════════════════════════════════════════════════
   LOGIN PAGE — Split Panel
   ═══════════════════════════════════════════════════════════════════════════ */
.login-page-body { display: grid; grid-template-columns: 1fr; min-height: 100vh; }

.branding-panel { position: sticky; top: 0; height: 100dvh; background: linear-gradient(145deg, #080e1d 0%, #091124 40%, #0d1934 100%); display: flex; flex-direction: column; justify-content: space-between; padding: 48px 52px; overflow: hidden; position: relative; }
.branding-panel::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 55% at 20% 25%, rgba(37, 99, 235, 0.25) 0%, transparent 70%), radial-gradient(ellipse 55% 50% at 80% 80%, rgba(139, 92, 246, 0.20) 0%, transparent 70%); pointer-events: none; }
.branding-panel::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(59,130,246,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(59,130,246,0.04) 1px, transparent 1px); background-size: 40px 40px; pointer-events: none; }

.brand-top { position: relative; z-index: 1; }
.brand-logo-wrap { display: flex; align-items: center; gap: 14px; margin-bottom: 52px; }
.brand-icon { width: 52px; height: 52px; background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: #fff; box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45); flex-shrink: 0; }
.brand-name-block .brand-title { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.3px; line-height: 1; }
.brand-name-block .brand-sub { color: #60a5fa; }
.brand-name-block .brand-caption { font-size: 0.75rem; color: var(--text-muted); margin-top: 3px; letter-spacing: 0.3px; }

.hero-headline { position: relative; z-index: 1; }
.hero-headline h1 { font-size: clamp(1.8rem, 3vw, 2.75rem); font-weight: 800; line-height: 1.12; letter-spacing: -1px; margin-bottom: 14px; }
.hero-headline h1 .accent { background: linear-gradient(90deg, #60a5fa 0%, #a78bfa 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-headline p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; max-width: 360px; }

.feature-list { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; margin-top: 36px; }
.feature-item { display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.06); padding: 11px 16px; border-radius: var(--radius-md); backdrop-filter: blur(4px); animation: slideUp 0.5s ease forwards; opacity: 0; transform: translateY(12px); }
.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }
.feature-dot { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; flex-shrink: 0; }
.dot-blue { background: rgba(59, 130, 246, 0.18); color: #60a5fa; }
.dot-green { background: rgba(16, 185, 129, 0.18); color: #34d399; }
.dot-amber { background: rgba(245, 158, 11, 0.18); color: #fbbf24; }
.dot-purple { background: rgba(168, 85, 247, 0.18); color: #c084fc; }
.feature-text { font-size: 0.82rem; font-weight: 700; color: var(--text-main); }
.feature-desc { font-size: 0.72rem; color: var(--text-muted); margin-top: 1px; }

.brand-footer { position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 20px; display: flex; align-items: center; justify-content: space-between; }
.brand-footer p { font-size: 0.73rem; color: var(--text-dim); }
.version-badge { font-size: 0.68rem; font-weight: 700; font-family: 'JetBrains Mono', monospace; background: rgba(37, 99, 235, 0.14); border: 1px solid rgba(37, 99, 235, 0.28); color: #60a5fa; padding: 3px 10px; border-radius: 20px; }

.login-panel { position: relative; background: var(--bg-surface); display: flex; align-items: flex-start; justify-content: center; padding: 48px 48px 64px; min-height: 100dvh; }
.login-panel::before { content: ''; position: absolute; top: -120px; right: -120px; width: 380px; height: 380px; background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%); pointer-events: none; }
.login-form-wrap { position: relative; z-index: 1; width: 100%; max-width: 420px; }
.login-form-header { margin-bottom: 28px; }
.login-form-header .greeting { font-size: 0.78rem; font-weight: 700; color: #60a5fa; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.login-form-header h2 { font-size: 1.85rem; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 6px; }
.login-form-header p { font-size: 0.84rem; color: var(--text-muted); }

.security-strip { display: flex; align-items: center; gap: 8px; background: rgba(16, 185, 129, 0.08); border: 1px solid rgba(16, 185, 129, 0.2); padding: 8px 14px; border-radius: var(--radius-md); margin-bottom: 22px; font-size: 0.74rem; color: #34d399; font-weight: 600; }
.security-strip i { font-size: 0.9rem; }

.error-alert { display: none; align-items: center; gap: 10px; background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); color: #fca5a5; padding: 10px 14px; border-radius: var(--radius-md); font-size: 0.8rem; font-weight: 600; margin-bottom: 14px; }
.error-alert.show { display: flex; }

.field-group { margin-bottom: 16px; }
.field-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.field-label-text { font-size: 0.8rem; font-weight: 700; color: var(--text-main); display: flex; align-items: center; gap: 5px; }
.field-label-text i { color: var(--text-muted); font-size: 0.85rem; }
.forgot-link { font-size: 0.75rem; font-weight: 600; color: var(--primary); background: none; border: none; cursor: pointer; padding: 0; font-family: inherit; transition: var(--transition); }
.forgot-link:hover { color: #60a5fa; text-decoration: underline; }

.field-input-wrap { position: relative; display: flex; align-items: center; }
.field-icon { position: absolute; left: 14px; color: var(--text-dim); font-size: 0.95rem; pointer-events: none; transition: var(--transition); z-index: 1; }
.field-input-wrap .field-input { width: 100%; padding: 12px 14px 12px 42px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius-md); color: var(--text-main); font-size: 0.88rem; font-family: inherit; transition: var(--transition); }
.field-input-wrap .field-input::placeholder { color: var(--text-dim); font-size: 0.82rem; }
.field-input-wrap .field-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2); background: rgba(37, 99, 235, 0.05); }
.field-input-wrap:focus-within .field-icon { color: #60a5fa; }
.field-input-wrap .field-input.has-toggle { padding-right: 46px; }

.toggle-pwd-btn { position: absolute; right: 10px; background: none; border: none; color: var(--text-dim); font-size: 1rem; cursor: pointer; padding: 5px; display: flex; align-items: center; justify-content: center; border-radius: 6px; transition: var(--transition); }
.toggle-pwd-btn:hover { color: var(--text-main); background: rgba(255,255,255,0.06); }

.field-feedback { display: block; min-height: 17px; font-size: 0.73rem; font-weight: 600; margin-top: 4px; padding-left: 2px; color: var(--color-red); }

.options-row { display: flex; align-items: center; margin-bottom: 20px; }
.checkbox-label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.8rem; color: var(--text-muted); user-select: none; }
.checkbox-label input[type="checkbox"] { display: none; }
.cb-box { width: 17px; height: 17px; border: 1.5px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.04); border-radius: 5px; display: flex; align-items: center; justify-content: center; color: transparent; font-size: 0.72rem; transition: var(--transition); flex-shrink: 0; }
.checkbox-label input:checked + .cb-box { background: var(--primary); border-color: var(--primary); color: #fff; }

.btn-submit { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 20px; background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); color: #fff; border: none; border-radius: var(--radius-md); font-size: 0.92rem; font-weight: 700; font-family: inherit; cursor: pointer; box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35); transition: var(--transition); position: relative; overflow: hidden; }
.btn-submit::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 100%); opacity: 0; transition: var(--transition); }
.btn-submit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(37, 99, 235, 0.45); }
.btn-submit:hover:not(:disabled)::before { opacity: 1; }
.btn-submit:disabled { opacity: 0.65; cursor: not-allowed; }

.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; display: none; }
.btn-submit.loading .spinner { display: block; }
.btn-submit.loading .btn-text { display: none; }
.btn-submit.loading .btn-icon { display: none; }

.or-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; color: var(--text-dim); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }
.or-divider::before, .or-divider::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.07); }

.demo-cards { display: flex; flex-direction: column; gap: 7px; }
.demo-card { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); border-radius: var(--radius-md); cursor: pointer; transition: var(--transition); text-align: left; width: 100%; font-family: inherit; color: var(--text-main); }
.demo-card:hover { background: rgba(37, 99, 235, 0.1); border-color: rgba(37, 99, 235, 0.3); transform: translateX(4px); }
.demo-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.1); flex-shrink: 0; }
.demo-avatar-icon { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.demo-avatar-icon.icon-amber { background: rgba(245,158,11,0.15); border: 1.5px solid rgba(245,158,11,0.3); color: #f59e0b; }
.demo-avatar-icon.icon-purple { background: rgba(168,85,247,0.15); border: 1.5px solid rgba(168,85,247,0.3); color: #a855f7; }
.demo-info { flex: 1; text-align: left; }
.demo-name { font-size: 0.82rem; font-weight: 700; margin-bottom: 2px; }
.demo-role-badge { font-size: 0.69rem; font-weight: 700; padding: 2px 8px; border-radius: 20px; display: inline-block; }
.demo-arrow { font-size: 1.3rem; color: var(--text-dim); transition: var(--transition); }
.demo-card:hover .demo-arrow { color: #60a5fa; transform: translateX(3px); }

.form-footer-help { margin-top: 22px; text-align: center; font-size: 0.73rem; color: var(--text-dim); line-height: 1.5; }
.form-footer-help a { color: #60a5fa; text-decoration: none; }
.form-footer-help a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════════════════
   PAGE SECTIONS — SPA Navigation
   ═══════════════════════════════════════════════════════════════════════════ */
.page-section {
  animation: fadeIn 0.3s ease-in-out;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .stats-ribbon { grid-template-columns: repeat(2, 1fr); }
  .activities-grid { grid-template-columns: 1fr; }
  .form-columns-layout { grid-template-columns: 1fr; }
  .approval-card { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .lab-layout-grid { grid-template-columns: 1fr; }
  .weekly-calendar-grid { overflow-x: auto; }
}
@media (max-width: 900px) {
  .login-page-body { grid-template-columns: 1fr; }
  .branding-panel { position: relative; height: auto; padding: 28px 24px; min-height: auto; }
  .login-panel { min-height: auto; padding: 32px 24px 48px; }
  .hero-headline h1 { font-size: 1.6rem; }
  .feature-list { flex-direction: row; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
  .feature-item { padding: 8px 12px; }
  .admin-stats-row { grid-template-columns: repeat(2, 1fr); }
  .admin-grid-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .header-top { flex-direction: column; gap: 12px; align-items: stretch; text-align: center; }
  .header-right { justify-content: center; flex-wrap: wrap; }
  .brand-logo { justify-content: center; }
  .weekly-calendar-grid { grid-template-columns: repeat(2, 1fr); }
  .modal-grid-2 { grid-template-columns: 1fr; }
}
