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

/* ===================================================================
   SMART CAMPUS — Prava Design System
   Palette: Prava Light · Dark · Brand Accents
   Typography: Manrope
   =================================================================== */

:root {
  /* ===================================================================
     COMMENTED OUT PRAVA PALETTE (as requested)
     =================================================================== */
  /*
  --bg-primary: #FFFFFF;
  --bg-secondary: #F6F6F6;
  --bg-page: #F6F6F6;
  --surface-1: #FFFFFF;
  --surface-2: #F6F6F6;
  --surface-3: #EDEDED;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: #E5E5E5;
  --card-border: #E5E5E5;

  --sidebar-bg: #FFFFFF;
  --sidebar-surface: #F6F6F6;
  --sidebar-border: #E5E5E5;
  --sidebar-text: #8A8A8A;
  --sidebar-text-active: #0C0C0C;

  --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

  --text-primary: #0C0C0C;
  --text-secondary: #4A4A4A;
  --text-muted: #8A8A8A;

  --accent-blue: #5B8CFF;
  --accent-blue-bg: rgba(91, 140, 255, 0.08);
  --accent-blue-light: rgba(91, 140, 255, 0.05);

  --accent-green: #3CCB7F;
  --accent-green-bg: rgba(60, 203, 127, 0.08);
  --accent-emerald: #3CCB7F;
  --accent-emerald-bg: rgba(60, 203, 127, 0.08);

  --accent-red: #E5533D;
  --accent-red-bg: rgba(229, 83, 61, 0.08);

  --accent-orange: #F4C430;
  --accent-orange-bg: rgba(244, 196, 48, 0.08);

  --accent-purple: #8FA9FF;
  --accent-purple-bg: rgba(143, 169, 255, 0.08);

  --accent-gold: #F4C430;
  --accent-gold-bg: rgba(244, 196, 48, 0.08);
  --accent-gold-light: rgba(244, 196, 48, 0.12);
  --accent-gold-bright: #F4C430;

  --accent-platinum: #8A8A8A;

  --gradient-1: linear-gradient(135deg, #F6F6F6 0%, #FFFFFF 100%);
  --gradient-brand: linear-gradient(135deg, #5B8CFF 0%, #8FA9FF 100%);
  --gradient-welcome: linear-gradient(135deg, #FFFFFF 0%, #F6F6F6 50%, #FFFFFF 100%);
  --gradient-card-hover: linear-gradient(135deg, rgba(91,140,255,0.02), rgba(91,140,255,0.05));
  */

  /* ===================================================================
     NEW THEME (Foxstocks Palette)
     =================================================================== */
  /* ── Background & Surface ── */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F6F6F6; 
  --bg-page: #F6F6F6; 
  --surface-1: #FFFFFF;
  --surface-2: #F6F6F6;
  --surface-3: #EDEDED;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: #E5E5E5;
  --card-border: #E5E5E5;

  /* ── Sidebar ── */
  --sidebar-bg: #FFFFFF;
  --sidebar-surface: #F7F8FC;
  --sidebar-border: rgba(226, 229, 238, 0.92);
  --sidebar-text: #7E8294;
  --sidebar-text-active: #6C5DD3; 

  /* ── Typography (Everett) ── */
  --font-heading: 'Everett', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Everett', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --text-primary: #242731; 
  --text-secondary: #6A6E83;
  --text-muted: #8A8D9B;

  /* ── Brand Accents ── */
  /* Replacing primary blue with main Purple from palette */
  --accent-blue: #6C5DD3; 
  --accent-blue-bg: rgba(108, 93, 211, 0.08);
  --accent-blue-light: rgba(108, 93, 211, 0.05);

  /* Prava Green for Success/Available */
  --accent-green: #3CCB7F; 
  --accent-green-bg: rgba(60, 203, 127, 0.15);
  --accent-emerald: #3CCB7F;
  --accent-emerald-bg: rgba(60, 203, 127, 0.15);

  --accent-red: #FF7A7A; 
  --accent-red-bg: rgba(255, 122, 122, 0.08);

  /* Prava Yellow/Gold for Pending/Warning */
  --accent-orange: #F4C430; 
  --accent-orange-bg: rgba(244, 196, 48, 0.15);

  --accent-purple: #6C5DD3; 
  --accent-purple-bg: rgba(108, 93, 211, 0.08);

  --accent-gold: #F4C430;
  --accent-gold-bg: rgba(244, 196, 48, 0.15);
  --accent-gold-light: rgba(244, 196, 48, 0.25);
  --accent-gold-bright: #F4C430;

  --accent-platinum: #8A8A8A;

  /* Light Blue from palette */
  --accent-light-blue: #9BC6FA; 

  /* ── Gradients ── */
  --gradient-1: linear-gradient(135deg, #F6F6F6 0%, #FFFFFF 100%);
  --gradient-brand: linear-gradient(135deg, #5B4FE8 0%, #2F7CF6 52%, #31D0AA 100%);
  --gradient-brand-premium: linear-gradient(135deg, #171B2F 0%, #5B4FE8 46%, #2F7CF6 78%, #31D0AA 100%);
  --gradient-welcome: linear-gradient(135deg, #FFFFFF 0%, #F6F6F6 50%, #FFFFFF 100%);
  --gradient-card-hover: linear-gradient(135deg, rgba(108, 93, 211, 0.02), rgba(108, 93, 211, 0.05));

  /* ── Radius ── */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;

  /* ── Layout ── */
  --sidebar-width: 260px;
  --header-height: 54px;

  /* ── Shadows ── */
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.04), 0 16px 40px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.03), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-glow-gold: none;
  --shadow-glow-blue: 0 0 20px rgba(91, 140, 255, 0.15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.4;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 14px;
  font-weight: 400;
}

h1 { font-family: var(--font-heading); font-size: 28px; font-weight: 700; letter-spacing: -0.5px; line-height: 1.2; }

h2 { font-family: var(--font-heading); font-size: 22px; font-weight: 600; letter-spacing: -0.3px; line-height: 1.2; }

h3 { font-family: var(--font-heading); font-size: 18px; font-weight: 600; line-height: 1.2; }

h4, h5, h6 { font-family: var(--font-heading); font-weight: 600; line-height: 1.2; }

/* ===== SCROLLBAR ===== */

::-webkit-scrollbar { width: 6px; height: 6px; }

::-webkit-scrollbar-track { background: transparent; }

::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 10px; }

::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.25); }

/* ===== APP LAYOUT ===== */

.app { display: flex; min-height: 100vh; background: var(--bg-page); }

.app__main {
  flex: 1; margin-left: var(--sidebar-width); display: flex; flex-direction: column; min-height: 100vh;
  transition: margin-left 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.app__content { flex: 1; padding: 32px 40px; overflow-y: auto; }

/* ===== SIDEBAR (Prava Light Panel) ===== */

.sidebar-overlay {
  display: none;
  position: fixed; inset: 0; background: rgba(0,0,0,0.4); backdrop-filter: blur(8px); z-index: 90;
}

.sidebar {
  position: fixed; top: 0; left: 0; width: var(--sidebar-width); height: 100vh;
  background:
    linear-gradient(180deg, rgba(91, 79, 232, 0.055) 0%, rgba(255, 255, 255, 0) 220px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 253, 0.98));
  border-right: 1px solid var(--sidebar-border);
  display: flex; flex-direction: column; z-index: 100;
  box-shadow: 12px 0 34px rgba(24, 28, 44, 0.035);
  transition: transform 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.sidebar__header {
  height: var(--header-height);
  padding: 0 20px;
  border-bottom: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: space-between;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: saturate(180%) blur(18px);
}

.sidebar__logo { display: flex; align-items: center; gap: 11px; min-width: 0; }

.sidebar__logo-icon {
  width: 48px; height: 48px; border-radius: 16px;
  background: #0B0B0F; display: flex; align-items: center;
  justify-content: center; color: #fff; position: relative; overflow: hidden;
  box-shadow: 0 14px 28px rgba(11, 11, 15, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.sidebar__logo-icon::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.sidebar__logo-icon svg {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.18));
}

.sidebar__logo-text { min-width: 0; display: flex; flex-direction: column; gap: 1px; }

.sidebar__logo-text h1,
.sidebar__logo-text span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sidebar__logo-text h1 {
  font-size: 17px; font-weight: 800; letter-spacing: 0;
  color: #0B0B0F;
  background: none;
  -webkit-text-fill-color: currentColor;
  line-height: 1.1;
}

.sidebar__logo-text span {
  font-size: 11px; color: var(--sidebar-text); font-weight: 700;
  line-height: 1.15;
}

.sidebar__close {
  display: none; background: none; border: none; color: var(--sidebar-text);
  cursor: pointer; padding: 8px; border-radius: 10px;
}

.sidebar__close:hover { background: var(--sidebar-surface); color: var(--text-primary); }

.sidebar__nav {
  flex: 1; padding: 18px 12px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(108, 93, 211, 0.28) transparent;
}

.sidebar__nav-item {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border: 1px solid transparent; border-radius: 14px; background: transparent;
  color: var(--sidebar-text); cursor: pointer; font-size: 14px; font-weight: 700;
  font-family: var(--font-body); transition: all 0.2s ease; position: relative; text-align: left;
}

.sidebar__nav-item:hover {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(226, 229, 238, 0.9);
  color: var(--text-primary);
  box-shadow: 0 10px 24px rgba(24, 28, 44, 0.05);
  transform: translateX(2px);
}

.sidebar__nav-item--active {
  background: #6C5DD3;
  border-color: #6C5DD3;
  color: #fff;
  box-shadow: 0 14px 28px rgba(108, 93, 211, 0.24);
}

.sidebar__nav-indicator {
  position: absolute; left: -12px; top: 10px; bottom: 10px;
  width: 3px; background: #6C5DD3; border-radius: 0 8px 8px 0;
  box-shadow: 0 0 16px rgba(108, 93, 211, 0.35);
}

.sidebar__nav-icon {
  width: 34px; height: 34px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
  color: currentColor;
  background: rgba(126, 130, 148, 0.08);
  transition: inherit;
}

.sidebar__nav-item:hover .sidebar__nav-icon { background: rgba(91, 79, 232, 0.09); }

.sidebar__nav-item--active .sidebar__nav-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  box-shadow: none;
}

.sidebar__nav-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sidebar__footer {
  padding: 16px 16px; border-top: 1px solid var(--sidebar-border);
}

.sidebar__user { display: flex; align-items: center; gap: 12px; }

.sidebar__avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff; flex-shrink: 0;
}

.sidebar__user-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }

.sidebar__user-name { font-size: 13px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sidebar__user-role { font-size: 11px; color: var(--text-muted); font-weight: 500; }

/* ===== HEADER (Glass Nav Bar) ===== */

.header {
  height: var(--header-height); padding: 0 40px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.8); backdrop-filter: saturate(180%) blur(20px);
  position: sticky; top: 0; z-index: 50;
}

.header__left { display: flex; align-items: center; gap: 16px; }

.header__menu-btn {
  display: none; background: none; border: 1px solid var(--glass-border);
  color: var(--text-primary); cursor: pointer; padding: 8px; border-radius: 10px;
  transition: all 0.2s;
}

.header__menu-btn:hover { background: var(--surface-2); }

.header__title h2 { font-size: 22px; font-weight: 600; color: var(--text-primary); letter-spacing: -0.3px; }

.header__breadcrumb { font-size: 12px; color: var(--text-muted); margin-top: 2px; font-weight: 400; }

.header__right { display: flex; align-items: center; gap: 12px; }

.header__search-wrap { position: relative; display: flex; align-items: center; }

.header__search {
  display: flex; align-items: center; gap: 8px; padding: 8px 16px;
  background: var(--surface-2); border-radius: 10px; border: 1px solid var(--glass-border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 240px;
}

.header__search--expanded {
  width: 400px; border-color: var(--accent-blue); background: #fff;
  box-shadow: 0 0 0 3px rgba(91, 140, 255, 0.12);
}

.header__search input {
  background: none; border: none; color: var(--text-primary); font-size: 14px;
  width: 100%; outline: none; font-family: inherit;
}

.header__search input::placeholder { color: var(--text-muted); }

.search-icon-left { color: var(--text-muted); transition: color 0.3s; flex-shrink: 0; }

.header__search--expanded .search-icon-left { color: var(--accent-blue); }

.search-clear-btn {
  background: var(--surface-3); border: none; border-radius: 50%; width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center; color: var(--text-secondary);
  cursor: pointer; flex-shrink: 0; transition: 0.2s;
}

.search-clear-btn:hover { background: var(--text-muted); color: #fff; }

/* --- Search Dropdown (Attached to Input) --- */

.header__search-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; width: 100%;
  background: #FFFFFF; border-radius: 12px; border: 1px solid var(--glass-border);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15); overflow: hidden;
  animation: smDropIn 0.2s ease-out; z-index: 100;
}

.search-popup__results { padding: 16px 0; max-height: 400px; overflow-y: auto; }

.search-popup__section-title { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; color: var(--text-muted); padding: 0 20px 8px; }

.search-result-item {
  display: flex; align-items: center; gap: 16px; padding: 12px 20px; cursor: pointer; transition: 0.2s;
}

.search-result-item:hover { background: var(--surface-2); }

.search-result-icon {
  width: 32px; height: 32px; border-radius: 8px; background: rgba(59,108,245,0.1); color: var(--accent-blue);
  display: flex; align-items: center; justify-content: center;
}

.search-result-info h4 { font-size: 14px; font-weight: 600; color: var(--text-primary); }

.search-result-info span { font-size: 12px; color: var(--text-secondary); }

.search-recent-tags { display: flex; gap: 10px; padding: 0 20px; flex-wrap: wrap; }

.search-recent-tags span { background: var(--surface-2); padding: 6px 12px; border-radius: 20px; font-size: 12px; color: var(--text-secondary); cursor: pointer; transition: 0.2s; border: 1px solid var(--glass-border); }

.search-recent-tags span:hover { background: rgba(59,108,245,0.1); color: var(--accent-blue); border-color: rgba(59,108,245,0.2); }

.search-empty { padding: 20px; text-align: center; color: var(--text-muted); font-size: 14px; }

/* --- Notifications Dropdown --- */

.header__notification-wrap { position: relative; }

.header__notification {
  position: relative; background: var(--surface-2); border: 1px solid var(--glass-border);
  color: var(--text-secondary); cursor: pointer; padding: 8px; border-radius: 50%; /* properly rounded */
  transition: all 0.2s; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px;
}

.header__notification:hover, .header__notification.active { background: var(--surface-3); color: var(--text-primary); }

.header__notification-dot {
  position: absolute; top: 0px; right: 0px; width: 10px; height: 10px;
  background: var(--accent-red); border-radius: 50%; border: 2px solid var(--bg-main);
}

.notifications-dropdown {
  position: absolute; top: calc(100% + 12px); right: -10px; width: 360px;
  background: #FFFFFF; border: 1px solid var(--glass-border); border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.15); z-index: 100; overflow: hidden;
  animation: smDropIn 0.2s ease-out;
}

.notifications-dropdown__header {
  display: flex; justify-content: space-between; align-items: center; padding: 16px 20px;
  border-bottom: 1px solid var(--glass-border);
}

.notifications-dropdown__header h3 { font-size: 16px; font-weight: 700; color: var(--text-primary); }

.mark-all-read { background: none; border: none; font-size: 12px; font-weight: 600; color: var(--accent-blue); cursor: pointer; }

.mark-all-read:hover { text-decoration: underline; }

.notifications-dropdown__list { max-height: 350px; overflow-y: auto; }

.notification-item {
  display: flex; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--glass-border);
  cursor: pointer; transition: 0.2s; position: relative;
}

.notification-item:hover { background: var(--surface-2); }

.notification-item.unread { background: rgba(59,108,245,0.03); }

.notification-icon {
  width: 36px; height: 36px; border-radius: 50%; background: var(--surface-3); color: var(--accent-blue);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.notification-content h4 { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }

.notification-content p { font-size: 13px; color: var(--text-secondary); line-height: 1.4; margin-bottom: 6px; }

.notification-time { font-size: 11px; font-weight: 600; color: var(--text-muted); }

.notification-unread-dot {
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent-blue);
}

.notifications-dropdown__footer { padding: 12px; text-align: center; border-top: 1px solid var(--glass-border); background: var(--surface-1); }

.notifications-dropdown__footer button { background: none; border: none; font-size: 13px; font-weight: 600; color: var(--text-primary); cursor: pointer; }

.notifications-dropdown__footer button:hover { color: var(--accent-blue); }

/* --- Profile Avatar --- */

.header__profile-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: white; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--glass-border); cursor: pointer; transition: 0.2s; padding: 0;
}

.header__profile-avatar:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(59,108,245,0.3); }

/* --- Logout Confirm Modal --- */

.logout-modal { text-align: center; max-width: 340px; padding: 32px 24px; }

.logout-modal__icon {
  width: 64px; height: 64px; border-radius: 50%; background: rgba(229, 83, 61, 0.1); color: var(--accent-red);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
}

.logout-modal h3 { font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }

.logout-modal p { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; line-height: 1.5; }

.logout-modal__actions { display: flex; gap: 12px; }

.logout-modal__actions button { flex: 1; }

/* ===== BUTTONS (Prava button typography) ===== */

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px;
  border-radius: var(--radius-sm); border: none; font-size: 14px; font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer; transition: all 0.25s ease; font-family: var(--font-body); white-space: nowrap;
}

.btn--primary {
  background: var(--accent-blue); color: #fff;
}

.btn--primary:hover { filter: brightness(1.1); transform: scale(1.02); }

.btn--primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; filter: none; }

.btn--outline { background: transparent; color: var(--accent-blue); border: 1.5px solid var(--accent-blue); }

.btn--outline:hover { background: var(--accent-blue-bg); }

.btn--ghost { background: transparent; color: var(--text-secondary); }

.btn--ghost:hover { color: var(--text-primary); background: var(--surface-2); }

.btn--danger { background: transparent; color: var(--accent-red); border: 1.5px solid var(--accent-red); }

.btn--danger:hover { background: var(--accent-red); color: #fff; }

.btn--sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }

.btn--lg { padding: 14px 28px; font-size: 15px; }

.btn--full { width: 100%; justify-content: center; }

/* ===== MODAL ===== */

.modal-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.3); backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center; z-index: 200; padding: 20px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  background: #fff; border-radius: var(--radius-xl); width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.14), 0 0 1px rgba(0,0,0,0.1);
  animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 28px; border-bottom: 1px solid var(--glass-border);
}

.modal__header h3 { font-size: 18px; font-weight: 600; color: var(--text-primary); }

.modal__close {
  background: var(--surface-2); border: none; color: var(--text-secondary); cursor: pointer;
  padding: 8px; border-radius: 50%; transition: all 0.2s; display: flex; align-items: center;
}

.modal__close:hover { background: var(--surface-3); color: var(--text-primary); }

.modal__form { padding: 24px 28px; display: flex; flex-direction: column; gap: 20px; }

/* ===== FORMS (Prava label typography) ===== */

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-group label { font-size: 12px; font-weight: 500; letter-spacing: 0.2px; color: var(--text-primary); }

.form-group input, .form-group select, .form-group textarea {
  padding: 12px 16px; background: var(--surface-2); border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-sm); color: var(--text-primary); font-size: 14px; font-family: inherit;
  outline: none; transition: all 0.25s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--accent-blue); background: #fff;
  box-shadow: 0 0 0 3px rgba(91, 140, 255, 0.1);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-group select {
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A8A8A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}

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

.checkbox-group { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; color: var(--text-secondary); }

.checkbox-group input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent-blue); cursor: pointer; }

/* ===== FILTER CHIPS ===== */

.filter-chip {
  padding: 7px 16px; border-radius: 20px; border: 1.5px solid var(--glass-border);
  background: #fff; color: var(--text-secondary); font-size: 12px; font-weight: 500;
  letter-spacing: 0.2px;
  cursor: pointer; transition: all 0.2s ease; font-family: var(--font-body); white-space: nowrap;
}

.filter-chip:hover { border-color: var(--accent-blue); color: var(--accent-blue); background: var(--accent-blue-bg); }

.filter-chip--active {
  background: var(--accent-blue); color: #fff; border-color: var(--accent-blue);
  font-weight: 600;
}

/* ===== PAGE TOOLBAR ===== */

.page { display: flex; flex-direction: column; gap: 24px; }

.page__toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.page__search {
  display: flex; align-items: center; gap: 8px; padding: 10px 18px;
  background: #fff; border-radius: 12px; border: 1.5px solid var(--glass-border);
  flex: 1; max-width: 360px; transition: all 0.25s;
}

.page__search:focus-within {
  border-color: var(--accent-blue); box-shadow: 0 0 0 3px rgba(91, 140, 255, 0.1);
}

.page__search input { background: none; border: none; color: var(--text-primary); font-size: 14px; width: 100%; outline: none; font-family: inherit; }

.page__search svg { color: var(--text-muted); flex-shrink: 0; }

.page__filters { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }

/* ===== EMPTY STATE ===== */

.empty-state {
  text-align: center; padding: 60px 24px; border: 1.5px dashed var(--glass-border);
  border-radius: var(--radius-xl); background: #fff;
}

.empty-state__icon { font-size: 48px; display: block; margin-bottom: 16px; opacity: 0.6; }

.empty-state h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: var(--text-primary); }

.empty-state p { color: var(--text-muted); font-size: 14px; max-width: 360px; margin: 0 auto; line-height: 1.4; }

.empty-state--sm { padding: 32px 20px; }

.empty-state--sm .empty-state__icon { font-size: 32px; }

/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
  :root { --sidebar-width: 240px; --header-height: 50px; }
  .app__content { padding: 24px; }
  .header { padding: 0 24px; }
  .page__search { max-width: 100%; }
}

@media (max-width: 768px) {
  :root { --sidebar-width: 280px; }
  .app__main { margin-left: 0; }
  .sidebar { transform: translateX(-100%); width: var(--sidebar-width); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.open { display: block; }
  .header__menu-btn { display: flex; align-items: center; justify-content: center; }
  .sidebar__close { display: block; }
  .header__search { display: none; }
  .app__content { padding: 16px; }
  .header { padding: 0 16px; }
  .form-row { grid-template-columns: 1fr; }
  .modal__header { padding: 20px; }
  .modal__form { padding: 20px; }
  .btn { padding: 9px 16px; font-size: 13px; }
  .page__toolbar { flex-direction: column; align-items: stretch; }
  .page__search { max-width: 100%; }
}

@media (max-width: 480px) {
  :root { --sidebar-width: 100%; }
  .app__content { padding: 12px; }
  .header { padding: 0 12px; height: 56px; }
  .header__title h2 { font-size: 18px; }
  .header__user-pill { padding: 4px 10px; }
  .header__user-name { display: none; }
  .header__user-role-badge { display: none; }
  .modal { max-height: 95vh; border-radius: var(--radius-lg); margin: 10px; width: calc(100% - 20px); }
  .modal__header { padding: 16px; }
  .modal__form { padding: 16px; gap: 16px; }
  .logout-modal { padding: 24px 16px; }
  .page__filters { flex-direction: column; }
  .filter-chip { text-align: center; width: 100%; justify-content: center; }
  h1 { font-size: 24px; }
  h2 { font-size: 20px; }
}
/* ===================================================================
   PAGES — Prava Design System
   =================================================================== */

/* ===== DASHBOARD ===== */
.dashboard { display: flex; flex-direction: column; gap: 24px; }
.dashboard__welcome {
  background: #FFFFFF; border: 1px solid var(--glass-border); border-left: 4px solid var(--accent-blue);
  border-radius: var(--radius-xl); padding: 32px 36px;
  display: flex; justify-content: space-between; align-items: center; position: relative; overflow: hidden;
  color: var(--text-primary); box-shadow: var(--shadow-card);
}
.dashboard__welcome::before {
  content: ''; position: absolute; top: -40%; right: -10%; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(91,140,255,0.04), transparent 70%); pointer-events: none;
}
.dashboard__welcome-content { position: relative; z-index: 2; }
.dashboard__welcome-content h2 { font-size: 22px; font-weight: 600; margin-bottom: 6px; letter-spacing: -0.3px; }
.dashboard__welcome-content p { color: var(--text-secondary); font-size: 14px; margin-bottom: 18px; line-height: 1.4; }
.dashboard__welcome-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.dashboard__welcome-stat {
  display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
  background: var(--accent-blue-bg); color: var(--accent-blue); padding: 6px 14px; border-radius: 20px;
}
.dashboard__welcome-art { position: absolute; right: -20px; top: -20px; }
.dashboard__welcome-circle {
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(91,140,255,0.04), transparent 70%);
  position: absolute; right: 0; top: 0; animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.dashboard__stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.dashboard__stat-card {
  background: #fff; border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
  padding: 22px; display: flex; align-items: center; gap: 16px; cursor: pointer;
  transition: all 0.25s ease; position: relative; box-shadow: var(--shadow-card);
  text-align: left; font-family: inherit; color: inherit;
}
.dashboard__stat-card:hover { transform: translateY(-3px); border-color: rgba(91,140,255,0.12); box-shadow: var(--shadow-lg); }
.dashboard__stat-icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: var(--accent-blue-bg); color: var(--accent-blue);
}
.dashboard__stat-value { font-size: 22px; font-weight: 700; display: block; color: var(--text-primary); letter-spacing: -0.3px; }
.dashboard__stat-label { font-size: 12px; color: var(--text-muted); font-weight: 500; margin-top: 2px; }
.dashboard__stat-arrow { position: absolute; top: 16px; right: 16px; color: var(--text-muted); opacity: 0; transition: all 0.2s; }
.dashboard__stat-card:hover .dashboard__stat-arrow { opacity: 1; color: var(--accent-blue); }

.dashboard__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.dashboard__section {
  background: #fff; border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-card);
}
.dashboard__section-title {
  font-size: 14px; font-weight: 600; margin-bottom: 16px; color: var(--text-primary);
  padding-bottom: 12px; border-bottom: 1px solid var(--glass-border);
}
.dashboard__quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dashboard__action-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px;
  background: var(--surface-2); border: 1px solid var(--glass-border); border-radius: var(--radius-sm);
  color: var(--text-secondary); cursor: pointer; font-size: 14px; font-weight: 600; font-family: inherit; transition: all 0.2s;
  letter-spacing: 0.3px;
}
.dashboard__action-btn:hover { background: var(--accent-blue-bg); border-color: rgba(91,140,255,0.12); color: var(--accent-blue); }

.dashboard__recent-list { display: flex; flex-direction: column; gap: 6px; }
.dashboard__recent-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border-radius: var(--radius-sm); background: var(--surface-2); transition: all 0.2s;
}
.dashboard__recent-item:hover { background: var(--accent-blue-bg); }
.dashboard__recent-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.dashboard__recent-dot--academic { background: var(--accent-blue); }
.dashboard__recent-dot--event { background: var(--accent-purple); }
.dashboard__recent-dot--urgent { background: var(--accent-red); }
.dashboard__recent-dot--general { background: var(--accent-green); }
.dashboard__recent-content { flex: 1; min-width: 0; }
.dashboard__recent-title { font-size: 14px; font-weight: 500; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-primary); }
.dashboard__recent-meta { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; margin-top: 2px; }

/* ===== NOTICE BOARD ===== */
.notice-section { margin-bottom: 20px; }
.notice-section__title { font-size: 12px; font-weight: 500; letter-spacing: 0.2px; color: var(--text-secondary); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.notice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.notice-card {
  background: #fff; border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
  padding: 22px; transition: all 0.25s; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow-card);
}
.notice-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(91,140,255,0.1); }
.notice-card--pinned { border-left: 3px solid var(--accent-blue); }
.notice-card__header { display: flex; align-items: center; gap: 8px; }
.notice-card__badge { padding: 4px 10px; border-radius: 8px; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.notice-card__audience { min-width: 0; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: rgba(20,20,22,0.05); color: var(--text-secondary); font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notice-card__pin { color: var(--accent-gold); margin-left: auto; }
.notice-card__delete { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 4px; margin-left: 6px; opacity: 0; transition: all 0.2s; border-radius: 6px; }
.notice-card:hover .notice-card__delete { opacity: 1; }
.notice-card__delete:hover { color: var(--accent-red); background: var(--accent-red-bg); }
.notice-card__title { font-size: 16px; font-weight: 600; color: var(--text-primary); }
.notice-card__content { font-size: 14px; color: var(--text-secondary); line-height: 1.4; flex: 1; }
.notice-card__footer { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); padding-top: 12px; border-top: 1px solid var(--glass-border); }
.notice-card__footer span { display: flex; align-items: center; gap: 5px; }
.notice-target-box { display: flex; flex-direction: column; gap: 16px; padding: 16px; border: 1px solid var(--glass-border); border-radius: 14px; background: rgba(248,249,251,0.85); }
.notice-target-box__head { display: flex; align-items: flex-start; gap: 10px; color: var(--text-primary); }
.notice-target-box__head > svg { margin-top: 2px; color: var(--accent-purple); }
.notice-target-box__head strong,
.notice-target-box__head span { display: block; }
.notice-target-box__head strong { font-size: 13px; font-weight: 800; }
.notice-target-box__head span { margin-top: 2px; color: var(--text-muted); font-size: 12px; font-weight: 600; }

/* Room booking management */
.room-booking-page .room-toolbar { align-items: center; }
.room-toolbar--sub { margin-top: -10px; margin-bottom: 18px; }
.room-filter-select {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  background: #fff;
  color: var(--text-secondary);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}
.room-card__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: auto;
}
.room-card__viewonly {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}
.booking-card__audience {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-top: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(108,93,211,0.08);
  color: #6c5dd3;
  font-size: 11px;
  font-weight: 800;
}
.room-modal { max-width: 620px; }
.room-amenity-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.room-availability-toggle {
  align-self: end;
  min-height: 42px;
  margin-bottom: 0;
  padding: 0 12px;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  background: var(--surface-2);
}

/* ===== FEEDBACK ===== */
.feedback-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.feedback-stat-card {
  background: #fff; border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
  padding: 22px; text-align: center; transition: all 0.25s; box-shadow: var(--shadow-card);
}
.feedback-stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.feedback-stat-card__value { font-size: 28px; font-weight: 700; display: block; color: var(--text-primary); letter-spacing: -0.5px; }
.feedback-stat-card__label { font-size: 12px; color: var(--text-muted); font-weight: 500; margin-top: 4px; }
.feedback-stat-card__stars { display: flex; justify-content: center; gap: 2px; margin-top: 8px; color: var(--accent-gold); }
.feedback-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.feedback-card {
  background: #fff; border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
  padding: 22px; display: flex; flex-direction: column; gap: 12px; transition: all 0.25s; box-shadow: var(--shadow-card);
}
.feedback-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feedback-card__header { display: flex; justify-content: space-between; align-items: center; }
.feedback-card__type { font-size: 11px; font-weight: 600; color: var(--accent-blue); text-transform: uppercase; background: var(--accent-blue-bg); padding: 4px 10px; border-radius: 8px; }
.feedback-card__subject { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.feedback-card__message { font-size: 14px; color: var(--text-secondary); line-height: 1.4; }
.feedback-card__footer { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--glass-border); }
.feedback-card__stars { display: flex; gap: 2px; color: var(--accent-gold); }
.feedback-card__date { font-size: 12px; color: var(--text-muted); }

/* ===== SKILLS & INTERNSHIPS ===== */
.skills-layout { display: grid; grid-template-columns: 360px 1fr; gap: 20px; }
.skills-panel, .internships-panel {
  background: #fff; border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-card);
}
.skills-panel__header, .internships-panel__header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px;
  padding-bottom: 14px; border-bottom: 1px solid var(--glass-border);
}
.skills-panel__header h3, .internships-panel__header h3 { font-size: 18px; font-weight: 600; color: var(--text-primary); }
.internships-panel__count { font-size: 12px; color: #fff; font-weight: 600; background: var(--accent-blue); padding: 3px 10px; border-radius: 10px; }
.skills-category__title { font-size: 12px; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.2px; margin-bottom: 10px; }
.skills-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.skill-tag {
  display: flex; align-items: center; gap: 6px; padding: 6px 14px;
  border-radius: 20px; border: 1px solid var(--glass-border); font-size: 12px;
  background: #fff; color: var(--text-primary); font-weight: 500; transition: all 0.2s;
}
.skill-tag:hover { border-color: var(--accent-blue); color: var(--accent-blue); }
.internship-list { display: flex; flex-direction: column; gap: 14px; }
.internship-card {
  background: var(--surface-2); border: 1px solid var(--glass-border); border-radius: var(--radius-md);
  padding: 20px; transition: all 0.2s;
}
.internship-card:hover { border-color: rgba(91,140,255,0.15); box-shadow: var(--shadow); }

/* ===== ROOM BOOKING ===== */
.rooms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.room-card {
  background: #fff; border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
  padding: 22px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-card); transition: all 0.25s;
}
.room-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.room-card__header { display: flex; justify-content: space-between; align-items: center; }
.room-card__type { font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--text-muted); }
.room-card__status { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 8px; }
.room-card__status--available { background: var(--accent-green-bg); color: var(--accent-green); }
.room-card__status--booked { background: var(--accent-red-bg); color: var(--accent-red); }
.room-card__name { font-size: 18px; font-weight: 600; color: var(--text-primary); }

.bookings-list { display: flex; flex-direction: column; gap: 12px; }
.booking-card {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  background: #fff; border: 1px solid var(--glass-border); border-radius: var(--radius-md); padding: 16px 20px;
  box-shadow: var(--shadow-card); transition: all 0.2s;
}
.booking-card:hover { box-shadow: var(--shadow-lg); }

/* ===== GRIEVANCE ===== */
.grievance-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.grievance-stat {
  background: #fff; border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
  padding: 20px; text-align: center; box-shadow: var(--shadow-card); transition: all 0.25s;
}
.grievance-stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.grievance-stat__count { font-size: 28px; font-weight: 700; display: block; color: var(--text-primary); letter-spacing: -0.5px; }
.grievance-stat__label { font-size: 11px; color: var(--text-muted); font-weight: 500; margin-top: 4px; }

.grievance-list { display: flex; flex-direction: column; gap: 12px; }
.grievance-card {
  background: #fff; border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-card); transition: all 0.2s;
}
.grievance-card:hover { box-shadow: var(--shadow-lg); }
.grievance-card__main { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; cursor: pointer; gap: 12px; }
.grievance-card__info h4 { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.grievance-card__detail { padding: 0 20px 20px; }

/* Grievance routing badge */
.grv-assigned-badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 6px;
  background: rgba(59,108,245,0.06); color: var(--accent-blue);
  border: 1px solid rgba(59,108,245,0.1);
}

/* Grievance action buttons */
.grv-actions {
  display: flex; gap: 8px; margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--glass-border);
}

/* Resolve inline form */
.grv-resolve-form {
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--glass-border);
}
.grv-resolve-form textarea {
  width: 100%; padding: 12px; border: 1.5px solid var(--glass-border);
  border-radius: 10px; font-family: inherit; font-size: 13px;
  background: var(--surface-2); color: var(--text-primary);
  resize: vertical; outline: none; transition: border-color 0.2s;
}
.grv-resolve-form textarea:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59,108,245,0.05);
}
.grv-resolve-form__actions {
  display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px;
}

/* Routing info banner in form modal */
.grv-routing-info {
  display: flex; align-items: center; gap: 10px;
  margin: 0 24px; padding: 10px 14px;
  background: rgba(59,108,245,0.04); border: 1px solid rgba(59,108,245,0.1);
  border-radius: 10px; font-size: 12px; color: var(--accent-blue);
  font-weight: 500;
}

/* Room card view-only for students */
.room-card__viewonly {
  padding: 10px; text-align: center; font-size: 12px; font-weight: 600;
  color: var(--text-muted); background: var(--surface-2);
  border-radius: 8px; border: 1px dashed var(--glass-border);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) { .skills-layout { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
  .dashboard__welcome { flex-direction: column; align-items: flex-start; gap: 20px; padding: 24px; }
  .dashboard__grid { grid-template-columns: 1fr; }
  .dashboard__stats { grid-template-columns: 1fr 1fr; }
  .notice-grid, .feedback-grid, .rooms-grid { grid-template-columns: 1fr; }
  .notice-card__header { flex-wrap: wrap; }
  .notice-card__audience { max-width: 100%; }
  .grievance-card__main, .booking-card { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .dashboard__stats { grid-template-columns: 1fr; }
  .dashboard__quick-actions { grid-template-columns: 1fr; }
  .feedback-stats, .grievance-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .dashboard__welcome { padding: 20px 16px; }
  .dashboard__welcome-content h2 { font-size: 20px; }
  .notice-card, .feedback-card, .skills-panel, .internships-panel, .room-card, .grievance-stat { padding: 16px; }
  .skills-tags { flex-direction: column; }
  .skill-tag { width: 100%; justify-content: center; }
  .room-card__header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .booking-card { padding: 14px; gap: 10px; }
  .dashboard__welcome-stats { flex-direction: column; align-items: flex-start; gap: 8px; }
  .grv-actions { flex-direction: column; width: 100%; }
  .grv-actions .btn { width: 100%; justify-content: center; }
}
/* ===================================================================
   QR ATTENDANCE — Premium Role-Based Design
   Teacher starts from schedule · Student marks · Real-time QR
   =================================================================== */

/* ─── TEACHER START VIEW ─── */
.att-teacher { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.att-hero {
  text-align: center; padding: 36px 28px;
  background: var(--surface-1); border: 1px solid var(--card-border);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-card);
  position: relative; overflow: hidden;
}
.att-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 20%, rgba(59,108,245,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.att-hero__icon {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 16px;
  background: var(--gradient-brand); display: flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: 0 0 30px rgba(59,108,245,0.2); animation: pulse-glow 2.5s ease-in-out infinite;
  position: relative; z-index: 1;
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(59,108,245,0.2); }
  50% { box-shadow: 0 0 44px rgba(59,108,245,0.35); }
}
.att-hero h2 { font-size: 22px; font-weight: 800; margin-bottom: 4px; position: relative; }
.att-hero p { font-size: 13px; color: var(--text-muted); position: relative; margin-bottom: 16px; }
.att-hero__pills { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; position: relative; }
.att-hero__pills span {
  display: flex; align-items: center; gap: 5px; padding: 5px 14px; border-radius: 16px;
  font-size: 11px; font-weight: 600; background: var(--accent-blue-bg); color: var(--accent-blue);
}

/* Classes grid */
.att-classes {
  background: var(--surface-1); border: 1px solid var(--card-border);
  border-radius: var(--radius-xl); padding: 22px; box-shadow: var(--shadow-card);
}
.att-classes h3 {
  font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px;
  margin-bottom: 16px; color: var(--text-primary);
}
.att-class-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.att-class-card {
  padding: 18px; border-radius: var(--radius-lg);
  background: var(--surface-2); border: 1px solid var(--glass-border);
  display: flex; flex-direction: column; gap: 10px; transition: all 0.2s;
}
.att-class-card:hover { border-color: rgba(59,108,245,0.15); box-shadow: 0 4px 16px rgba(0,0,0,0.04); }
.att-class-card--now { border-color: rgba(59,108,245,0.3); background: rgba(59,108,245,0.03); }
.att-class-card__time {
  display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text-muted);
}
.att-now-badge {
  padding: 1px 8px; border-radius: 8px; font-size: 10px; font-weight: 800;
  background: var(--accent-emerald-bg); color: var(--accent-emerald); animation: blink 1.5s infinite;
}
.att-class-card h4 { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.att-class-card__info {
  display: flex; flex-wrap: wrap; gap: 8px; font-size: 11px; color: var(--text-muted);
  align-items: center;
}
.att-class-card__info code {
  background: var(--surface-1); padding: 1px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 700; border: 1px solid var(--glass-border);
}
.att-no-class {
  text-align: center; padding: 30px; color: var(--text-muted);
}
.att-no-class p { margin-top: 8px; font-size: 13px; }

/* Summary */
.att-summary {
  background: var(--surface-1); border: 1px solid var(--card-border);
  border-radius: var(--radius-xl); padding: 22px; box-shadow: var(--shadow-card);
}
.att-summary h3 { font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.att-summary__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.att-summary__item { text-align: center; padding: 12px; background: var(--surface-2); border-radius: var(--radius-sm); }
.att-summary__val { font-size: 18px; font-weight: 800; display: block; color: var(--accent-blue); }
.att-summary__lbl { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; }

/* ─── ACTIVE SESSION ─── */
.att-active { display: flex; flex-direction: column; gap: 18px; }
.att-bar {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  background: var(--surface-1); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 16px 20px; box-shadow: var(--shadow-card);
}
.att-bar__left { display: flex; align-items: center; gap: 12px; }
.att-bar__left h3 { font-size: 15px; font-weight: 700; }
.att-bar__left span { font-size: 11px; color: var(--text-muted); display: block; }
.att-bar__stats { display: flex; gap: 10px; }
.att-mini {
  display: flex; align-items: center; gap: 5px; padding: 4px 12px;
  border-radius: 14px; font-size: 12px; font-weight: 600;
  background: var(--accent-blue-bg); color: var(--accent-blue);
}
.att-live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #ef4444;
  animation: blink 1s infinite; flex-shrink: 0;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}
.att-content { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* QR Panel (shared) */
.qr-panel {
  background: var(--surface-1); border: 1px solid var(--card-border); border-radius: var(--radius-xl);
  padding: 24px; text-align: center; position: relative; overflow: hidden; box-shadow: var(--shadow-card);
}
.qr-panel::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(59,108,245,0.03) 0%, transparent 60%);
  pointer-events: none;
}
.qr-panel__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; position: relative; }
.qr-panel__header h3 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.qr-panel__live {
  display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800;
  color: #ef4444; text-transform: uppercase; letter-spacing: 1px;
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #ef4444; animation: blink 1s infinite; }
.qr-display { display: flex; flex-direction: column; align-items: center; gap: 16px; position: relative; }
.qr-display__container {
  position: relative; padding: 24px;
  background: linear-gradient(135deg, #0f1629 0%, #162040 100%);
  border-radius: var(--radius-xl); border: 2px solid rgba(59,108,245,0.35);
  box-shadow: 0 8px 30px rgba(15,22,41,0.25);
}
.qr-display__glow {
  position: absolute; inset: -2px; border-radius: var(--radius-xl);
  background: conic-gradient(var(--accent-blue), var(--accent-gold-bright), var(--accent-purple), var(--accent-emerald), var(--accent-blue));
  opacity: 0.2; filter: blur(10px); z-index: 0; animation: rotate-glow 4s linear infinite;
}
@keyframes rotate-glow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.qr-display__code { position: relative; z-index: 1; }
.qr-countdown { position: relative; width: 56px; height: 56px; }
.qr-countdown__ring { width: 100%; height: 100%; }
.qr-countdown__value {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 800; color: var(--accent-blue);
}
.qr-display__hash { font-size: 11px; color: var(--text-muted); }
.qr-display__hash code {
  background: var(--surface-2); border: 1px solid var(--glass-border);
  padding: 2px 10px; border-radius: 6px; font-family: 'Courier New', monospace; font-weight: 600; color: var(--text-primary);
}
.qr-security {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px; background: var(--accent-emerald-bg); border: 1px solid rgba(26,157,92,0.12);
  border-radius: var(--radius-sm); font-size: 11px; color: var(--accent-emerald); margin-top: 14px; font-weight: 600; position: relative;
}

/* Mark Panel */
.att-mark-panel {
  background: var(--surface-1); border: 1px solid var(--card-border);
  border-radius: var(--radius-xl); padding: 24px;
  display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-card);
}
.att-mark-panel h3 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.att-note {
  font-size: 11px; color: var(--accent-blue); padding: 10px 12px;
  background: var(--accent-blue-bg); border-radius: var(--radius-sm); font-weight: 500;
}
.scan-result {
  display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 600; animation: slideIn 0.3s ease;
}
.scan-result--success { background: var(--accent-emerald-bg); color: var(--accent-emerald); border: 1px solid rgba(26,157,92,0.12); }
.scan-result--error { background: var(--accent-red-bg); color: var(--accent-red); border: 1px solid rgba(217,68,68,0.12); }
@keyframes slideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Attendees */
.att-attendees { margin-top: 4px; }
.att-attendees h4 {
  font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 6px;
  margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--glass-border);
}
.att-attendees__empty { font-size: 12px; color: var(--text-muted); text-align: center; padding: 16px; font-style: italic; }
.att-attendees__list { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow-y: auto; }
.att-attendee {
  display: flex; align-items: center; gap: 10px; padding: 10px;
  background: var(--surface-2); border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm); transition: all 0.2s;
}
.att-attendee:hover { border-color: rgba(59,108,245,0.12); }
.att-attendee__avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: white; flex-shrink: 0;
}
.att-attendee__info { flex: 1; }
.att-attendee__name { font-size: 12px; font-weight: 700; display: block; }
.att-attendee__id { font-size: 10px; color: var(--text-muted); }
.att-attendee__time { font-size: 10px; color: var(--text-muted); display: flex; align-items: center; gap: 3px; }

/* ─── STUDENT VIEW ─── */
.att-student {
  max-width: 420px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px;
}
.att-live-banner {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 800;
  background: linear-gradient(135deg, rgba(239,68,68,0.08), rgba(239,68,68,0.04));
  color: #ef4444; text-transform: uppercase; letter-spacing: 1px;
}
.att-session-info {
  background: var(--surface-1); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-card);
}
.att-session-info h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.att-session-info span { font-size: 12px; color: var(--text-muted); }
.att-qr-student {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 24px; background: var(--surface-1); border: 1px solid var(--card-border);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-card);
}
.att-qr-box {
  padding: 20px; background: linear-gradient(135deg, #0f1629, #162040);
  border-radius: var(--radius-lg); border: 2px solid rgba(59,108,245,0.3);
}
.att-qr-timer { position: relative; display: flex; align-items: center; justify-content: center; }
.att-qr-timer span {
  position: absolute; font-size: 16px; font-weight: 800; color: var(--accent-blue);
}
.att-security-note {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 11px; color: var(--accent-emerald); font-weight: 600;
}
.att-no-session {
  text-align: center; padding: 48px 24px;
  background: var(--surface-1); border: 1px solid var(--card-border);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-card);
}
.att-no-icon {
  width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 16px;
  background: var(--surface-2); display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
}
.att-no-session h3 { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.att-no-session p { font-size: 13px; color: var(--text-muted); }
.att-last-summary {
  display: flex; justify-content: center; gap: 16px; margin-top: 16px;
  font-size: 12px; color: var(--text-secondary);
}

/* ===================================================================
   SCHEDULE PAGE — Premium Timetable
   =================================================================== */
.sched-days {
  display: flex; gap: 6px; margin-bottom: 20px; overflow-x: auto;
  padding-bottom: 4px;
}
.sched-days::-webkit-scrollbar { display: none; }
.sched-day {
  padding: 10px 18px; border-radius: 10px; font-size: 13px; font-weight: 600;
  background: var(--surface-1); border: 1.5px solid var(--glass-border);
  cursor: pointer; font-family: inherit; transition: all 0.2s;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 70px; position: relative; color: var(--text-secondary);
}
.sched-day:hover { border-color: rgba(59,108,245,0.15); }
.sched-day--active { border-color: var(--accent-blue); background: rgba(59,108,245,0.05); color: var(--accent-blue); }
.sched-day--today::after {
  content: 'Today'; position: absolute; top: -8px; right: -6px;
  font-size: 8px; font-weight: 800; padding: 1px 5px; border-radius: 4px;
  background: var(--accent-emerald); color: #fff; text-transform: uppercase;
}
.sched-day__short { display: none; }
.sched-day__full { font-size: 13px; }
.sched-day__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent-emerald); }

/* Timeline cards */
.sched-timeline { display: flex; flex-direction: column; gap: 12px; }
.sched-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface-1); border: 1px solid var(--card-border);
  border-left: 4px solid var(--accent-blue);
  border-radius: var(--radius-lg); padding: 16px 18px;
  box-shadow: var(--shadow-card); transition: all 0.2s;
}
.sched-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.sched-card__time {
  display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600;
  color: var(--text-muted); white-space: nowrap; min-width: 120px; flex-shrink: 0;
}
.sched-card__body { flex: 1; }
.sched-card__main h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.sched-card__meta { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.sched-tag {
  padding: 2px 10px; border-radius: 8px; font-size: 10px; font-weight: 700;
  text-transform: capitalize;
}
.sched-card__meta code {
  font-size: 11px; font-weight: 700; background: var(--surface-2); padding: 1px 8px;
  border-radius: 4px; border: 1px solid var(--glass-border);
}
.sched-card__details {
  display: flex; flex-wrap: wrap; gap: 10px; font-size: 11px; color: var(--text-muted);
  align-items: center;
}
.sched-card__details span { display: flex; align-items: center; gap: 3px; }
.sched-card__dept { font-weight: 600; color: var(--accent-purple); }
.sched-card__actions { display: flex; gap: 4px; flex-shrink: 0; }
.sched-icon-btn {
  width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center;
  justify-content: center; background: var(--surface-2); border: 1px solid var(--glass-border);
  color: var(--text-muted); cursor: pointer; transition: all 0.2s;
}
.sched-icon-btn:hover { color: var(--accent-blue); border-color: rgba(59,108,245,0.15); }
.sched-icon-btn--danger:hover { color: var(--accent-red); border-color: rgba(217,68,68,0.15); background: var(--accent-red-bg); }

.sched-empty {
  text-align: center; padding: 48px; color: var(--text-muted);
  background: var(--surface-1); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
}
.sched-empty p { margin-top: 8px; font-size: 13px; }

/* Filter */
.sched-filter {
  display: flex; align-items: center; gap: 6px; padding: 6px 12px;
  background: var(--surface-2); border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm); font-size: 12px; color: var(--text-secondary);
}
.sched-filter select {
  background: none; border: none; color: var(--text-primary); font-size: 12px;
  font-weight: 600; font-family: inherit; outline: none; cursor: pointer;
}

/* ═══ PREMIUM SCHEDULE MODAL ═══ */
.sm-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px;
  animation: smFadeIn 0.2s ease;
}
@keyframes smFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.sm {
  width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto;
  background: var(--bg-secondary); border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid var(--card-border); animation: smSlideUp 0.25s ease;
}
@keyframes smSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.sm::-webkit-scrollbar { width: 4px; }
.sm::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 4px; }

/* Head */
.sm__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; border-bottom: 1px solid var(--glass-border);
}
.sm__head-left { display: flex; align-items: center; gap: 12px; }
.sm__head-icon {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: rgba(59,108,245,0.07); display: flex; align-items: center;
  justify-content: center; color: var(--accent-blue);
}
.sm__head h3 { font-size: 16px; font-weight: 800; margin-bottom: 1px; }
.sm__head span { font-size: 11px; color: var(--text-muted); }
.sm__close {
  width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center;
  justify-content: center; background: var(--surface-2); border: 1px solid var(--glass-border);
  color: var(--text-muted); cursor: pointer; transition: all 0.15s;
}
.sm__close:hover { color: var(--accent-red); background: var(--accent-red-bg); }

/* Live preview strip */
.sm__preview {
  display: flex; flex-direction: column; gap: 3px; padding: 14px 24px;
  border-left: 4px solid var(--accent-blue); margin: 16px 24px 0;
  background: var(--surface-2); border-radius: 10px; font-size: 12px;
}
.sm__preview-time { display: flex; align-items: center; gap: 5px; color: var(--text-muted); font-weight: 600; }
.sm__preview-dur {
  margin-left: 6px; padding: 1px 8px; border-radius: 6px; font-size: 10px; font-weight: 700;
  background: var(--accent-blue-bg); color: var(--accent-blue);
}
.sm__preview strong { font-size: 14px; color: var(--text-primary); }
.sm__preview > span { color: var(--text-muted); }

/* Body */
.sm__body { padding: 8px 24px 20px; }
.sm__section { margin-top: 18px; }
.sm__section-label {
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px;
  color: var(--text-muted); margin-bottom: 8px; display: block;
}

/* Type selector cards */
.sm__types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sm__type {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 14px 6px; border-radius: 12px; border: 2px solid var(--glass-border);
  background: var(--bg-secondary); color: var(--text-secondary);
  font-size: 11px; font-weight: 700; cursor: pointer; font-family: inherit;
  transition: all 0.2s;
}
.sm__type:hover { border-color: rgba(59,108,245,0.15); }

/* Day chips */
.sm__day-row { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.sm__day-chip {
  padding: 7px 14px; border-radius: 8px; font-size: 12px; font-weight: 700;
  border: 1.5px solid var(--glass-border); background: var(--bg-secondary);
  color: var(--text-secondary); cursor: pointer; font-family: inherit; transition: all 0.15s;
}
.sm__day-chip:hover { border-color: rgba(59,108,245,0.15); }
.sm__day-chip--active { border-color: var(--accent-blue); background: rgba(59,108,245,0.06); color: var(--accent-blue); }

/* Time row */
.sm__time-row {
  display: flex; align-items: flex-start; gap: 16px; justify-content: center; flex-wrap: wrap;
}

/* ═══ TIME INPUT BOX ═══ */
.atp { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.atp__label {
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.6px; color: var(--text-muted);
}
.atp__box {
  display: flex; align-items: center; gap: 2px;
  padding: 8px 10px; border-radius: 12px;
  background: var(--surface-2); border: 1.5px solid var(--glass-border);
  transition: all 0.2s;
}
.atp__box:focus-within {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59,108,245,0.06);
}
.atp__input {
  width: 34px; text-align: center; font-size: 22px; font-weight: 900;
  background: none; border: none; outline: none; padding: 2px 0;
  color: var(--text-primary); font-family: inherit;
  caret-color: var(--accent-blue); border-radius: 6px;
  transition: background 0.15s;
}
.atp__input:focus { background: rgba(59,108,245,0.06); }
.atp__input::selection { background: rgba(59,108,245,0.15); }
.atp__sep { font-size: 18px; font-weight: 900; color: var(--text-muted); }
.atp__ampm {
  font-size: 10px; font-weight: 800; padding: 4px 7px; border-radius: 6px;
  background: var(--accent-blue-bg); color: var(--accent-blue);
  border: 1px solid rgba(59,108,245,0.1); cursor: pointer;
  font-family: inherit; transition: all 0.15s; margin-left: 2px;
}
.atp__ampm:hover { background: rgba(59,108,245,0.12); }
.atp__clock-btn {
  width: 28px; height: 28px; border-radius: 6px; display: flex;
  align-items: center; justify-content: center; background: none;
  border: 1px solid var(--glass-border); color: var(--text-muted);
  cursor: pointer; transition: all 0.15s; margin-right: 6px; flex-shrink: 0;
}
.atp__clock-btn:hover { color: var(--accent-blue); border-color: rgba(59,108,245,0.2); background: rgba(59,108,245,0.04); }

/* ═══ CLOCK DIAL POPUP ═══ */
.cd-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.3); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  animation: cdFade 0.15s ease;
}
@keyframes cdFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cd {
  width: 260px; background: var(--bg-secondary);
  border-radius: 16px; box-shadow: 0 16px 48px rgba(0,0,0,0.18);
  border: 1px solid var(--card-border); overflow: hidden;
  animation: cdPop 0.2s ease;
}
@keyframes cdPop {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cd__head {
  display: flex; align-items: center; justify-content: center; gap: 2px;
  padding: 14px 16px; background: var(--gradient-brand);
}
.cd__digit {
  font-size: 28px; font-weight: 900; color: rgba(255,255,255,0.5);
  background: none; border: none; cursor: pointer; font-family: inherit;
  padding: 2px 4px; border-radius: 6px; transition: all 0.15s;
}
.cd__digit--on { color: #fff; background: rgba(255,255,255,0.15); }
.cd__colon { font-size: 24px; font-weight: 900; color: rgba(255,255,255,0.5); }
.cd__period {
  font-size: 12px; font-weight: 800; color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.1); border: none; cursor: pointer;
  padding: 4px 8px; border-radius: 6px; margin-left: 8px; font-family: inherit;
  transition: all 0.15s;
}
.cd__period:hover { background: rgba(255,255,255,0.2); color: #fff; }
.cd__face { display: block; margin: 12px auto; width: 200px; height: 200px; cursor: pointer; }
.cd__bg { fill: var(--surface-2); stroke: var(--glass-border); stroke-width: 1; }
.cd__hand { stroke: var(--accent-blue); stroke-width: 2; stroke-linecap: round; transition: all 0.15s; }
.cd__center { fill: var(--accent-blue); }
.cd__dot { fill: rgba(59,108,245,0.12); stroke: var(--accent-blue); stroke-width: 2; transition: all 0.15s; }
.cd__num { font-size: 12px; font-weight: 700; fill: var(--text-secondary); pointer-events: none; }
.cd__num--on { fill: #fff; font-weight: 900; }
.cd__foot {
  display: flex; justify-content: flex-end; gap: 6px;
  padding: 10px 14px; border-top: 1px solid var(--glass-border);
}
.cd__btn {
  padding: 6px 16px; border-radius: 8px; font-size: 12px; font-weight: 700;
  border: none; cursor: pointer; font-family: inherit; transition: all 0.15s;
}
.cd__btn--ghost { background: none; color: var(--text-muted); }
.cd__btn--ghost:hover { color: var(--text-primary); background: var(--surface-2); }
.cd__btn--primary { background: var(--accent-blue); color: #fff; }
.cd__btn--primary:hover { filter: brightness(1.1); }

/* Input rows */
.sm__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sm__row--3 { grid-template-columns: 1fr 1fr 1fr; }
.sm__input-wrap {
  display: flex; align-items: center; gap: 0;
  border: 1.5px solid var(--glass-border); border-radius: 10px;
  background: var(--surface-2); transition: all 0.2s;
}
.sm__input-wrap:focus-within { border-color: var(--accent-blue); background: var(--bg-secondary); box-shadow: 0 0 0 3px rgba(59,108,245,0.05); }
.sm__input-wrap--sm { max-width: 140px; }
.sm__input-icon { margin-left: 12px; color: var(--text-muted); flex-shrink: 0; }
.sm__input-text { font-size: 11px; font-weight: 800; color: var(--text-muted); }
.sm__input-wrap input {
  flex: 1; padding: 11px 12px; background: none; border: none; outline: none;
  font-size: 13px; font-family: inherit; color: var(--text-primary);
}
.sm__input-wrap input::placeholder { color: var(--text-muted); }
.sm__input-wrap input[type="number"] { -moz-appearance: textfield; }
.sm__input-wrap input[type="number"]::-webkit-outer-spin-button,
.sm__input-wrap input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Smart Select */
.sm__input-wrap--select { position: relative; }
.sm__input-wrap--select select {
  flex: 1; padding: 11px 28px 11px 12px; background: none; border: none; outline: none;
  font-size: 13px; font-family: inherit; color: var(--text-primary);
  cursor: pointer; -webkit-appearance: none; -moz-appearance: none; appearance: none;
}
.sm__input-wrap--select select:disabled { color: var(--text-muted); cursor: not-allowed; opacity: 0.6; }
.sm__select-arrow {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); pointer-events: none;
}

/* Readonly auto-filled input */
.sm__input--readonly { color: var(--text-secondary) !important; cursor: default; }
.sm__input-wrap--autofilled { border-color: rgba(60,203,127,0.25) !important; background: rgba(60,203,127,0.03) !important; }

/* Auto-fill badge — icon only so it never clips */
.sm__autofill-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 6px; margin-right: 6px; flex-shrink: 0;
  background: rgba(60,203,127,0.12); color: #3CCB7F;
  animation: smAutoFill 0.3s ease;
}
@keyframes smAutoFill {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

/* Section badge */
.sm__section-badge {
  display: inline-flex; align-items: center; margin-left: 8px;
  font-size: 9px; font-weight: 700; padding: 2px 8px; border-radius: 8px;
  background: var(--accent-blue-bg); color: var(--accent-blue);
  text-transform: none; letter-spacing: 0;
}

/* ═══ AUTOCOMPLETE / SUGGEST INPUT ═══ */
.sm__autocomplete { position: relative; }
.sm__autocomplete .sm__input-wrap--focused { border-color: var(--accent-blue); box-shadow: 0 0 0 3px rgba(59,108,245,0.05); }
.sm__autocomplete-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; margin-right: 4px; flex-shrink: 0;
  background: none; border: 1px solid transparent; border-radius: 6px;
  color: var(--text-muted); cursor: pointer; transition: all 0.15s;
}
.sm__autocomplete-toggle:hover { color: var(--accent-blue); background: rgba(59,108,245,0.04); border-color: rgba(59,108,245,0.1); }

.sm__dropdown {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 240px; width: max-content; max-width: 380px;
  background: var(--bg-secondary); border: 1.5px solid var(--glass-border);
  border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.04);
  z-index: 50; overflow: hidden;
  animation: smDropIn 0.15s ease;
}
@keyframes smDropIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.sm__dropdown-hint {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 14px; font-size: 10px; font-weight: 700; color: var(--accent-blue);
  border-bottom: 1px solid var(--glass-border); background: rgba(59,108,245,0.02);
  letter-spacing: 0.2px; white-space: nowrap;
}
.sm__dropdown-list { max-height: 220px; overflow-y: auto; padding: 4px; }
.sm__dropdown-list::-webkit-scrollbar { width: 3px; }
.sm__dropdown-list::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 3px; }

.sm__dropdown-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; padding: 10px 12px; border-radius: 8px; border: none;
  background: none; cursor: pointer; font-family: inherit; text-align: left;
  transition: all 0.12s; color: inherit;
}
.sm__dropdown-item:hover { background: var(--surface-2); }
.sm__dropdown-item--selected { background: rgba(59,108,245,0.05); border-left: 3px solid var(--accent-blue); }

.sm__dropdown-item-main { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.sm__dropdown-item-name { font-size: 13px; font-weight: 700; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm__dropdown-item-meta { display: flex; align-items: center; gap: 8px; }
.sm__dropdown-item-meta code {
  font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 4px;
  background: var(--surface-2); color: var(--text-secondary); font-family: inherit;
  border: 1px solid var(--glass-border);
}
.sm__dropdown-item-credits { font-size: 10px; font-weight: 600; color: var(--text-muted); }
.sm__dropdown-item-type {
  font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.3px;
  padding: 3px 8px; border-radius: 6px; flex-shrink: 0; white-space: nowrap;
}

.sm__dropdown-empty {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 24px 16px; color: var(--text-muted); font-size: 12px; font-weight: 500;
}

/* Foot */
.sm__foot {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 16px 24px; border-top: 1px solid var(--glass-border);
}

/* ═══════════════════════════════════════════════════
   DEPARTMENTS PAGE
═══════════════════════════════════════════════════ */
.dept-list { display: flex; flex-direction: column; gap: 12px; }

/* Department card */
.dept-card {
  background: var(--bg-secondary); border-radius: 14px;
  border: 1px solid var(--card-border); overflow: hidden;
  transition: box-shadow 0.2s;
}
.dept-card--open { box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.dept-card__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; width: 100%; background: none; border: none;
  cursor: pointer; font-family: inherit; text-align: left;
  color: var(--text-primary); transition: background 0.15s;
}
.dept-card__head:hover { background: var(--surface-2); }
.dept-card__left { display: flex; align-items: center; gap: 14px; }
.dept-card__icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.dept-card__left h3 { font-size: 15px; font-weight: 800; margin-bottom: 1px; }
.dept-card__meta { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.dept-card__right { display: flex; align-items: center; gap: 14px; color: var(--text-muted); }
.dept-card__stats { display: flex; gap: 14px; }
.dept-stat {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; color: var(--text-muted);
}

/* Body */
.dept-card__body { border-top: 1px solid var(--glass-border); }
.dept-sems { padding: 8px 12px; }

/* Semester row */
.dept-sem {
  border-radius: 10px; margin-bottom: 4px; overflow: hidden;
  border: 1px solid transparent; transition: all 0.15s;
}
.dept-sem--open { border-color: var(--glass-border); background: var(--surface-2); }
.dept-sem__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; width: 100%; background: none; border: none;
  cursor: pointer; font-family: inherit; color: var(--text-primary);
  font-size: 13px; font-weight: 700;
}
.dept-sem__head:hover { background: rgba(59,108,245,0.03); }
.dept-sem__left { display: flex; align-items: center; gap: 8px; color: var(--text-secondary); }
.dept-sem--open .dept-sem__left { color: var(--accent-blue); }
.dept-sem__right { display: flex; align-items: center; gap: 8px; }
.dept-sem__count {
  font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 6px;
  background: var(--accent-blue-bg); color: var(--accent-blue);
}
.dept-sem__add {
  width: 22px; height: 22px; border-radius: 5px; display: flex;
  align-items: center; justify-content: center; background: none;
  border: 1px solid var(--glass-border); color: var(--text-muted);
  cursor: pointer; transition: all 0.15s;
}
.dept-sem__add:hover { color: var(--accent-blue); border-color: var(--accent-blue); background: rgba(59,108,245,0.04); }

/* Semester body */
.dept-sem__body { padding: 4px 14px 12px; }
.dept-sem__empty {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 20px; color: var(--text-muted); font-size: 12px;
}

/* Subject table */
.dept-table {
  width: 100%; border-collapse: collapse; font-size: 12px;
}
.dept-table th {
  text-align: left; padding: 6px 10px; font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-muted);
  border-bottom: 1px solid var(--glass-border);
}
.dept-table td { padding: 8px 10px; border-bottom: 1px solid var(--glass-border); }
.dept-table tr:last-child td { border-bottom: none; }
.dept-table__name { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.dept-table code {
  font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 4px;
  background: var(--surface-2); color: var(--text-secondary); font-family: inherit;
}
.dept-type-badge {
  font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 5px;
}
.dept-table__del {
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  padding: 4px; border-radius: 4px; transition: all 0.15s;
}
.dept-table__del:hover { color: var(--accent-red); background: var(--accent-red-bg); }

/* Footer */
.dept-card__foot {
  display: flex; justify-content: flex-end; padding: 10px 16px;
  border-top: 1px solid var(--glass-border);
}

/* Empty */
.dept-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 20px; color: var(--text-muted); gap: 8px;
}
.dept-empty h3 { font-size: 16px; font-weight: 800; color: var(--text-secondary); }
.dept-empty p { font-size: 13px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .app__main { margin-left: 0; }
  .sidebar { transform: translateX(-100%); }
  .sidebar--open { transform: translateX(0); }
  .sidebar-overlay { display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.35); backdrop-filter: blur(4px); z-index: 99; }
  .sidebar__close { display: flex; }
  .header__menu-btn { display: flex; }
  .header__search { display: none; }
  .app__content { padding: 16px; }

  .dashboard__stats { grid-template-columns: repeat(2, 1fr); }
  .dashboard__grid { grid-template-columns: 1fr; }
  .dashboard__welcome { padding: 24px; }
  .dashboard__welcome-content h2 { font-size: 20px; }
  .dashboard__quick-actions { grid-template-columns: 1fr; }
  .dashboard__welcome-stats { flex-direction: column; gap: 8px; align-items: flex-start; }

  .notice-grid, .feedback-grid, .rooms-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .page__toolbar { flex-direction: column; align-items: stretch; }
  .page__search { max-width: none; }
  .page__filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .page__filters::-webkit-scrollbar { display: none; }

  .skills-layout { grid-template-columns: 1fr; }
  .att-content { grid-template-columns: 1fr; }
  .att-bar { flex-direction: column; align-items: flex-start; }
  .att-bar__stats { flex-wrap: wrap; }
  .att-summary__grid { grid-template-columns: 1fr; }
  .att-class-grid { grid-template-columns: 1fr; }

  .sched-day__full { display: none; }
  .sched-day__short { display: block; font-size: 12px; }
  .sched-card { flex-direction: column; gap: 8px; }
  .sched-card__time { min-width: auto; }

  .sm { max-width: 100%; border-radius: 14px; }
  .sm__types { grid-template-columns: repeat(2, 1fr); }
  .sm__row { grid-template-columns: 1fr; }
  .sm__row--3 { grid-template-columns: 1fr 1fr; }
  .sm__time-row { gap: 8px; }

  .grievance-stats { grid-template-columns: repeat(2, 1fr); }
  .grievance-card__main { flex-direction: column; align-items: flex-start; }
  .grievance-card__left { flex-direction: column; align-items: flex-start; }
  .booking-card { flex-direction: column; }
  .feedback-stats { grid-template-columns: repeat(2, 1fr); }

  .dept-card__stats { display: none; }
  .dept-card__head { padding: 12px 14px; }
  .dept-table { font-size: 11px; }
}

@media (max-width: 480px) {
  .app__content { padding: 12px; }
  .dashboard__stats { grid-template-columns: 1fr; }
  .grievance-stats { grid-template-columns: 1fr; }
  .feedback-stats { grid-template-columns: 1fr; }
  .dashboard__welcome-stats { gap: 6px; }
  .att-hero__pills { flex-direction: column; align-items: center; }
  .att-hero { padding: 24px 16px; }
  .att-classes { padding: 16px; }
  .att-summary { padding: 16px; }
  .att-bar { padding: 14px; gap: 8px; }
  .qr-panel { padding: 16px; }
  .qr-display__container { padding: 16px; width: 100%; box-sizing: border-box; }
  .att-mark-panel { padding: 16px; }
  .sm__types { grid-template-columns: 1fr; }
  .sm__row--3 { grid-template-columns: 1fr; }
  .sm__head { padding: 16px; }
  .sm__body { padding: 16px; }
  .sched-card { padding: 12px; }
}

/* ===================================================================
   SCHEDULE PAGE UPGRADE
   =================================================================== */
.schedule-page { gap: 18px; }

.schedule-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: stretch;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(246,246,246,0.9)),
    linear-gradient(135deg, rgba(108,93,211,0.08), rgba(155,198,250,0.08));
  border: 1px solid rgba(108,93,211,0.12);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(36,39,49,0.06);
}

.schedule-hero__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.schedule-kicker {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(108,93,211,0.08);
  color: var(--accent-blue);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.schedule-hero h2 {
  font-size: 26px;
  font-weight: 850;
  color: var(--text-primary);
  letter-spacing: 0;
}

.schedule-hero p {
  max-width: 720px;
  color: var(--text-secondary);
  font-size: 14px;
}

.schedule-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.schedule-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(36,39,49,0.06);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
}

.schedule-hero__controls {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  min-width: 280px;
}

.schedule-switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 272px;
  padding: 5px;
  border-radius: 14px;
  background: rgba(255,255,255,0.84);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 2px rgba(36,39,49,0.04);
}

.schedule-switch__thumb {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc(50% - 5px);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(36,39,49,0.12), 0 1px 2px rgba(36,39,49,0.08);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.schedule-switch__thumb--right { transform: translateX(100%); }

.schedule-switch button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: color 0.2s;
}

.schedule-switch button.is-active { color: var(--text-primary); }
.schedule-add-btn { min-height: 40px; box-shadow: 0 10px 22px rgba(108,93,211,0.18); }

.schedule-insights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.schedule-insight {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}

.schedule-insight__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #3b6cf5;
  background: rgba(59,108,245,0.08);
}

.schedule-insight__icon--green { color: #1a9d5c; background: rgba(26,157,92,0.08); }
.schedule-insight__icon--gold { color: #b6750f; background: rgba(208,122,26,0.1); }
.schedule-insight__icon--purple { color: #6c52e8; background: rgba(108,82,232,0.08); }

.schedule-insight strong {
  display: block;
  color: var(--text-primary);
  font-size: 22px;
  line-height: 1;
  font-weight: 850;
}

.schedule-insight span {
  display: block;
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.schedule-command {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}

.schedule-command__left {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.schedule-command__left h3 { font-size: 16px; font-weight: 850; }
.schedule-command__left span {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.schedule-filter {
  min-height: 38px;
  padding: 8px 12px;
  background: var(--surface-2);
  border-radius: 12px;
}

.schedule-days { margin: 0; padding: 0 0 2px; gap: 8px; }

.schedule-day {
  flex: 1;
  min-width: 112px;
  min-height: 68px;
  align-items: flex-start;
  padding: 13px 14px;
  background: var(--surface-2);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
}

.schedule-day .sched-day__full,
.schedule-day .sched-day__short {
  font-size: 12px;
  font-weight: 800;
}

.schedule-day strong {
  margin-top: 5px;
  color: var(--text-primary);
  font-size: 20px;
  line-height: 1;
}

.schedule-day--active {
  background: #fff;
  border-color: rgba(108,93,211,0.35);
  box-shadow: 0 10px 22px rgba(108,93,211,0.1);
}

.schedule-day--today::after { top: 8px; right: 8px; }

.schedule-board {
  background: #fff;
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.schedule-board__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--glass-border);
  background: linear-gradient(180deg, #fff, rgba(246,246,246,0.64));
}

.schedule-board__head h3 { font-size: 18px; font-weight: 850; }
.schedule-board__head span {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.schedule-next {
  max-width: 340px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(60,203,127,0.1);
  color: #1a9d5c;
}

.schedule-next span {
  margin: 0;
  color: #1a9d5c;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.schedule-next strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-primary);
  font-size: 12px;
}

.schedule-timeline { gap: 0; padding: 4px 0; }

.schedule-card {
  margin: 0;
  border: 0;
  border-left: 4px solid var(--accent-blue);
  border-radius: 0;
  box-shadow: none;
  background: #fff;
  padding: 18px 20px;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
}

.schedule-card:last-child { border-bottom: 0; }
.schedule-card:hover {
  transform: none;
  background: rgba(108,93,211,0.025);
  box-shadow: inset 0 0 0 1px rgba(108,93,211,0.06);
}

.schedule-card__time {
  min-width: 110px;
  display: grid;
  gap: 4px;
  color: var(--text-primary);
}

.schedule-card__time span { font-size: 18px; font-weight: 850; }
.schedule-card__time small { color: var(--text-muted); font-size: 12px; font-weight: 800; }
.schedule-card__time em {
  width: fit-content;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-secondary);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.schedule-card__body { min-width: 0; }
.schedule-card__title-row { display: flex; align-items: flex-start; gap: 12px; }
.schedule-card__type {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.schedule-card__main h4 {
  margin: 0 0 5px;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 850;
}

.schedule-card__meta { margin: 0; }
.schedule-card__meta code { padding: 3px 8px; border-radius: 7px; font-family: inherit; }
.schedule-card__details { margin-top: 10px; gap: 8px 14px; font-size: 12px; }
.schedule-card__details span { color: var(--text-secondary); font-weight: 700; }
.schedule-card__actions { align-self: stretch; align-items: center; }

.schedule-empty {
  margin: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-height: 220px;
  justify-content: center;
}

.schedule-empty h3 { font-size: 18px; font-weight: 850; }
.schedule-empty .btn { margin-top: 8px; }
.schedule-modal {
  width: min(860px, calc(100vw - 32px));
  max-width: 860px;
  height: min(760px, calc(100dvh - 40px));
  max-height: calc(100dvh - 40px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(108,93,211,0.045), rgba(255,255,255,0) 210px),
    #f7f8fb;
  border: 1px solid rgba(36,39,49,0.08);
  border-radius: 24px;
}

.schedule-modal .sm__head {
  flex: 0 0 auto;
  padding: 20px 24px;
  background: rgba(255,255,255,0.88);
  border-bottom: 1px solid rgba(36,39,49,0.08);
  backdrop-filter: blur(14px);
}

.schedule-modal .sm__head-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 12px 26px rgba(108,93,211,0.22);
}

.schedule-modal__head-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.schedule-modal__eyebrow {
  width: fit-content;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(108,93,211,0.08);
  color: var(--accent-blue) !important;
  font-size: 10px !important;
  font-weight: 900;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.schedule-modal .sm__head h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0;
}

.schedule-modal__head-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.schedule-modal__head-meta span {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(36,39,49,0.08);
  color: var(--text-secondary) !important;
  font-size: 11px !important;
  font-weight: 800;
}

.schedule-modal .sm__close {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(36,39,49,0.06);
}

.schedule-modal__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding-bottom: 18px;
}

.schedule-modal__scroll::-webkit-scrollbar { width: 7px; }
.schedule-modal__scroll::-webkit-scrollbar-track { background: transparent; }
.schedule-modal__scroll::-webkit-scrollbar-thumb {
  background: rgba(36,39,49,0.16);
  border-radius: 999px;
}

.schedule-modal__preview {
  margin: 18px 24px 14px;
  padding: 16px 18px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(247,248,251,0.96)),
    linear-gradient(135deg, rgba(108,93,211,0.06), rgba(155,198,250,0.08));
  border: 1px solid rgba(36,39,49,0.08);
  border-left-width: 4px;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(36,39,49,0.06);
}

.schedule-modal .sm__preview strong {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0;
}

.schedule-modal .sm__preview > span {
  font-size: 12px;
  font-weight: 700;
}

.schedule-modal .sm__body {
  padding: 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.schedule-modal__section-card {
  margin-top: 0;
  padding: 16px;
  border: 1px solid rgba(36,39,49,0.08);
  border-radius: 20px;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 12px 30px rgba(36,39,49,0.055);
}

.schedule-modal .sm__section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: 11px;
  letter-spacing: 0.35px;
}

.schedule-modal .sm__section-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-blue);
  box-shadow: 0 0 0 4px rgba(108,93,211,0.08);
}

.schedule-modal .sm__types {
  gap: 10px;
}

.schedule-modal .sm__type {
  min-height: 78px;
  border: 1px solid rgba(36,39,49,0.1);
  border-radius: 18px;
  background: #f8f9fc;
}

.schedule-modal .sm__type--active,
.schedule-modal .sm__type:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(36,39,49,0.07);
}

.schedule-modal .sm__row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.schedule-modal .sm__row--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.schedule-modal .sm__row > *,
.schedule-modal .sm__autocomplete,
.schedule-modal .sm__input-wrap {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.schedule-modal .sm__input-wrap,
.schedule-modal .sm__autocomplete .sm__input-wrap {
  min-height: 50px;
  border-radius: 16px;
  background: #f8f9fc;
  border-color: rgba(36,39,49,0.1);
}

.schedule-modal .sm__input-wrap input,
.schedule-modal .sm__input-wrap--select select {
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
}

.schedule-modal .sm__dropdown {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(36,39,49,0.18), 0 2px 8px rgba(36,39,49,0.05);
}

.schedule-modal .sm__dropdown-item,
.schedule-modal .sm__dropdown-item-main,
.schedule-modal .sm__dropdown-item-meta {
  min-width: 0;
}

.schedule-modal .sm__day-row {
  gap: 8px;
  margin-bottom: 14px;
}

.schedule-modal .sm__day-chip {
  min-height: 40px;
  border-radius: 14px;
  padding: 8px 15px;
  background: #f8f9fc;
}

.schedule-modal .sm__day-chip--active {
  background: var(--accent-blue);
  color: #fff;
  box-shadow: 0 12px 22px rgba(108,93,211,0.18);
}

.schedule-modal .sm__time-row {
  justify-content: flex-start;
  gap: 14px;
}

.schedule-modal .atp {
  align-items: flex-start;
}

.schedule-modal .atp__box {
  min-height: 54px;
  border-radius: 16px;
  background: #f8f9fc;
}

.schedule-modal .sm__foot {
  flex: 0 0 auto;
  align-items: center;
  padding: 16px 24px;
  background: rgba(255,255,255,0.92);
  border-top: 1px solid rgba(36,39,49,0.08);
  backdrop-filter: blur(14px);
  box-shadow: 0 -14px 34px rgba(36,39,49,0.06);
}

.schedule-modal .sm__foot .btn {
  min-height: 42px;
  border-radius: 14px;
}

.schedule-modal__error {
  flex: 1;
  min-width: 180px;
  color: var(--accent-red);
  font-size: 12px;
  font-weight: 800;
  padding: 9px 12px;
  border: 1px solid rgba(255,122,122,0.22);
  border-radius: 14px;
  background: rgba(255,122,122,0.08);
}

@media (max-width: 1024px) {
  .schedule-hero { grid-template-columns: 1fr; }
  .schedule-hero__controls { min-width: 0; align-items: stretch; }
  .schedule-switch { width: 100%; }
  .schedule-insights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .schedule-hero { padding: 18px; border-radius: 16px; }
  .schedule-hero h2 { font-size: 22px; }
  .schedule-command__left { flex-direction: column; align-items: stretch; }
  .schedule-filter { width: 100%; }
  .schedule-filter select { width: 100%; }
  .schedule-board__head { flex-direction: column; align-items: stretch; }
  .schedule-next { max-width: none; }
  .schedule-card { align-items: flex-start; }
  .schedule-card__time { min-width: 0; width: 100%; grid-template-columns: auto auto 1fr; align-items: center; }
  .schedule-card__time em { justify-self: start; }
}

@media (max-width: 520px) {
  .schedule-insights { grid-template-columns: 1fr; }
  .schedule-hero__meta span { width: 100%; }
  .schedule-card__title-row { gap: 10px; }
  .schedule-card__actions { width: 100%; justify-content: flex-end; }
  .schedule-modal__error { min-width: 100%; }
}

/* ===================================================================
   ATTENDANCE PAGE - Database-backed QR and Manual Attendance
   =================================================================== */
.attendance-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.attendance-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(36,39,49,0.08);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.98), rgba(247,248,250,0.94)),
    linear-gradient(135deg, rgba(59,108,245,0.08), rgba(26,157,92,0.06));
  box-shadow: 0 10px 30px rgba(36,39,49,0.06);
}

.attendance-kicker {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(26,157,92,0.08);
  color: #1a7f4a;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.attendance-hero h2 {
  margin-top: 8px;
  color: var(--text-primary);
  font-size: 26px;
  font-weight: 850;
  letter-spacing: 0;
}

.attendance-hero p {
  max-width: 760px;
  margin-top: 5px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.attendance-hero__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.attendance-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(82px, 1fr));
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  background: rgba(255,255,255,0.86);
  box-shadow: inset 0 1px 2px rgba(36,39,49,0.04);
}

.attendance-tabs button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}

.attendance-tabs button.is-active {
  background: #fff;
  color: var(--text-primary);
  box-shadow: 0 8px 20px rgba(36,39,49,0.1);
}

.attendance-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.attendance-metric {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.attendance-metric__icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 12px;
  color: #315bd8;
  background: rgba(59,108,245,0.08);
}

.attendance-metric__icon--green { color: #1a7f4a; background: rgba(26,157,92,0.09); }
.attendance-metric__icon--purple { color: #6b51d8; background: rgba(107,81,216,0.08); }
.attendance-metric__icon--gold { color: #a4640a; background: rgba(202,126,23,0.11); }
.attendance-metric__icon--red { color: #c7362f; background: rgba(217,68,68,0.09); }

.attendance-metric strong {
  display: block;
  color: var(--text-primary);
  font-size: 22px;
  line-height: 1;
  font-weight: 850;
}

.attendance-metric span {
  display: block;
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 750;
}

.attendance-panel {
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.attendance-panel__head {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--glass-border);
  background: linear-gradient(180deg, #fff, rgba(247,248,250,0.72));
}

.attendance-panel__head--stack {
  align-items: flex-start;
}

.attendance-panel__head h3 {
  color: var(--text-primary);
  font-size: 17px;
  font-weight: 850;
}

.attendance-panel__head span,
.attendance-panel__head p {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.attendance-panel__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  border-top: 1px solid var(--glass-border);
  background: rgba(247,248,250,0.74);
}

.attendance-panel__foot span {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 800;
}

.attendance-live-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(320px, 1.05fr);
  gap: 18px;
}

.attendance-qr-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 22px;
}

.attendance-live-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}

.attendance-live-head h3 {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 850;
}

.attendance-live-head p {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.attendance-live-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #dc3f34;
  box-shadow: 0 0 0 6px rgba(220,63,52,0.12);
  animation: blink 1.2s infinite;
  flex-shrink: 0;
}

.attendance-qr-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border: 1px solid rgba(36,39,49,0.08);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(36,39,49,0.12);
}

.attendance-qr-frame::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 2px solid rgba(59,108,245,0.16);
  border-radius: 14px;
  pointer-events: none;
}

.attendance-qr-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 800;
}

.attendance-qr-meta strong {
  min-width: 42px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(26,157,92,0.09);
  color: #1a7f4a;
  text-align: center;
}

.attendance-class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  padding: 20px;
}

.attendance-class-card {
  min-height: 154px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--text-primary);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.attendance-class-card:hover {
  transform: translateY(-1px);
  border-color: rgba(59,108,245,0.24);
  box-shadow: 0 12px 24px rgba(36,39,49,0.08);
}

.attendance-class-card:disabled {
  opacity: 0.66;
  cursor: not-allowed;
}

.attendance-class-card span,
.attendance-class-card small {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 750;
}

.attendance-class-card strong {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 850;
}

.attendance-class-card em {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 10px;
  background: rgba(59,108,245,0.09);
  color: #315bd8;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.attendance-roster {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 20px 20px;
}

.attendance-roster--manual {
  max-height: 520px;
  overflow-y: auto;
}

.attendance-roster__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: var(--surface-2);
}

.attendance-roster__row--unmarked {
  border-color: rgba(150,156,174,0.32);
  background: rgba(249,250,252,0.96);
}

.attendance-roster__row strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attendance-roster__row span {
  display: block;
  min-width: 0;
  overflow: hidden;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attendance-avatar {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #315bd8, #6b51d8);
  color: #fff;
  font-size: 13px;
  font-weight: 850;
}

.attendance-icon-green {
  color: #1a7f4a;
}

.attendance-manual-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--glass-border);
}

.attendance-manual-toolbar strong,
.attendance-manual-toolbar span {
  display: block;
}

.attendance-manual-toolbar strong {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 850;
}

.attendance-manual-toolbar span {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 750;
}

.attendance-manual-toolbar > div:last-child {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.attendance-toggle {
  min-width: 104px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.attendance-toggle--present {
  color: #1a7f4a;
  background: rgba(26,157,92,0.09);
  border-color: rgba(26,157,92,0.18);
}

.attendance-toggle--absent {
  color: #c7362f;
  background: rgba(217,68,68,0.08);
  border-color: rgba(217,68,68,0.16);
}

.attendance-manual-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 286px;
}

.attendance-manual-actions > div {
  display: flex;
  gap: 7px;
}

.attendance-manual-state {
  min-width: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.attendance-manual-state--present {
  color: #147a45;
  background: rgba(26,157,92,0.1);
}

.attendance-manual-state--absent {
  color: #b8322b;
  background: rgba(217,68,68,0.09);
}

.attendance-manual-state--unmarked {
  color: var(--text-muted);
  background: rgba(143,150,170,0.14);
}

.attendance-mini-toggle {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 11px;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  background: #fff;
  color: var(--text-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.attendance-mini-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(86,80,211,0.22);
  color: var(--text-primary);
}

.attendance-mini-toggle.is-active {
  border-color: rgba(26,157,92,0.2);
  background: rgba(26,157,92,0.1);
  color: #147a45;
}

.attendance-mini-toggle--absent.is-active {
  border-color: rgba(217,68,68,0.18);
  background: rgba(217,68,68,0.09);
  color: #b8322b;
}

.attendance-select {
  min-width: 320px;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: #fff;
  color: var(--text-primary);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
}

.attendance-search {
  min-width: 320px;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: #fff;
  color: var(--text-muted);
}

.attendance-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.attendance-table-wrap {
  overflow-x: auto;
}

.attendance-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.attendance-table th {
  padding: 12px 16px;
  background: rgba(247,248,250,0.9);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 850;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.35px;
}

.attendance-table td {
  padding: 15px 16px;
  border-top: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  vertical-align: middle;
}

.attendance-table td strong,
.attendance-table td span {
  display: block;
}

.attendance-table td strong {
  color: var(--text-primary);
  font-weight: 850;
}

.attendance-table td span {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
}

.attendance-pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(59,108,245,0.09);
  color: #315bd8;
  font-size: 11px;
  font-weight: 850;
}

.attendance-status {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  text-transform: capitalize;
}

.attendance-status--present {
  color: #1a7f4a;
  background: rgba(26,157,92,0.09);
}

.attendance-status--absent {
  color: #c7362f;
  background: rgba(217,68,68,0.08);
}

.attendance-status--pending {
  color: #a4640a;
  background: rgba(202,126,23,0.1);
}

.attendance-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(217,68,68,0.14);
  border-radius: 12px;
  background: rgba(217,68,68,0.08);
  color: #c7362f;
  font-size: 13px;
  font-weight: 800;
}

.attendance-alert--success {
  border-color: rgba(26,157,92,0.16);
  background: rgba(26,157,92,0.09);
  color: #1a7f4a;
}

.attendance-alert--error {
  border-color: rgba(217,68,68,0.14);
  background: rgba(217,68,68,0.08);
  color: #c7362f;
}

.attendance-empty {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 34px;
  color: var(--text-muted);
  text-align: center;
}

.attendance-empty__icon {
  width: 66px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: var(--surface-2);
  color: var(--text-muted);
}

.attendance-empty h3 {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 850;
}

.attendance-empty p {
  max-width: 420px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.attendance-student-scan {
  max-width: 760px;
  margin: 0 auto;
  padding: 22px;
}

.attendance-confirmed {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #1a7f4a;
  text-align: center;
}

.attendance-confirmed--pop {
  animation: attendance-pop 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes attendance-pop {
  0% { opacity: 0; transform: scale(0.94) translateY(8px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.attendance-confirmed__mark {
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(26,157,92,0.1);
  color: #1a7f4a;
  box-shadow: 0 0 0 10px rgba(26,157,92,0.05);
}

.attendance-confirmed h3 {
  color: var(--text-primary);
  font-size: 22px;
  font-weight: 850;
}

.attendance-confirmed p {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

.attendance-confirmed__scope {
  width: min(100%, 460px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  padding: 14px;
  border: 1px solid rgba(26,157,92,0.14);
  border-radius: 14px;
  background: rgba(26,157,92,0.06);
}

.attendance-confirmed__scope strong {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 850;
}

.attendance-confirmed__scope span,
.attendance-confirmed__scope small {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 750;
}

.attendance-record-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(247,248,250,0.5);
}

.attendance-record-grid--student {
  border-bottom: 0;
}

.attendance-record-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 174px;
  padding: 16px;
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(36,39,49,0.05);
}

.attendance-record-card--present {
  border-color: rgba(26,157,92,0.16);
}

.attendance-record-card--absent {
  border-color: rgba(217,68,68,0.14);
}

.attendance-record-card--pending {
  border-color: rgba(202,126,23,0.16);
}

.attendance-record-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.attendance-record-card h4 {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.25;
}

.attendance-record-card p {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 750;
}

.attendance-record-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.attendance-record-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
}

.attendance-student-records {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 20px 22px;
  background: linear-gradient(180deg, rgba(247,248,250,0.72), rgba(255,255,255,0));
}

.attendance-semester-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.attendance-semester-card {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 15px;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  background: #fff;
  color: var(--text-secondary);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(36,39,49,0.045);
  transition: 180ms ease;
}

.attendance-semester-card:hover {
  border-color: rgba(108,93,211,0.2);
  transform: translateY(-1px);
}

.attendance-semester-card.is-active {
  border-color: rgba(108,93,211,0.28);
  background: linear-gradient(135deg, rgba(108,93,211,0.1), rgba(155,198,250,0.08)), #fff;
  box-shadow: 0 14px 28px rgba(108,93,211,0.12);
}

.attendance-semester-card span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.attendance-semester-card strong {
  color: var(--text-primary);
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.attendance-semester-card small {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
}

.attendance-progress {
  width: 100%;
  height: 7px;
  margin-top: auto;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(126,130,148,0.13);
}

.attendance-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #6C5DD3;
}

.attendance-semester-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(108,93,211,0.13);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(36,39,49,0.05);
}

.attendance-semester-overview span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.attendance-semester-overview h4 {
  margin-top: 4px;
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 900;
}

.attendance-semester-overview p {
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 750;
}

.attendance-semester-score {
  width: 112px;
  height: 112px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 26px;
  background: #242731;
  color: #fff;
  box-shadow: 0 16px 30px rgba(36,39,49,0.16);
}

.attendance-semester-score strong {
  font-size: 28px;
  font-weight: 950;
  line-height: 1;
}

.attendance-semester-score span {
  margin-top: 6px;
  color: rgba(255,255,255,0.76);
  font-size: 12px;
  font-weight: 850;
}

.attendance-subject-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.attendance-subject-card {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  background: #fff;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(36,39,49,0.045);
  transition: 180ms ease;
}

.attendance-subject-card:hover {
  border-color: rgba(108,93,211,0.2);
  transform: translateY(-1px);
}

.attendance-subject-card.is-active {
  border-color: #6C5DD3;
  box-shadow: 0 14px 26px rgba(108,93,211,0.12);
}

.attendance-subject-card__icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #6C5DD3;
  background: rgba(108,93,211,0.09);
}

.attendance-subject-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.attendance-subject-card__body strong,
.attendance-subject-card__body small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attendance-subject-card__body strong {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 900;
}

.attendance-subject-card__body small {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
}

.attendance-subject-card em {
  font-style: normal;
  color: #6C5DD3;
  font-size: 13px;
  font-weight: 900;
}

.attendance-subject-detail {
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(36,39,49,0.055);
}

.attendance-subject-detail__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(247,248,250,0.72);
}

.attendance-subject-detail__head span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.attendance-subject-detail__head h4 {
  margin-top: 3px;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 900;
}

.attendance-subject-detail__head p {
  margin-top: 3px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
}

.attendance-subject-threshold {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.attendance-subject-threshold.is-good {
  color: #1a7f4a;
  background: rgba(26,157,92,0.09);
}

.attendance-subject-threshold.is-low {
  color: #a4640a;
  background: rgba(202,126,23,0.1);
}

.attendance-subject-table td:first-child span {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 750;
}

.attendance-scanner {
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 22px auto 0;
  overflow: hidden;
  border-radius: 18px;
}

.attendance-scanner video {
  border-radius: 18px;
}

.attendance-scan-box {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
}

.attendance-scan-box__target {
  width: 188px;
  height: 188px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px dashed rgba(59,108,245,0.38);
  border-radius: 28px;
  background: rgba(59,108,245,0.04);
  color: #315bd8;
}

.attendance-scan-box span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 1024px) {
  .attendance-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .attendance-hero__actions {
    justify-content: flex-start;
  }

  .attendance-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .attendance-live-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .attendance-hero {
    padding: 18px;
    border-radius: 16px;
  }

  .attendance-hero h2 {
    font-size: 22px;
  }

  .attendance-tabs {
    width: 100%;
  }

  .attendance-tabs button {
    min-width: 0;
    padding: 8px 6px;
  }

  .attendance-metrics {
    grid-template-columns: 1fr;
  }

  .attendance-panel__head,
  .attendance-manual-toolbar,
  .attendance-panel__foot {
    flex-direction: column;
    align-items: stretch;
  }

  .attendance-search,
  .attendance-select {
    width: 100%;
    min-width: 0;
  }

  .attendance-roster__row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .attendance-roster__row > svg,
  .attendance-toggle,
  .attendance-manual-actions {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .attendance-manual-actions {
    min-width: 0;
    flex-direction: column;
    align-items: stretch;
  }

  .attendance-manual-actions > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .attendance-manual-state,
  .attendance-mini-toggle {
    width: 100%;
  }

  .attendance-qr-frame {
    padding: 16px;
  }

  .attendance-qr-frame svg {
    width: 210px;
    height: 210px;
  }

  .attendance-student-scan {
    padding: 18px;
  }

  .attendance-student-records {
    padding: 14px;
  }

  .attendance-semester-strip,
  .attendance-subject-grid {
    grid-template-columns: 1fr;
  }

  .attendance-semester-overview,
  .attendance-subject-detail__head {
    flex-direction: column;
    align-items: stretch;
  }

  .attendance-semester-score {
    width: 100%;
    height: auto;
    min-height: 82px;
    border-radius: 18px;
  }

  .attendance-subject-threshold {
    justify-content: center;
  }
}
/* ===================================================================
   AUTH PAGES — Light Modal Card Design
   Palette: Foxstocks (#6C5DD3, #9BC6FA, #3CCB7F)
   =================================================================== */

/* ===== PAGE BACKDROP ===== */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: #F6F6F6; position: relative; overflow: hidden; padding: 20px;
}
.auth-page__bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.auth-bg-glow {
  position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.45;
  animation: glow-drift 18s ease-in-out infinite;
}
.auth-bg-glow--1 {
  width: 500px; height: 500px; bottom: -20%; left: 10%;
  background: radial-gradient(circle, rgba(108,93,211,0.15), transparent 70%);
}
.auth-bg-glow--2 {
  width: 450px; height: 450px; top: -15%; right: 5%;
  background: radial-gradient(circle, rgba(155,198,250,0.12), transparent 70%);
  animation-delay: -6s;
}
.auth-bg-glow--3 {
  width: 350px; height: 350px; bottom: 10%; right: 20%;
  background: radial-gradient(circle, rgba(60,203,127,0.08), transparent 70%);
  animation-delay: -10s;
}
@keyframes glow-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.05); }
  66% { transform: translate(-15px, 20px) scale(0.97); }
}

/* ===== AUTH CARD ===== */
.auth-card {
  width: 100%; max-width: 400px; position: relative; z-index: 1;
  background: #FFFFFF;
  border: 1px solid #E5E5E5; border-radius: 22px;
  padding: 28px 26px; box-shadow: 0 12px 48px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.03);
  animation: card-enter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.auth-card--wide { max-width: 430px; }
/* Fixed dimensions so login & signup are identical size */
.auth-card--fixed { min-height: 420px; display: flex; flex-direction: column; }
.auth-card--fixed .auth-form { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.auth-card--fixed .auth-submit { margin-top: auto; }
@keyframes card-enter {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== TABS ===== */
.auth-tabs {
  display: flex; gap: 4px; padding: 3px; margin-bottom: 20px;
  background: #F6F6F6; border-radius: 12px;
}
.auth-tab {
  flex: 1; padding: 9px 0; border: none; border-radius: 10px; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 600; letter-spacing: 0.2px;
  background: transparent; color: var(--text-muted); transition: all 0.25s ease;
}
.auth-tab:hover { color: var(--text-secondary); }
.auth-tab--active {
  background: #FFFFFF; color: #6C5DD3;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* ===== CARD HEADER ===== */
.auth-card__header { margin-bottom: 16px; }
.auth-card__logo {
  display: flex; align-items: center; gap: 9px; margin-bottom: 12px;
}
.auth-card__logo-icon {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, #6C5DD3, #9BC6FA); display: flex;
  align-items: center; justify-content: center; color: #fff;
  box-shadow: 0 3px 10px rgba(108,93,211,0.25);
}
.auth-card__logo-icon--shield {
  background: linear-gradient(135deg, #3CCB7F, #9BC6FA);
  box-shadow: 0 3px 10px rgba(60,203,127,0.25);
}
.auth-card__logo span { font-size: 14px; font-weight: 800; color: var(--text-primary); letter-spacing: -0.3px; }
.auth-card__header h2 {
  font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: 3px; letter-spacing: -0.4px;
}
.auth-card__header p { font-size: 12px; color: var(--text-muted); }
.auth-card__header p strong { color: var(--text-secondary); }

/* ===== DEMO STRIP ===== */
.auth-demo-strip {
  display: flex; gap: 6px; margin-bottom: 14px; align-items: center; flex-wrap: wrap;
}
.auth-demo-strip__label {
  font-size: 10px; font-weight: 600; color: var(--text-muted);
  letter-spacing: 0.3px; text-transform: uppercase; white-space: nowrap;
  width: 100%; margin-bottom: -2px;
}
.auth-demo-chip {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 7px 0; border-radius: 9px; border: 1px solid rgba(108,93,211,0.15);
  background: rgba(108,93,211,0.04); color: #6C5DD3; font-family: inherit;
  font-size: 11px; font-weight: 700; cursor: pointer; transition: all 0.2s;
}
.auth-demo-chip:hover:not(:disabled) { background: #6C5DD3; color: #fff; border-color: #6C5DD3; }
.auth-demo-chip:disabled { opacity: 0.5; cursor: not-allowed; }
.auth-demo-chip--loading {
  background: #6C5DD3; color: #fff; border-color: #6C5DD3;
  opacity: 1 !important; pointer-events: none;
}
.auth-demo-chip__spinner {
  animation: auth-spin 0.7s linear infinite;
}
.auth-demo-fill {
  display: flex; align-items: center; gap: 6px; margin-bottom: 10px; padding: 5px 12px;
  border-radius: 9px; border: 1px dashed rgba(108,93,211,0.2);
  background: rgba(108,93,211,0.03); color: #6C5DD3; font-family: inherit;
  font-size: 11px; font-weight: 600; cursor: pointer; transition: all 0.2s; width: 100%;
  justify-content: center;
}
.auth-demo-fill:hover:not(:disabled) { background: rgba(108,93,211,0.08); border-style: solid; }
.auth-demo-fill:disabled { opacity: 0.5; cursor: not-allowed; }
.auth-demo-fill--loading {
  background: rgba(108,93,211,0.08); border-style: solid;
}
.auth-demo-fill__spinner {
  animation: auth-spin 0.7s linear infinite;
}

/* ===== ROLE TOGGLE ===== */
.auth-role-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 14px; }
.auth-role-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px; border-radius: 10px; font-size: 13px; font-weight: 600;
  border: 1.5px solid #E5E5E5; background: #fff;
  color: var(--text-muted); cursor: pointer; font-family: inherit; transition: all 0.2s;
}
.auth-role-btn:hover { border-color: rgba(108,93,211,0.25); color: var(--text-secondary); }
.auth-role-btn--active {
  border-color: #6C5DD3; background: rgba(108,93,211,0.04); color: #6C5DD3;
}

/* ===== FORM ===== */
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-field { display: flex; flex-direction: column; gap: 5px; }
.auth-field label {
  font-size: 11px; font-weight: 600; color: var(--text-muted);
  letter-spacing: 0.3px; text-transform: uppercase;
}
.auth-field__hint {
  font-size: 10px; color: var(--text-muted); margin-top: -2px;
  letter-spacing: 0.2px; padding-left: 2px;
}

.auth-input-wrap {
  display: flex; align-items: center;
  background: #F6F6F6; border: 1.5px solid #E5E5E5;
  border-radius: 10px; transition: all 0.25s; overflow: hidden;
}
.auth-input-wrap:focus-within {
  border-color: #6C5DD3; background: #fff;
  box-shadow: 0 0 0 3px rgba(108,93,211,0.08);
}
.auth-input-icon { margin-left: 12px; color: var(--text-muted); flex-shrink: 0; }
.auth-input-wrap:focus-within .auth-input-icon { color: #6C5DD3; }
.auth-input-wrap input {
  flex: 1; padding: 10px 12px; background: none; border: none;
  color: var(--text-primary); font-size: 13px; outline: none; font-family: inherit;
}
.auth-input-wrap input::placeholder { color: var(--text-muted); }
.auth-eye {
  padding: 7px 10px; background: none; border: none;
  color: var(--text-muted); cursor: pointer; transition: color 0.15s;
}
.auth-eye:hover { color: #6C5DD3; }

/* ===== DOMAIN SUFFIX ===== */
.auth-input-wrap--domain input {
  flex: 0 1 auto; min-width: 60px; padding-right: 2px;
}
.auth-domain-suffix {
  font-size: 12px; font-weight: 600; color: #6C5DD3;
  white-space: nowrap; padding-right: 12px; user-select: none;
  opacity: 0.7; letter-spacing: -0.2px;
}
.auth-input-wrap--domain:focus-within .auth-domain-suffix {
  opacity: 1;
}

/* ===== OTP GRID ===== */
.auth-otp-grid { display: flex; gap: 7px; justify-content: center; margin: 2px 0; }
.auth-otp-cell {
  width: 42px; height: 48px; text-align: center; font-size: 20px; font-weight: 800;
  background: #F6F6F6; border: 2px solid #E5E5E5;
  border-radius: 10px; color: var(--text-primary); outline: none;
  font-family: 'Manrope', sans-serif; transition: all 0.2s; caret-color: #6C5DD3;
}
.auth-otp-cell:focus {
  border-color: #6C5DD3; box-shadow: 0 0 0 3px rgba(108,93,211,0.1);
  background: #fff;
}

/* ===== OTP HINT ===== */
.auth-otp-hint {
  display: flex; align-items: center; gap: 10px; padding: 9px 14px;
  background: rgba(60,203,127,0.05); border: 1px solid rgba(60,203,127,0.12);
  border-radius: 10px; margin-bottom: 10px;
}
.auth-otp-hint span { font-size: 14px; }
.auth-otp-hint code {
  font-size: 18px; font-weight: 800; letter-spacing: 5px; color: #3CCB7F;
  font-family: 'Manrope', monospace;
}

/* ===== RESEND ===== */
.auth-resend-row { text-align: center; margin: -2px 0 2px; }
.auth-resend-wait { font-size: 11px; color: var(--text-muted); }
.auth-resend-wait b { color: #6C5DD3; }
.auth-resend {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; color: #6C5DD3; background: none; border: none;
  cursor: pointer; font-weight: 600; font-family: inherit;
}
.auth-resend:hover { text-decoration: underline; }

/* ===== SUBMIT BUTTON ===== */
.auth-submit {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px; border-radius: 10px; border: none;
  background: linear-gradient(135deg, #6C5DD3, #9BC6FA);
  color: #fff; font-size: 13px; font-weight: 700; cursor: pointer;
  font-family: inherit; letter-spacing: 0.3px;
  box-shadow: 0 4px 16px rgba(108,93,211,0.25); transition: all 0.3s ease; margin-top: 2px;
}
.auth-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(108,93,211,0.35); }
.auth-submit:active { transform: translateY(0); }
.auth-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.auth-spinner {
  width: 16px; height: 16px; border: 2.5px solid rgba(255,255,255,0.2);
  border-top-color: #fff; border-radius: 50%; animation: auth-spin 0.6s linear infinite;
}
@keyframes auth-spin {
  to { transform: rotate(360deg); }
}

/* ===== ERROR ===== */
.auth-err {
  padding: 8px 12px; border-radius: 8px; font-size: 11px; font-weight: 600;
  background: rgba(255,122,122,0.06); color: #FF7A7A;
  border: 1px solid rgba(255,122,122,0.12); animation: auth-shake 0.3s ease;
}
@keyframes auth-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

/* ===== STEPS STRIP ===== */
.auth-steps-strip {
  display: flex; align-items: center; justify-content: center; gap: 0;
  margin: 14px 0 2px; padding: 10px 0;
}
.auth-step-dot { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.auth-step-dot span {
  width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 10px; font-weight: 800;
  background: #F6F6F6; border: 1.5px solid #E5E5E5;
  color: var(--text-muted); transition: all 0.3s;
}
.auth-step-dot small { font-size: 9px; font-weight: 600; color: var(--text-muted); }
.auth-step-dot--active span {
  background: rgba(108,93,211,0.1); border-color: #6C5DD3; color: #6C5DD3;
  box-shadow: 0 0 10px rgba(108,93,211,0.15);
}
.auth-step-dot--active small { color: #6C5DD3; }
.auth-step-dot--done span { background: rgba(60,203,127,0.1); border-color: #3CCB7F; color: #3CCB7F; }
.auth-step-dot--done small { color: #3CCB7F; }
.auth-step-line { width: 36px; height: 2px; background: #E5E5E5; margin: 0 6px; margin-bottom: 14px; }
.auth-step-line--done { background: rgba(60,203,127,0.3); }

/* ===== BACK BUTTON ===== */
.auth-back-btn {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11px;
  color: var(--text-muted); background: none; border: none; cursor: pointer;
  font-family: inherit; margin-bottom: 14px; padding: 3px 6px; border-radius: 6px;
  transition: all 0.2s; font-weight: 500;
}
.auth-back-btn:hover { color: #6C5DD3; background: rgba(108,93,211,0.05); }

/* ===== USER PREVIEW ===== */
.auth-user-preview {
  display: flex; align-items: center; gap: 10px; padding: 12px;
  background: #F6F6F6; border-radius: 12px;
  border: 1px solid #E5E5E5; margin-bottom: 10px;
}
.auth-user-preview__avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #6C5DD3, #9BC6FA);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: #fff;
}
.auth-user-preview__info { display: flex; flex-direction: column; gap: 1px; }
.auth-user-preview__info strong { font-size: 12px; color: var(--text-primary); }
.auth-user-preview__info span { font-size: 10px; color: var(--text-muted); }

/* ===== CARD FOOTER ===== */
.auth-card__footer {
  text-align: center; margin-top: 16px; display: flex; flex-direction: column; gap: 6px;
}
.auth-card__footer p { font-size: 12px; color: var(--text-muted); }
.auth-card__footer button {
  display: inline-flex; align-items: center; gap: 4px; background: none; border: none;
  color: #6C5DD3; font-weight: 700; cursor: pointer; font-family: inherit; font-size: 12px;
}
.auth-card__footer button:hover { text-decoration: underline; }
.auth-card__terms { font-size: 10px; color: var(--text-muted); }
.auth-card__terms a { color: var(--text-secondary); text-decoration: underline; }
.auth-card__terms a:hover { color: #6C5DD3; }

/* ===== SIDEBAR EXTRAS ===== */
.sidebar__role-badge { padding: 8px 18px; border-bottom: 1px solid var(--glass-border); }
.role-indicator {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  padding: 4px 12px; border-radius: 14px;
}
.role-indicator--admin { background: var(--accent-purple-bg); color: var(--accent-purple); }
.role-indicator--teacher { background: var(--accent-blue-bg); color: var(--accent-blue); }
.role-indicator--student { background: var(--accent-emerald-bg); color: var(--accent-emerald); }
.sidebar__logout-btn {
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  padding: 6px; border-radius: 6px; margin-left: auto; transition: all 0.2s;
  display: flex; align-items: center;
}
.sidebar__logout-btn:hover { color: var(--accent-red); background: var(--accent-red-bg); }

.header__user-pill {
  display: flex; align-items: center; gap: 8px; padding: 6px 14px;
  background: var(--surface-2); border-radius: 20px; border: 1px solid var(--glass-border);
}
.header__user-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.header__user-role-badge {
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
  padding: 2px 8px; border-radius: 8px;
}
.header__user-role-badge--admin { background: var(--accent-purple-bg); color: var(--accent-purple); }
.header__user-role-badge--teacher { background: var(--accent-blue-bg); color: var(--accent-blue); }
.header__user-role-badge--student { background: var(--accent-emerald-bg); color: var(--accent-emerald); }
.header__logout-btn {
  background: var(--surface-2); border: 1px solid var(--glass-border);
  color: var(--text-muted); cursor: pointer; padding: 7px; border-radius: 50%;
  transition: all 0.2s; display: flex; align-items: center;
}
.header__logout-btn:hover { color: var(--accent-red); background: var(--accent-red-bg); border-color: rgba(229,83,61,0.15); }

/* ===================================================================
   AUTH SPLIT EXPERIENCE
   =================================================================== */
.auth-page--split {
  min-height: 100vh;
  padding: 34px;
  overflow: auto;
  background:
    radial-gradient(circle at 15% 12%, rgba(108,93,211,0.18), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(17,17,19,0.14), transparent 28%),
    linear-gradient(135deg, #efeff2 0%, #ffffff 48%, #ececf0 100%);
}

.auth-page--split::before,
.auth-page--split::after {
  content: '';
  position: fixed;
  inset: auto;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.45;
  animation: auth-ambient-float 16s ease-in-out infinite;
}

.auth-page--split::before {
  width: 420px;
  height: 190px;
  top: -54px;
  left: 8%;
  background: rgba(178,132,103,0.38);
}

.auth-page--split::after {
  width: 360px;
  height: 160px;
  right: 4%;
  bottom: -42px;
  background: rgba(108,93,211,0.2);
  animation-delay: -7s;
}

@keyframes auth-ambient-float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(18px, -16px, 0) scale(1.04); }
}

.auth-shell {
  width: min(1120px, 100%);
  min-height: min(760px, calc(100vh - 68px));
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(460px, 0.98fr);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.74);
  border-radius: 30px;
  background: rgba(255,255,255,0.82);
  box-shadow: 0 38px 100px rgba(20,20,26,0.18), 0 14px 38px rgba(20,20,26,0.08);
  animation: auth-shell-enter 0.72s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes auth-shell-enter {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-shell__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  overflow: hidden;
  padding: 46px 48px;
  background:
    linear-gradient(180deg, rgba(21,17,16,0.88), rgba(21,17,16,0.94)),
    url('/assets/landing-campus-hero-CrqbYeT1.jpg') center / cover;
  color: #fff;
  isolation: isolate;
}

.auth-shell__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(130deg, rgba(255,255,255,0.08), transparent 36%),
    radial-gradient(circle at 66% 42%, rgba(255,255,255,0.1), transparent 27%);
}

.auth-shell__visual-copy {
  position: relative;
  z-index: 2;
  color: rgba(255,255,255,0.72);
  font-size: 12px;
  font-weight: 650;
}

.auth-shell__rings {
  width: 250px;
  height: 250px;
  position: absolute;
  top: 20%;
  left: 32%;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: auth-ring-pulse 7s ease-in-out infinite;
}

.auth-shell__rings::before,
.auth-shell__rings::after {
  content: '';
  position: absolute;
  inset: 30px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: inherit;
}

.auth-shell__rings::after {
  inset: 70px;
}

@keyframes auth-ring-pulse {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.8; }
  50% { transform: translateX(-50%) scale(1.04); opacity: 1; }
}

.auth-shell__visual-content {
  position: relative;
  z-index: 2;
  max-width: 460px;
  margin-top: auto;
  padding-bottom: 260px;
}

.auth-shell__visual-content h1 {
  color: #fff;
  font-size: clamp(46px, 5vw, 64px);
  line-height: 0.96;
  font-weight: 950;
  letter-spacing: 0;
}

.auth-shell__visual-content p {
  max-width: 390px;
  margin-top: 20px;
  color: rgba(255,255,255,0.72);
  font-size: 15px;
  line-height: 1.65;
  font-weight: 650;
}

.auth-shell__visual-card {
  width: 158px;
  height: 224px;
  position: absolute;
  left: 18%;
  bottom: 96px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(245,245,248,0.9));
  box-shadow: 0 24px 64px rgba(0,0,0,0.28);
  transform: rotate(-8deg);
  animation: auth-card-float 6s ease-in-out infinite;
}

@keyframes auth-card-float {
  0%, 100% { transform: rotate(-8deg) translate3d(0, 0, 0); }
  50% { transform: rotate(-6deg) translate3d(8px, -12px, 0); }
}

.auth-shell__mini-bar {
  width: 54px;
  height: 8px;
  position: absolute;
  top: 16px;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 99px;
  background: #111113;
  transform: translateX(-50%);
}

.auth-shell__mini-bar span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.62;
}

.auth-shell__visual-card strong {
  color: #111113;
  font-size: 13px;
  font-weight: 950;
}

.auth-shell__mini-chart {
  height: 92px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px;
  border-radius: 18px;
  background: #111113;
}

.auth-shell__mini-chart span {
  width: 18px;
  border-radius: 99px 99px 5px 5px;
  background: #6c5dd3;
  animation: auth-chart-rise 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.auth-shell__mini-chart span:nth-child(2) { animation-delay: 0.08s; background: #ffffff; }
.auth-shell__mini-chart span:nth-child(3) { animation-delay: 0.16s; }
.auth-shell__mini-chart span:nth-child(4) { animation-delay: 0.24s; background: #ffffff; }
.auth-shell__mini-chart span:nth-child(5) { animation-delay: 0.32s; }

@keyframes auth-chart-rise {
  from { transform: scaleY(0.24); transform-origin: bottom; opacity: 0.4; }
  to { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
}

.auth-shell__visual-footer {
  position: relative;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-shell__visual-footer span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.76);
  font-size: 11px;
  font-weight: 850;
}

.auth-shell__panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  min-height: 100%;
  padding: 42px;
  background: rgba(255,255,255,0.98);
}

.auth-shell__topbar,
.auth-shell__panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.auth-shell__brand,
.auth-shell__switch,
.auth-shell__panel-footer button,
.auth-form-card__meta button,
.auth-form-card__footer button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.auth-shell__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #111113;
  font-size: 17px;
  font-weight: 950;
}

.auth-shell__brand span {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #111113;
  color: #fff;
}

.auth-shell__switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  color: #4f5564;
  font-size: 12px;
  font-weight: 850;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.auth-shell__switch:hover {
  background: #f3f2ff;
  color: #6c5dd3;
  transform: translateY(-1px);
}

.auth-shell__form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 38px 0;
}

.auth-form-card {
  width: min(390px, 100%);
  animation: auth-form-enter 0.6s 0.08s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes auth-form-enter {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-form-card__header {
  margin-bottom: 26px;
}

.auth-form-card__header span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f3f2ff;
  color: #6c5dd3;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
}

.auth-form-card__header h2 {
  margin-top: 18px;
  color: #111113;
  font-size: 42px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.auth-form-card__header p {
  margin-top: 12px;
  color: #777d8c;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 650;
}

.auth-form--split {
  gap: 15px;
}

.auth-page--split .auth-field {
  position: relative;
  gap: 0;
}

.auth-page--split .auth-field label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.auth-page--split .auth-input-wrap {
  min-height: 48px;
  border: 1px solid #e4e5ea;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(17,17,19,0.02);
}

.auth-page--split .auth-input-wrap:hover {
  border-color: #cfd1d9;
}

.auth-page--split .auth-input-wrap:focus-within {
  border-color: #6c5dd3;
  box-shadow: 0 0 0 4px rgba(108,93,211,0.1);
}

.auth-page--split .auth-input-icon {
  margin-left: 18px;
}

.auth-page--split .auth-input-wrap input {
  min-width: 0;
  padding: 13px 16px 13px 12px;
  font-size: 13px;
  font-weight: 650;
}

.auth-page--split .auth-input-wrap--domain input {
  flex: 1 1 92px;
  min-width: 82px;
}

.auth-page--split .auth-domain-suffix {
  flex: 0 0 auto;
  max-width: none;
  overflow: hidden;
  padding-right: 18px;
  color: #6c5dd3;
  text-overflow: ellipsis;
  font-size: 11px;
}

.auth-page--split .auth-eye {
  margin-right: 8px;
  border-radius: 999px;
}

.auth-form-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 28px;
  margin-top: -2px;
  color: #7d8392;
  font-size: 11px;
  font-weight: 750;
}

.auth-form-card__meta button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #6c5dd3;
  font-weight: 900;
}

.auth-form-card__meta--rules {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-form-card__meta--rules span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.auth-rule--pass {
  color: #148f55;
}

.auth-rule--muted {
  color: #8a90a0;
}

.auth-form-card__meta button:hover,
.auth-form-card__footer button:hover,
.auth-shell__panel-footer button:hover {
  text-decoration: underline;
}

.auth-page--split .auth-field__hint {
  margin: 8px 0 0 18px;
  color: #858b98;
  font-size: 11px;
  font-weight: 750;
}

.auth-page--split .auth-submit {
  min-height: 50px;
  margin-top: 8px;
  border-radius: 999px;
  background: #111113;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(17,17,19,0.2);
  overflow: hidden;
}

.auth-page--split .auth-submit::before {
  content: '';
  width: 90px;
  height: 120%;
  position: absolute;
  top: -10%;
  left: -120px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.34), transparent);
  transform: skewX(-20deg);
  transition: left 0.65s ease;
}

.auth-page--split .auth-submit {
  position: relative;
}

.auth-page--split .auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(108,93,211,0.28);
}

.auth-page--split .auth-submit:hover::before {
  left: calc(100% + 40px);
}

.auth-page--split .auth-submit:disabled {
  opacity: 0.62;
  transform: none;
}

.auth-form-card__footer {
  margin-top: 22px;
  text-align: center;
}

.auth-form-card__footer p {
  color: #7d8392;
  font-size: 13px;
  font-weight: 700;
}

.auth-form-card__footer button {
  color: #6c5dd3;
  font-size: 13px;
  font-weight: 950;
}

.auth-form-card__footer .auth-card__terms {
  display: block;
  margin-top: 12px;
}

.auth-form-card--otp,
.auth-form-card--password {
  width: min(390px, 100%);
}

.auth-user-preview--split {
  margin: 0 0 18px;
  border-radius: 18px;
  background: #fafbfc;
}

.auth-page--split .auth-user-preview__avatar {
  background: #111113;
}

.auth-page--split .auth-user-preview__verified {
  border: 1px solid rgba(60,203,127,0.16);
}

.auth-steps-strip--split {
  justify-content: flex-start;
  margin: 8px 0 18px;
  padding: 0;
}

.auth-page--split .auth-step-dot span {
  background: #fff;
}

.auth-page--split .auth-step-dot--done span {
  background: #111113;
  border-color: #111113;
  color: #fff;
}

.auth-page--split .auth-step-dot--active span {
  background: #f3f2ff;
  border-color: #6c5dd3;
  color: #6c5dd3;
}

.auth-page--split .auth-step-line--done {
  background: #111113;
}

.auth-otp-hint--split {
  align-items: center;
  margin: 0 0 16px;
  border-radius: 18px;
  background: #f3f2ff;
  color: #6c5dd3;
}

.auth-otp-hint--split svg {
  flex-shrink: 0;
}

.auth-otp-hint--split span {
  color: #555b69;
  font-size: 12px;
  font-weight: 800;
}

.auth-otp-grid--split {
  gap: 8px;
  justify-content: space-between;
  margin: 2px 0 6px;
}

.auth-page--split .auth-otp-cell {
  width: 56px;
  height: 58px;
  border: 1px solid #e4e5ea;
  border-radius: 18px;
  background: #fff;
  color: #111113;
  font-size: 22px;
  font-weight: 950;
  box-shadow: 0 1px 0 rgba(17,17,19,0.02);
}

.auth-page--split .auth-otp-cell:focus {
  border-color: #6c5dd3;
  box-shadow: 0 0 0 4px rgba(108,93,211,0.1);
}

.auth-page--split .auth-resend-row {
  margin: 0 0 4px;
}

.auth-page--split .auth-resend-wait,
.auth-page--split .auth-resend {
  font-size: 12px;
  font-weight: 850;
}

.pwd-strength--split {
  margin: 0 0 2px;
  padding: 14px 16px;
  border: 1px solid #e8e9ee;
  border-radius: 18px;
  background: #fafbfc;
}

.pwd-strength--split .pwd-strength__bar {
  height: 5px;
  background: #eceef3;
}

.pwd-strength--split .pwd-strength__rules {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.pwd-strength--split .pwd-strength__rules li {
  font-size: 11px;
  font-weight: 800;
}

.auth-shell__panel-footer {
  color: #777d8c;
  font-size: 11px;
  font-weight: 750;
}

.auth-shell__panel-footer button {
  color: #25272f;
  font-size: 11px;
  font-weight: 850;
}

@media (max-width: 980px) {
  .auth-page--split {
    padding: 18px;
  }

  .auth-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .auth-shell__visual {
    min-height: 300px;
    padding: 30px;
  }

  .auth-shell__visual-content {
    padding-bottom: 74px;
  }

  .auth-shell__visual-content h1 {
    max-width: 520px;
    font-size: 44px;
  }

  .auth-shell__visual-card {
    width: 130px;
    height: 178px;
    right: 28px;
    left: auto;
    bottom: 28px;
    border-radius: 24px;
  }

  .auth-shell__mini-chart {
    height: 68px;
    gap: 5px;
    padding: 8px;
  }

  .auth-shell__mini-chart span {
    width: 12px;
  }

  .auth-shell__panel {
    padding: 28px;
  }

  .auth-shell__form-wrap {
    padding: 30px 0;
  }
}

@media (max-width: 620px) {
  .auth-page--split {
    align-items: flex-start;
    padding: 10px;
  }

  .auth-shell {
    border-radius: 24px;
  }

  .auth-shell__visual {
    min-height: 214px;
    padding: 22px;
  }

  .auth-shell__visual-content {
    padding-bottom: 0;
  }

  .auth-shell__visual-content h1 {
    max-width: 260px;
    font-size: 34px;
  }

  .auth-shell__visual-content p {
    max-width: 300px;
    margin-top: 12px;
    font-size: 13px;
  }

  .auth-shell__visual-copy,
  .auth-shell__visual-footer,
  .auth-shell__visual-card,
  .auth-shell__rings {
    display: none;
  }

  .auth-shell__panel {
    padding: 20px 16px 18px;
  }

  .auth-shell__topbar {
    gap: 10px;
  }

  .auth-shell__brand {
    font-size: 15px;
  }

  .auth-shell__brand span {
    width: 32px;
    height: 32px;
  }

  .auth-shell__switch {
    min-height: 34px;
    padding: 0 9px;
    font-size: 11px;
  }

  .auth-form-card__header {
    margin-bottom: 22px;
  }

  .auth-form-card__header h2 {
    font-size: 34px;
  }

  .auth-form-card__header p {
    font-size: 13px;
  }

  .auth-shell__form-wrap {
    padding: 24px 0;
  }

  .auth-page--split .auth-input-wrap {
    min-height: 46px;
  }

  .auth-page--split .auth-domain-suffix {
    max-width: 154px;
    font-size: 11px;
  }

  .auth-steps-strip--split {
    justify-content: center;
  }

  .auth-step-line {
    width: 28px;
  }

  .auth-page--split .auth-otp-cell {
    width: 44px;
    height: 52px;
    border-radius: 15px;
    font-size: 19px;
  }

  .auth-otp-grid--split {
    gap: 6px;
  }

  .auth-form-card__meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-page--split *,
  .auth-page--split::before,
  .auth-page--split::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== ADMIN UPLOAD PAGE ===== */
.upload-stats {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px;
  margin-bottom: 22px;
}
.upload-stat {
  background: var(--surface-1); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 20px; display: flex; align-items: center;
  gap: 14px; box-shadow: var(--shadow-card);
}
.upload-stat svg { color: var(--accent-blue); }
.upload-stat__value { font-size: 22px; font-weight: 700; display: block; color: var(--text-primary); letter-spacing: -0.3px; }
.upload-stat__label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; font-weight: 600; }
.upload-section {
  background: var(--surface-1); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 22px; margin-bottom: 20px; box-shadow: var(--shadow-card);
}
.upload-section__header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px; flex-wrap: wrap; gap: 12px;
}
.upload-section__header h3 {
  font-size: 15px; font-weight: 600; color: var(--text-primary);
}
/* ===== USER MANAGEMENT — Professional Layout ===== */
.um-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.um-stat {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px;
  background: #fff; border-radius: var(--radius-md); border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card); transition: all 0.2s;
}
.um-stat:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.um-stat svg { color: var(--accent-blue); flex-shrink: 0; }
.um-stat--students svg { color: var(--accent-emerald); }
.um-stat--teachers svg { color: #6C5DD3; }
.um-stat--verified svg { color: var(--accent-emerald); }
.um-stat__val { display: block; font-size: 22px; font-weight: 800; color: var(--text-primary); letter-spacing: -0.5px; }
.um-stat__lbl { font-size: 11px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }

/* Tabs */
.um-tabs-bar {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  background: #fff; border-radius: var(--radius-md); border: 1px solid var(--card-border);
  padding: 6px 12px; box-shadow: var(--shadow-card);
}
.um-tabs { display: flex; gap: 4px; }
.um-tab {
  display: flex; align-items: center; gap: 8px; padding: 10px 18px;
  border: none; background: transparent; color: var(--text-muted); font-size: 13px; font-weight: 600;
  cursor: pointer; border-radius: 10px; transition: all 0.2s; font-family: inherit;
}
.um-tab:hover { color: var(--text-primary); background: var(--surface-2); }
.um-tab--active { background: var(--accent-blue); color: #fff; }
.um-tab--active:hover { background: var(--accent-blue); color: #fff; }
.um-tab__count {
  background: rgba(255,255,255,0.2); padding: 1px 8px; border-radius: 10px; font-size: 11px; font-weight: 700;
}
.um-tab:not(.um-tab--active) .um-tab__count { background: var(--surface-2); color: var(--text-muted); }
.um-tabs__actions { display: flex; gap: 8px; }

/* Dropzone (compact) */
.um-dropzone {
  display: flex; align-items: center; gap: 14px; padding: 16px 24px;
  border: 2px dashed var(--glass-border); border-radius: var(--radius-md);
  cursor: pointer; color: var(--text-muted); transition: all 0.3s; font-size: 13px;
}
.um-dropzone:hover, .um-dropzone--active {
  border-color: var(--accent-blue); background: var(--accent-blue-bg); color: var(--accent-blue);
}
.um-dropzone strong { color: var(--text-primary); }
.um-dropzone:hover strong, .um-dropzone--active strong { color: var(--accent-blue); }

/* Card List */
.um-list { display: flex; flex-direction: column; gap: 4px; }

/* User Card */
.um-card {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px;
  background: #fff; border-radius: var(--radius-md); border: 1px solid var(--card-border);
  transition: all 0.15s; position: relative;
}
.um-card:hover { border-color: var(--accent-blue); box-shadow: 0 2px 12px rgba(108,93,211,0.06); }
.um-card__avatar {
  width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; font-weight: 700; flex-shrink: 0; letter-spacing: 0.5px;
}
.um-card__info { flex: 1; min-width: 0; }
.um-card__name-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.um-card__name-row strong { font-size: 14px; color: var(--text-primary); }
.um-card__verified { color: #1DA1F2; display: flex; align-items: center; }
.um-card__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--text-muted); }
.um-card__meta span { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.um-card__status { flex-shrink: 0; }
.um-card__actions { position: relative; flex-shrink: 0; }
.um-card__menu-btn {
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  padding: 6px; border-radius: 8px; transition: 0.2s; display: flex;
}
.um-card__menu-btn:hover { background: var(--surface-2); color: var(--text-primary); }
.um-card__menu-backdrop { position: fixed; inset: 0; z-index: 9; }
.um-card__menu {
  position: absolute; right: 0; top: 100%; background: #fff; border: 1px solid var(--card-border);
  border-radius: 10px; box-shadow: var(--shadow-lg); z-index: 10; overflow: hidden; min-width: 140px;
}
.um-card__menu button {
  width: 100%; display: flex; align-items: center; gap: 8px; padding: 10px 16px;
  border: none; background: none; font-size: 13px; font-weight: 500; color: var(--accent-red);
  cursor: pointer; font-family: inherit; transition: 0.15s;
}
.um-card__menu button:hover { background: var(--accent-red-bg); }

/* Upload section styles (kept for preview) */
.upload-result {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  border-radius: var(--radius-sm); font-size: 12px; font-weight: 600;
}
.upload-result--success { background: var(--accent-emerald-bg); color: var(--accent-emerald); border: 1px solid rgba(60,203,127,0.12); }
.upload-result--error { background: var(--accent-red-bg); color: var(--accent-red); border: 1px solid rgba(229,83,61,0.12); }
.upload-preview {
  background: var(--surface-1); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-card);
}
.upload-preview__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; flex-wrap: wrap; gap: 10px; }
.upload-preview__header h3 { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.upload-preview__actions { display: flex; gap: 8px; }
.upload-preview__errors {
  display: flex; gap: 10px; padding: 12px; background: var(--accent-red-bg);
  border-radius: var(--radius-sm); margin-bottom: 14px; font-size: 12px; color: var(--accent-red);
  border: 1px solid rgba(229,83,61,0.12);
}
.upload-preview__errors p { margin: 2px 0; }
.upload-table-wrapper { overflow-x: auto; }
.upload-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.upload-table th {
  text-align: left; padding: 10px 14px; font-size: 11px; font-weight: 700;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px;
  border-bottom: 1px solid var(--glass-border); background: var(--surface-2);
}
.upload-table td { padding: 10px 14px; border-bottom: 1px solid var(--glass-border); color: var(--text-secondary); }
.upload-table tbody tr:hover { background: var(--accent-blue-light); }
.upload-table code {
  background: var(--surface-2); padding: 2px 8px; border-radius: 4px; font-size: 12px;
  font-weight: 600; color: var(--text-primary); border: 1px solid var(--glass-border);
}
.role-badge { display: inline-flex; padding: 3px 10px; border-radius: 10px; font-size: 11px; font-weight: 700; text-transform: capitalize; }
.role-badge--student { background: var(--accent-emerald-bg); color: var(--accent-emerald); }
.role-badge--teacher { background: var(--accent-blue-bg); color: var(--accent-blue); }
.role-badge--admin { background: var(--accent-purple-bg); color: var(--accent-purple); }

/* Verified badge */
.verified-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 10px; font-size: 11px; font-weight: 700; }
.verified-badge--yes { background: var(--accent-emerald-bg); color: var(--accent-emerald); border: 1px solid rgba(60,203,127,0.15); }
.verified-badge--no { background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--glass-border); }

/* Delete modal */
.modal--sm { max-width: 420px; }
.modal__header--danger h3 { color: var(--accent-red); display: flex; align-items: center; gap: 8px; }
.modal__body { padding: 0 24px 16px; }
.modal__body p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin: 0 0 12px; }
.delete-preview {
  display: flex; flex-direction: column; gap: 4px; padding: 12px 16px;
  background: var(--surface-2); border-radius: 10px; margin: 12px 0; border: 1px solid var(--glass-border);
}
.delete-preview strong { font-size: 13px; color: var(--text-primary); }
.delete-preview span { font-size: 11px; color: var(--text-muted); }
.delete-preview .role-badge { align-self: flex-start; margin-top: 4px; }
.delete-warning {
  font-size: 11px !important; color: var(--text-muted) !important;
  background: rgba(255,193,7,0.06); padding: 10px 12px; border-radius: 8px;
  border: 1px solid rgba(255,193,7,0.12); line-height: 1.5 !important;
}
.modal__actions { display: flex; gap: 8px; justify-content: flex-end; padding: 0 24px 20px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .um-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .um-stats { grid-template-columns: 1fr 1fr; }
  .um-tabs-bar { flex-direction: column; align-items: stretch; }
  .um-tabs__actions { justify-content: flex-end; flex-wrap: wrap; }
  .um-card { flex-wrap: wrap; }
  .um-card__status { display: none; }
}
.pwd-strength { margin: -4px 0 8px; }
.pwd-strength__bar {
  height: 4px; background: var(--surface-2); border-radius: 4px; overflow: hidden;
  margin-bottom: 10px;
}
.pwd-strength__fill {
  height: 100%; border-radius: 4px; transition: width 0.3s ease, background 0.3s ease;
}
.pwd-strength__rules {
  list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px;
}
.pwd-strength__rules li {
  display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600;
  transition: color 0.2s;
}
.pwd-rule--pass { color: var(--accent-emerald); }
.pwd-rule--fail { color: var(--text-muted); }

/* ===== PASSWORD MATCH INDICATOR ===== */
.auth-match-icon {
  display: flex; align-items: center; padding: 0 8px; flex-shrink: 0;
}
.auth-match--yes { color: var(--accent-emerald); }
.auth-match--no { color: var(--accent-red); }

/* ===== VERIFIED BADGE IN USER PREVIEW ===== */
.auth-user-preview__verified {
  display: flex; align-items: center; gap: 4px; margin-left: auto;
  font-size: 11px; font-weight: 700; color: var(--accent-emerald);
  background: var(--accent-emerald-bg); padding: 4px 10px; border-radius: 8px;
}

/* ===== LOCK ICON VARIANT ===== */
.auth-card__logo-icon--lock {
  background: linear-gradient(135deg, var(--accent-emerald), #34d399);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .auth-page { padding: 12px; }
  .auth-card { padding: 22px 18px; border-radius: 18px; }
  .auth-otp-cell { width: 38px; height: 44px; font-size: 17px; }
  .upload-section__header { flex-direction: column; align-items: stretch; }
  .upload-section__actions { justify-content: flex-end; }
}
@media (max-width: 480px) {
  .auth-page { padding: 8px; }
  .auth-card { padding: 18px 14px; border-radius: 16px; }
  .auth-card__header h2 { font-size: 18px; }
  .auth-demo-strip { flex-direction: column; }
  .auth-otp-grid { gap: 5px; }
  .auth-otp-cell { width: 34px; height: 40px; font-size: 15px; }
  .auth-steps-strip { gap: 0; }
  .auth-step-line { width: 20px; }
}
.landing-page {
  min-height: 100vh;
  background: #ffffff;
  color: #101114;
}

.landing-nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 12px 10px 14px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 8px;
  background: rgba(255,255,255,0.88);
  box-shadow: 0 18px 48px rgba(9,12,20,0.12);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 210px;
  border: 0;
  background: transparent;
  color: #111113;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.landing-brand__mark {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 8px;
  background: #0d0d0f;
  color: #fff;
}

.landing-brand strong,
.landing-brand small {
  display: block;
}

.landing-brand strong {
  color: #111113;
  font-size: 17px;
  font-weight: 900;
}

.landing-brand small {
  margin-top: 1px;
  color: #6d7280;
  font-size: 12px;
  font-weight: 750;
}

.landing-nav__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

.landing-nav__links a {
  color: #4e5361;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.landing-nav__links a:hover {
  color: #101114;
}

.landing-nav__login,
.landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.landing-nav__login {
  min-width: 124px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  background: #0d0d0f;
  color: #fff;
  font-size: 13px;
}

.landing-hero {
  min-height: 88vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-position: center;
  background-size: cover;
}

.landing-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3,5,9,0.84) 0%, rgba(3,5,9,0.62) 42%, rgba(3,5,9,0.12) 100%),
    linear-gradient(0deg, rgba(3,5,9,0.34), rgba(3,5,9,0.08));
}

.landing-hero__content {
  width: min(1180px, calc(100% - 32px));
  position: relative;
  z-index: 1;
  margin: 0 auto;
  padding: 138px 0 74px;
  color: #fff;
}

.landing-eyebrow,
.landing-hero__facts span,
.landing-section-kicker,
.landing-band__head span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.landing-eyebrow {
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 8px;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.92);
}

.landing-hero h1 {
  max-width: 640px;
  margin: 22px 0 14px;
  color: #fff;
  font-size: 74px;
  line-height: 0.96;
  font-weight: 950;
}

.landing-hero p {
  max-width: 590px;
  color: rgba(255,255,255,0.82);
  font-size: 18px;
  line-height: 1.65;
  font-weight: 650;
}

.landing-hero__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.landing-btn {
  min-height: 54px;
  padding: 0 22px;
  border-radius: 8px;
  font-size: 14px;
}

.landing-btn--primary {
  background: #fff;
  color: #101114;
}

.landing-btn--secondary {
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.landing-hero__facts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.landing-hero__facts span {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.88);
  text-transform: none;
}

.landing-band,
.landing-split,
.landing-security {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.landing-band {
  padding: 72px 0 48px;
}

.landing-band__head {
  max-width: 760px;
  margin-bottom: 28px;
}

.landing-band__head span,
.landing-section-kicker {
  color: #6c5dd3;
}

.landing-band__head h2,
.landing-split h2 {
  margin-top: 8px;
  color: #111113;
  font-size: 36px;
  line-height: 1.12;
  font-weight: 950;
}

.landing-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.landing-feature {
  min-height: 220px;
  padding: 24px;
  border: 1px solid #e7e8ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15,18,28,0.06);
}

.landing-feature__icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #f3f2ff;
  color: #6c5dd3;
}

.landing-feature h3,
.landing-role h3,
.landing-security__item h3 {
  margin-top: 18px;
  color: #171922;
  font-size: 17px;
  font-weight: 950;
}

.landing-feature p,
.landing-role p,
.landing-split p,
.landing-security__item p {
  margin-top: 8px;
  color: #626876;
  font-size: 14px;
  line-height: 1.62;
  font-weight: 650;
}

.landing-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 42px;
  align-items: center;
  padding: 52px 0 68px;
}

.landing-role-list {
  display: grid;
  gap: 12px;
}

.landing-role {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid #e7e8ec;
  border-radius: 8px;
  background: #fafbfc;
}

.landing-role > span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #101114;
  color: #fff;
  font-size: 16px;
  font-weight: 950;
}

.landing-role h3 {
  margin-top: 0;
}

.landing-security {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0 0 70px;
}

.landing-security__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 20px;
  border: 1px solid #e7e8ec;
  border-radius: 8px;
  background: #101114;
  color: #fff;
}

.landing-security__item > svg {
  margin-top: 2px;
  color: #fff;
}

.landing-security__item h3 {
  margin-top: 0;
  color: #fff;
}

.landing-security__item p {
  color: rgba(255,255,255,0.7);
}

@media (max-width: 900px) {
  .landing-nav {
    min-height: 64px;
    top: 10px;
  }

  .landing-nav__links {
    display: none;
  }

  .landing-brand {
    min-width: 0;
  }

  .landing-brand__mark {
    width: 44px;
    height: 44px;
  }

  .landing-hero {
    min-height: 84vh;
    align-items: flex-end;
    background-position: 62% center;
  }

  .landing-hero__shade {
    background:
      linear-gradient(0deg, rgba(3,5,9,0.9) 0%, rgba(3,5,9,0.64) 60%, rgba(3,5,9,0.18) 100%);
  }

  .landing-hero__content {
    padding: 118px 0 42px;
  }

  .landing-hero h1 {
    max-width: 100%;
    font-size: 46px;
    line-height: 1;
  }

  .landing-hero p {
    max-width: 100%;
    font-size: 16px;
  }

  .landing-hero__actions,
  .landing-hero__facts {
    align-items: stretch;
    flex-direction: column;
  }

  .landing-btn,
  .landing-hero__facts span {
    width: 100%;
  }

  .landing-feature-grid,
  .landing-split,
  .landing-security {
    grid-template-columns: 1fr;
  }

  .landing-band {
    padding: 52px 0 34px;
  }

  .landing-band__head h2,
  .landing-split h2 {
    font-size: 28px;
  }

  .landing-split {
    gap: 24px;
    padding: 42px 0 52px;
  }

  .landing-security {
    padding-bottom: 48px;
  }
}

@media (max-width: 520px) {
  .landing-nav {
    width: calc(100% - 20px);
    padding: 8px;
  }

  .landing-brand small {
    display: none;
  }

  .landing-brand strong {
    font-size: 15px;
  }

  .landing-nav__login {
    min-width: 104px;
    min-height: 44px;
    padding: 0 13px;
  }

  .landing-hero {
    min-height: 82vh;
  }

  .landing-hero__content,
  .landing-band,
  .landing-split,
  .landing-security {
    width: calc(100% - 24px);
  }

  .landing-hero h1 {
    font-size: 40px;
  }

  .landing-feature,
  .landing-role,
  .landing-security__item {
    padding: 16px;
  }
}
/* ===================================================================
   ROLE-BASED DASHBOARDS — Prava Design System
   =================================================================== */

.dash { display: flex; flex-direction: column; gap: 24px; }

/* ===== WELCOME BANNER ===== */
.dash__welcome {
  border-radius: var(--radius-xl); padding: 36px 40px;
  display: flex; justify-content: space-between; align-items: center;
  position: relative; overflow: hidden;
  color: var(--text-primary);
  background: #FFFFFF; border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
}
.dash__welcome--admin { border-left: 4px solid var(--accent-blue); }
.dash__welcome--teacher { border-left: 4px solid var(--accent-blue); }
.dash__welcome--student { border-left: 4px solid var(--accent-green); }
.dash__welcome::before {
  content: ''; position: absolute; top: -40%; right: -15%;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(91,140,255,0.04), transparent 70%);
  pointer-events: none;
}
.dash__welcome-left { position: relative; z-index: 1; }
.dash__welcome-badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 14px;
  background: var(--accent-blue-bg); color: var(--accent-blue);
  letter-spacing: 0.2px;
}
.dash__welcome h2 {
  font-size: 28px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 6px;
}
.dash__welcome p { font-size: 14px; color: var(--text-secondary); font-weight: 400; line-height: 1.4; }

.dash__welcome-metrics {
  display: flex; align-items: center; gap: 28px; position: relative; z-index: 1;
}
.dash__metric { text-align: center; }
.dash__metric-val {
  display: block; font-size: 28px; font-weight: 700; color: var(--text-primary);
  letter-spacing: -0.5px;
}
.dash__metric-lbl {
  font-size: 11px; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.2px; font-weight: 500; margin-top: 4px;
}
.dash__metric-divider { width: 1px; height: 40px; background: var(--glass-border); }

/* ===== STAT CARDS ===== */
.dash__stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.dash__stat {
  background: #fff; border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
  padding: 22px; display: flex; flex-direction: column; align-items: center; gap: 10px;
  cursor: pointer; transition: all 0.3s ease; position: relative; text-align: center;
  box-shadow: var(--shadow-card);
}
.dash__stat:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg);
  border-color: rgba(91, 140, 255, 0.15);
}
.dash__stat-icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-blue-bg); color: var(--accent-blue);
  transition: all 0.3s;
}
.dash__stat:hover .dash__stat-icon {
  background: var(--accent-blue); color: #fff;
  box-shadow: 0 4px 14px rgba(91, 140, 255, 0.3);
}
.dash__stat-val {
  font-size: 22px; font-weight: 700; color: var(--text-primary); line-height: 1;
  letter-spacing: -0.3px;
}
.dash__stat-lbl { font-size: 11px; color: var(--text-muted); font-weight: 500; letter-spacing: 0.2px; }
.dash__stat-arrow {
  position: absolute; top: 12px; right: 12px; color: var(--text-muted);
  opacity: 0; transition: all 0.2s;
}
.dash__stat:hover .dash__stat-arrow { opacity: 1; color: var(--accent-blue); transform: translate(2px, -2px); }

/* ===== QUICK ACTIONS ===== */
.dash__section { margin-bottom: 0; }
.dash__section-title {
  font-size: 12px; font-weight: 500; color: var(--text-secondary);
  letter-spacing: 0.2px; margin-bottom: 14px;
}
.dash__actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.dash__action {
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 14px;
  background: #fff; border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
  cursor: pointer; transition: all 0.25s ease;
  color: var(--text-secondary); font-size: 12px; font-weight: 500; box-shadow: var(--shadow-card);
  text-align: center;
}
.dash__action:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-lg);
  border-color: rgba(91, 140, 255, 0.12); color: var(--accent-blue);
}
.dash__action-icon {
  width: 44px; height: 44px; border-radius: 14px;
  background: var(--surface-2); display: flex; align-items: center; justify-content: center;
  transition: all 0.25s; color: var(--text-primary);
}
.dash__action:hover .dash__action-icon {
  background: var(--accent-blue-bg); color: var(--accent-blue); transform: scale(1.05);
}

/* ===== INFO CARDS ===== */
.dash__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.dash__card {
  background: #fff; border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-card);
  transition: all 0.25s ease;
}
.dash__card:hover { box-shadow: var(--shadow-lg); border-color: rgba(91, 140, 255, 0.1); }
.dash__card-title {
  font-size: 14px; font-weight: 600; color: var(--text-primary);
  display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
  padding-bottom: 14px; border-bottom: 1px solid var(--glass-border);
}

/* Lists */
.dash__list { display: flex; flex-direction: column; gap: 6px; }
.dash__list-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border-radius: var(--radius-sm); cursor: pointer; transition: all 0.2s;
}
.dash__list-item:hover { background: var(--surface-2); }
.dash__list-content { flex: 1; min-width: 0; }
.dash__list-title {
  font-size: 14px; font-weight: 500; display: block; color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dash__list-meta { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.dash__dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.dash__dot--academic { background: var(--accent-blue); }
.dash__dot--event { background: var(--accent-purple); }
.dash__dot--urgent { background: var(--accent-red); }
.dash__dot--general { background: var(--accent-green); }
.dash__time {
  font-size: 12px; font-weight: 600; color: var(--accent-blue);
  background: var(--accent-blue-bg); padding: 3px 10px; border-radius: 8px;
  flex-shrink: 0; font-variant-numeric: tabular-nums;
}
.dash__rating { font-size: 12px; flex-shrink: 0; color: var(--accent-gold); }
.dash__priority { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dash__priority--critical { background: var(--accent-red); }
.dash__priority--high { background: var(--accent-orange); }
.dash__priority--medium { background: var(--accent-gold); }
.dash__priority--low { background: var(--text-muted); }

/* Progress bars */
.dash__progress-group { display: flex; flex-direction: column; gap: 16px; }
.dash__progress-row {}
.dash__progress-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px; font-size: 12px; color: var(--text-secondary); font-weight: 500;
}
.dash__progress-bar { height: 6px; background: var(--surface-2); border-radius: 10px; overflow: hidden; }
.dash__progress-fill {
  height: 100%; border-radius: 10px; transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--accent-blue);
}

/* Skills chips */
.dash__skills-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.dash__skill-chip {
  display: flex; align-items: center; gap: 6px; padding: 6px 14px;
  border-radius: 20px; font-size: 12px; font-weight: 500; border: 1px solid var(--glass-border);
  background: #fff; color: var(--text-primary); transition: all 0.2s;
}
.dash__skill-chip:hover { border-color: var(--accent-blue); color: var(--accent-blue); }
.dash__skill-chip--beginner { border-left: 3px solid var(--accent-orange); }
.dash__skill-chip--intermediate { border-left: 3px solid var(--accent-blue); }
.dash__skill-chip--advanced { border-left: 3px solid var(--accent-green); }
.dash__skill-name { color: inherit; }
.dash__skill-level { font-size: 11px; font-weight: 500; color: var(--text-muted); margin-left: 2px; }

.dash__empty { font-size: 12px; color: var(--text-muted); text-align: center; padding: 24px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .dash__welcome { flex-direction: column; align-items: flex-start; gap: 20px; padding: 28px 24px; }
  .dash__welcome h2 { font-size: 22px; }
  .dash__welcome-metrics { width: 100%; justify-content: space-around; flex-wrap: wrap; gap: 16px; }
  .dash__stats { grid-template-columns: repeat(2, 1fr); }
  .dash__actions { grid-template-columns: repeat(2, 1fr); }
  .dash__grid { grid-template-columns: 1fr; }
}

/* ===================================================================
   FOXSTOCKS PREMIUM DASHBOARD STYLES
   =================================================================== */
.dash-fox { display: flex; flex-direction: column; gap: 24px; padding-bottom: 24px; }
.dash-fox__header { margin-bottom: -8px; }
.dash-fox__header h2 { font-size: 24px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.5px; }

.dash-fox__subtitle { font-size: 14px; font-weight: 600; color: var(--text-secondary); margin-bottom: 16px; }

.dash-fox__top-cards {
  display: flex; gap: 16px; overflow-x: auto; padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}
.dash-fox__top-cards::-webkit-scrollbar { height: 6px; }
.dash-fox__top-cards::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 10px; }
.dash-fox__top-cards::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.2); }

.fox-minicard {
  min-width: 190px; padding: 18px; border-radius: 20px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03); flex-shrink: 0;
  transition: transform 0.2s;
}
.fox-minicard:hover { transform: translateY(-3px); }
.fox-minicard__top { display: flex; justify-content: space-between; align-items: center; }
.fox-minicard__icon {
  width: 28px; height: 28px; border-radius: 8px; background: rgba(255,255,255,0.4);
  display: flex; align-items: center; justify-content: center;
}
.fox-minicard__code { font-size: 12px; font-weight: 700; color: rgba(0,0,0,0.6); }
.fox-minicard__mid { display: flex; justify-content: space-between; align-items: flex-end; }
.fox-minicard__lbl { font-size: 11px; font-weight: 600; color: rgba(0,0,0,0.5); display: block; margin-bottom: 4px; }
.fox-minicard__val { font-size: 24px; font-weight: 800; color: #111; line-height: 1; letter-spacing: -1px; }
.fox-minicard__chart { width: 70px; height: 40px; }
.fox-minicard__bot { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 600; color: #333; }

.dash-fox__row { display: flex; gap: 24px; flex-wrap: wrap; }
.dash-fox__col { display: flex; flex-direction: column; min-width: 0; }
.dash-fox__col--sm { flex: 1; min-width: 260px; }
.dash-fox__col--md { flex: 1.2; min-width: 280px; }
.dash-fox__col--lg { flex: 2; min-width: 400px; }

.fox-balance-card {
  padding: 24px; border-radius: 24px; display: flex; justify-content: space-between; align-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06); color: #fff;
}
.fox-balance-card--purple { background: var(--accent-blue); }
.fox-balance-card--black { background: #242731; }

.fox-bal-lbl { font-size: 13px; font-weight: 500; opacity: 0.8; display: block; margin-bottom: 6px; }
.fox-bal-val { font-size: 28px; font-weight: 700; letter-spacing: -1px; }
.fox-bal-badge { background: rgba(255,255,255,0.2); padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.fox-bal-btn { background: rgba(255,255,255,0.1); border: none; color: #fff; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s; }
.fox-bal-btn:hover { background: rgba(255,255,255,0.2); }

.dash-fox__quick-info { margin-top: 16px; padding: 16px 20px; background: #fff; border-radius: 20px; border: 1px solid var(--glass-border); }
.fox-qi-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.fox-qi-lbl { color: var(--text-secondary); font-weight: 500; }

.fox-panel {
  background: #fff; border-radius: 24px; padding: 24px;
  border: 1px solid var(--glass-border); box-shadow: var(--shadow-card);
}
.fox-panel h3 { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.fox-panel__head { display: flex; justify-content: space-between; align-items: center; }

.fox-tabs { display: flex; gap: 6px; background: var(--surface-2); padding: 4px; border-radius: 12px; }
.fox-tab { padding: 6px 14px; font-size: 12px; font-weight: 600; color: var(--text-secondary); border-radius: 8px; cursor: pointer; transition: 0.2s; }
.fox-tab.active { background: #fff; color: var(--accent-blue); box-shadow: 0 2px 8px rgba(0,0,0,0.05); }

.fox-list { display: flex; flex-direction: column; }
.fox-list-item { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--glass-border); }
.fox-list-item:last-child { border-bottom: none; padding-bottom: 0; }
.fox-list-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fox-list-info { flex: 1; min-width: 0; }
.fox-list-info h4 { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fox-list-info span { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.fox-list-val { font-size: 13px; font-weight: 600; text-align: right; }

/* Mobile Fox adjustments */
@media (max-width: 768px) {
  .dash-fox__row { flex-direction: column; gap: 16px; }
  .dash-fox__col { min-width: 100%; }
  .fox-minicard { min-width: 160px; }
  .fox-balance-card { flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px; }
  .fox-bal-btn { align-self: stretch; width: 100%; }
}

@media (max-width: 480px) {
  .dash__welcome { padding: 20px 16px; }
  .dash__welcome h2 { font-size: 20px; }
  .dash__welcome-metrics { flex-direction: column; align-items: stretch; gap: 12px; }
  .dash__metric-divider { display: none; }
  .dash__metric { display: flex; justify-content: space-between; align-items: center; background: var(--surface-2); padding: 12px; border-radius: 12px; }
  .dash__metric-val { font-size: 20px; }
  .dash__stats { grid-template-columns: 1fr; }
  .dash__actions { grid-template-columns: repeat(2, 1fr); }
  .dash-fox__top-cards { padding-bottom: 8px; }
  .fox-minicard { min-width: 140px; padding: 14px; }
  .fox-minicard__val { font-size: 20px; }
  .fox-panel { padding: 16px; }
  .fox-panel__head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .fox-tabs { width: 100%; justify-content: space-between; overflow-x: auto; }
  .fox-tab { flex: 1; text-align: center; }
  .dash__welcome::before { display: none; }
}
/* ═══════════════════════════════════════════════════
   DEPARTMENTS PAGE — Premium Course Catalog with Cards
═══════════════════════════════════════════════════ */

/* ─── Hero ─── */
.dp-hero {
  position: relative; border-radius: var(--radius-xl); overflow: hidden;
  background: #FFFFFF; border: 1px solid var(--glass-border); padding: 32px 36px; color: var(--text-primary);
  box-shadow: var(--shadow-card);
}
.dp-hero__bg { position: absolute; inset: 0; pointer-events: none; }
.dp-hero__orb {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.25;
}
.dp-hero__orb--1 { width: 300px; height: 300px; top: -100px; right: -50px; background: #3b6cf5; animation: floatOrb 8s ease-in-out infinite; }
.dp-hero__orb--2 { width: 200px; height: 200px; bottom: -80px; left: -40px; background: #6c52e8; animation: floatOrb 10s ease-in-out infinite reverse; }
.dp-hero__orb--3 { width: 160px; height: 160px; top: 20px; right: 30%; background: #c49520; animation: floatOrb 12s ease-in-out infinite; }
@keyframes floatOrb {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

.dp-hero__content { position: relative; z-index: 2; }
.dp-hero__text h2 {
  font-size: 28px; font-weight: 900; display: flex; align-items: center; gap: 12px;
  letter-spacing: -0.5px; margin-bottom: 4px;
}
.dp-hero__text p { color: var(--text-secondary); font-size: 14px; margin-bottom: 20px; }

.dp-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.dp-hero__search {
  display: flex; align-items: center; gap: 10px; padding: 10px 18px;
  background: var(--surface-2); border: 1px solid var(--glass-border);
  border-radius: 24px; min-width: 260px;
}
.dp-hero__search input {
  background: none; border: none; color: var(--text-primary); font-size: 13px; outline: none;
  font-family: inherit; width: 100%;
}
.dp-hero__search input::placeholder { color: var(--text-muted); }
.dp-hero__search svg { color: var(--text-muted); flex-shrink: 0; }

.dp-hero__stats {
  display: flex; gap: 16px; margin-top: 24px; position: relative; z-index: 2; flex-wrap: wrap;
}
.dp-hero__stat {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 20px; background: var(--surface-2); border: 1px solid var(--glass-border);
  border-radius: 12px; min-width: 100px;
}
.dp-hero__stat-val { font-size: 22px; font-weight: 900; color: var(--accent-blue); }
.dp-hero__stat-lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); }

/* ─── Filter Bar ─── */
.dp-filter-bar {
  background: var(--surface-1); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 14px 20px; box-shadow: var(--shadow-card);
}
.dp-filter-bar__filters {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-muted);
}
.dp-filter-bar__filters > svg { flex-shrink: 0; }

.dd-filter {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 16px; border-radius: 24px; border: 1px solid var(--glass-border);
  background: var(--bg-secondary); color: var(--text-secondary); font-size: 12px;
  font-weight: 600; cursor: pointer; font-family: inherit; transition: all 0.2s;
  white-space: nowrap;
}
.dd-filter:hover { border-color: rgba(59,108,245,0.2); color: var(--accent-blue); background: var(--accent-blue-light); }
.dd-filter--active {
  border-color: rgba(59,108,245,0.3); background: var(--accent-blue-bg);
  color: var(--accent-blue); font-weight: 700;
}
.dd-filter__emoji { font-size: 14px; }

/* ─── Section Headers (per category) ─── */
.dp-section {
  display: flex; flex-direction: column; gap: 16px;
}
.dp-section__header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 24px;
  background: var(--surface-1); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
}
.dp-section__header-left { display: flex; align-items: center; gap: 14px; }
.dp-section__icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.dp-section__title {
  font-size: 17px; font-weight: 800; color: var(--text-primary);
  display: flex; align-items: center; gap: 6px;
}
.dp-section__tagline {
  font-size: 12px; color: var(--text-muted); font-style: italic; margin-top: 2px;
}
.dp-section__count {
  font-size: 11px; font-weight: 800; padding: 5px 14px; border-radius: 14px;
  background: var(--accent-blue-bg); color: var(--accent-blue); flex-shrink: 0;
}

/* ─── Course Card Grid ─── */
.dp-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px;
}

.dp-card {
  background: var(--surface-1); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer;
  box-shadow: var(--shadow-card); position: relative;
}
.dp-card:hover {
  transform: translateY(-6px); box-shadow: 0 12px 40px rgba(30,41,70,0.12);
  border-color: rgba(59,108,245,0.15);
}
.dp-card--expanded {
  border-color: rgba(59,108,245,0.2); box-shadow: 0 8px 30px rgba(30,41,70,0.1);
}

/* Premium Card Header — 8 sophisticated light tones */
.dp-card__gradient {
  position: relative; padding: 28px 24px; color: var(--text-primary);
  display: flex; align-items: center; justify-content: space-between;
  min-height: 100px; overflow: hidden;
}
/* Premium palette — light, refined, clean */
.dp-card__gradient--1 { background: #F0F4FF; } /* Soft Blue */
.dp-card__gradient--2 { background: #F2F4F8; } /* Light Slate */
.dp-card__gradient--3 { background: #EEF2FF; } /* Pale Indigo */
.dp-card__gradient--4 { background: #EFFAF5; } /* Mint */
.dp-card__gradient--5 { background: #F6F0FF; } /* Lavender */
.dp-card__gradient--6 { background: #FFF8EE; } /* Warm Cream */
.dp-card__gradient--7 { background: #EEFAF3; } /* Soft Forest */
.dp-card__gradient--8 { background: #F0EEFF; } /* Pale Violet */

/* Subtle premium texture */
.dp-card__pattern {
  position: absolute; inset: 0; opacity: 0.06;
  background-image:
    radial-gradient(circle at 20% 40%, rgba(91,140,255,0.4) 1px, transparent 1px),
    radial-gradient(circle at 80% 60%, rgba(91,140,255,0.25) 1px, transparent 1px);
  background-size: 24px 24px;
}
/* Elegant accent line at bottom of header */
.dp-card__gradient::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg,
    rgba(91,140,255,0.2) 0%,
    rgba(143,169,255,0.15) 50%,
    rgba(60,203,127,0.2) 100%
  );
}

.dp-card__icon-wrap {
  width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0;
  background: rgba(91,140,255,0.08); border: 1px solid rgba(91,140,255,0.12);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(91,140,255,0.08);
}
.dp-card__emoji { font-size: 28px; line-height: 1; }
.dp-card__code {
  font-size: 20px; font-weight: 900; letter-spacing: 0.5px;
  color: var(--text-primary);
  text-align: right; max-width: 60%; line-height: 1.2;
}

/* Card Body */
.dp-card__body { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.dp-card__title {
  font-size: 15px; font-weight: 800; color: var(--text-primary);
  letter-spacing: -0.2px; line-height: 1.35;
}
.dp-card__info { display: flex; gap: 14px; font-size: 12px; color: var(--text-muted); font-weight: 500; }
.dp-card__info span { display: flex; align-items: center; gap: 5px; }

/* Footer */
.dp-card__footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--glass-border);
}
.dp-card__cat-badge {
  font-size: 10px; font-weight: 800; padding: 3px 10px; border-radius: 10px;
  letter-spacing: 0.2px;
}
.dp-card__expand-hint {
  display: flex; align-items: center; gap: 4px; font-size: 12px;
  font-weight: 700; color: var(--accent-blue); transition: all 0.2s;
}
.dp-card:hover .dp-card__expand-hint { gap: 6px; }
.dp-card__chev--open { transform: rotate(90deg); transition: transform 0.2s; }

/* Database-backed department management */
.dp-page-alert {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  border-radius: 12px; border: 1px solid rgba(229,83,61,0.18);
  background: var(--accent-red-bg); color: var(--accent-red);
  font-size: 13px; font-weight: 700;
}
.dp-empty-state { min-height: 260px; }
.dp-empty-state .btn { margin-top: 8px; }
.dp-managed-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 18px;
}
.dp-managed-card {
  background: var(--surface-1); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card);
  transition: all 0.25s;
}
.dp-managed-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(30,41,70,0.1); }
.dp-managed-card__body { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.dp-managed-card__course { color: var(--text-muted); font-size: 12px; font-weight: 600; margin-top: 3px; }
.dp-managed-card__meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px;
  padding: 12px; border-radius: 12px; background: var(--surface-2);
}
.dp-managed-card__meta span { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-secondary); font-weight: 600; min-width: 0; }
.dp-managed-card__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dp-editor-modal { width: min(980px, calc(100vw - 28px)); max-width: 980px !important; }
.dp-editor-body { max-height: 68vh; overflow-y: auto; }
.dp-form-error {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  border-radius: 10px; background: var(--accent-red-bg); color: var(--accent-red);
  font-size: 12px; font-weight: 700; margin-top: 12px;
}
.dp-section-inline-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dp-section-inline-head span { color: var(--text-muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.3px; }
.dp-editor-sems { padding: 0; }
.dp-subject-form {
  margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--surface-1);
  border: 1px dashed var(--glass-border); display: grid; grid-template-columns: 1fr 120px 110px minmax(260px, 1fr) auto;
  gap: 8px; align-items: center;
}
.dp-subject-types { grid-template-columns: repeat(4, 1fr); }
.dept-type-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 8px; font-size: 10px; font-weight: 800;
}

/* Expanded detail inside card */
.dp-card__detail {
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--glass-border);
  display: flex; flex-direction: column; gap: 8px;
  animation: dpDetailSlide 0.25s ease;
}
@keyframes dpDetailSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.dp-card__detail-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
}
.dp-card__detail-label { color: var(--text-muted); font-weight: 600; }
.dp-card__detail-value { color: var(--text-primary); font-weight: 700; }
.dp-card__detail-value--accent { color: var(--accent-gold); font-weight: 800; }
.dp-card__detail-cat {
  padding: 2px 10px; border-radius: 8px; font-size: 11px; font-weight: 700;
}


/* ═══════════════════════════════════════════════════
   DEPARTMENT DETAIL PAGE (kept for navigation)
═══════════════════════════════════════════════════ */

/* ─── Back button ─── */
.dd-back {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface-1); border: 1px solid var(--glass-border);
  padding: 8px 18px; border-radius: 10px; font-size: 13px; font-weight: 600;
  color: var(--text-secondary); cursor: pointer; font-family: inherit;
  transition: all 0.2s; box-shadow: var(--shadow-card);
}
.dd-back:hover { color: var(--accent-blue); border-color: var(--accent-blue); background: var(--accent-blue-light); }

/* ─── Hero ─── */
.dd-hero {
  position: relative; border-radius: var(--radius-xl); overflow: hidden;
  background: #FFFFFF; border: 1px solid var(--glass-border); padding: 36px 40px; color: var(--text-primary);
  box-shadow: var(--shadow-card);
}
.dd-hero__bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.dd-hero__mesh {
  position: absolute; inset: 0; opacity: 0.06;
  background-image:
    linear-gradient(rgba(91,140,255,0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91,140,255,0.15) 1px, transparent 1px);
  background-size: 40px 40px;
}
.dd-hero__glow {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.08;
}
.dd-hero__glow--1 { width: 350px; height: 350px; top: -120px; right: -80px; background: var(--accent-blue); animation: floatOrb 10s ease-in-out infinite; }
.dd-hero__glow--2 { width: 250px; height: 250px; bottom: -100px; left: -60px; background: var(--accent-light-blue); animation: floatOrb 8s ease-in-out infinite reverse; }

.dd-hero__content { position: relative; z-index: 2; margin-bottom: 24px; }
.dd-hero__badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 20px; font-size: 12px; font-weight: 800;
  background: var(--accent-blue-bg); border: 1px solid rgba(91,140,255,0.12);
  color: var(--accent-blue); letter-spacing: 0.5px; margin-bottom: 12px;
}
.dd-hero__title {
  font-size: 32px; font-weight: 900; letter-spacing: -0.5px; margin-bottom: 4px;
  line-height: 1.2;
}
.dd-hero__course { font-size: 15px; color: var(--text-secondary); margin-bottom: 16px; }
.dd-hero__meta { display: flex; gap: 20px; flex-wrap: wrap; }
.dd-hero__meta-item {
  display: flex; align-items: center; gap: 6px; font-size: 13px;
  color: var(--text-secondary); font-weight: 500;
}

.dd-hero__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  position: relative; z-index: 2;
}
.dd-hero__stat-card {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 16px 12px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--glass-border);
  text-align: center;
}
.dd-hero__stat-card svg { color: var(--accent-blue); }
.dd-hero__stat-val { font-size: 22px; font-weight: 900; color: var(--text-primary); }
.dd-hero__stat-lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-muted); }


/* ─── Responsive ─── */
@media (max-width: 768px) {
  .dp-hero { padding: 24px 20px; }
  .dp-hero__text h2 { font-size: 22px; }
  .dp-hero__search { min-width: 200px; }
  .dp-hero__stats { flex-direction: column; gap: 8px; }
  .dp-hero__stat { min-width: auto; flex: 1; }
  .dp-hero__actions { flex-direction: column; }
  .dp-grid { grid-template-columns: 1fr; }

  .dp-filter-bar__filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .dp-filter-bar__filters::-webkit-scrollbar { display: none; }

  .dp-section__header { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 18px; }
  .dp-managed-card__meta { grid-template-columns: 1fr; }
  .dp-subject-form { grid-template-columns: 1fr 1fr; }
  .dp-subject-types { grid-column: 1 / -1; }

  .dd-hero { padding: 24px 20px; }
  .dd-hero__title { font-size: 24px; }
  .dd-hero__stats { grid-template-columns: repeat(2, 1fr); }
  .dd-hero__meta { flex-direction: column; gap: 8px; }
}

@media (max-width: 480px) {
  .dp-hero { padding: 20px 16px; }
  .dp-hero__text h2 { font-size: 20px; flex-wrap: wrap; }
  .dp-hero__search { width: 100%; min-width: 100%; }
  .dp-card__code { font-size: 16px; text-align: left; }
  .dp-card__gradient { flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px 16px; }
  .dp-card__icon-wrap { width: 44px; height: 44px; }
  .dp-subject-form { grid-template-columns: 1fr; }
  .dp-managed-card__actions .btn { flex: 1; justify-content: center; }
  .dd-hero { padding: 20px 16px; }
  .dd-hero__stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .dd-hero__title { font-size: 20px; }
  .dp-section__header { padding: 12px 16px; }
  .dp-section__title { font-size: 15px; }
}
/* ═══════════════════════════════════════════════════
   COURSE DETAIL PAGE — Premium Academic View
═══════════════════════════════════════════════════ */

.cd-page { display: flex; flex-direction: column; gap: 20px; }

/* ─── Back ─── */
.cd-back {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  background: var(--surface-1); border: 1px solid var(--glass-border);
  padding: 8px 20px; border-radius: 10px; font-size: 13px; font-weight: 600;
  color: var(--text-secondary); cursor: pointer; font-family: inherit;
  transition: all 0.2s; box-shadow: var(--shadow-card);
}
.cd-back:hover { color: var(--accent-blue); border-color: var(--accent-blue); background: var(--accent-blue-light); }

/* ─── Hero ─── */
.cd-hero {
  position: relative; border-radius: var(--radius-xl); overflow: hidden;
  background: #FFFFFF; border: 1px solid var(--glass-border); padding: 40px 44px; color: var(--text-primary);
  box-shadow: var(--shadow-card);
}
.cd-hero__bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.cd-hero__mesh {
  position: absolute; inset: 0; opacity: 0.04;
  background-image:
    linear-gradient(rgba(91,140,255,0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91,140,255,0.2) 1px, transparent 1px);
  background-size: 50px 50px;
}
.cd-hero__glow { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.06; }
.cd-hero__glow--1 { width: 400px; height: 400px; top: -150px; right: -100px; background: var(--accent-blue); animation: floatOrb 10s ease-in-out infinite; }
.cd-hero__glow--2 { width: 300px; height: 300px; bottom: -120px; left: -80px; background: var(--accent-light-blue); animation: floatOrb 8s ease-in-out infinite reverse; }

.cd-hero__content { position: relative; z-index: 2; margin-bottom: 28px; }
.cd-hero__top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.cd-hero__emoji { font-size: 40px; }
.cd-hero__badges { display: flex; gap: 8px; flex-wrap: wrap; }
.cd-hero__badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 14px; border-radius: 20px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.3px;
}
.cd-hero__badge--acc { background: var(--accent-blue-bg); color: var(--accent-blue); border: 1px solid rgba(91,140,255,0.15); }

.cd-hero__title { font-size: 32px; font-weight: 900; letter-spacing: -0.5px; line-height: 1.2; margin-bottom: 4px; }
.cd-hero__abbr { font-size: 16px; font-weight: 800; color: var(--accent-blue); margin-bottom: 12px; letter-spacing: 0.5px; }
.cd-hero__desc { font-size: 14px; color: var(--text-secondary); line-height: 1.6; max-width: 700px; }

.cd-hero__stats {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
  position: relative; z-index: 2;
}
.cd-hero__stat {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 16px 10px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--glass-border);
  text-align: center; transition: all 0.2s;
}
.cd-hero__stat:hover { background: var(--accent-blue-bg); border-color: rgba(91,140,255,0.12); }
.cd-hero__stat svg { color: var(--accent-blue); }
.cd-hero__stat-val { font-size: 15px; font-weight: 900; color: var(--text-primary); }
.cd-hero__stat-lbl { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-muted); }

/* ─── Tabs ─── */
.cd-tabs {
  display: flex; gap: 4px; background: var(--surface-1); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 6px; box-shadow: var(--shadow-card);
}
.cd-tab {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 22px; border-radius: 10px; border: none;
  background: transparent; color: var(--text-muted); font-size: 13px;
  font-weight: 600; cursor: pointer; font-family: inherit; transition: all 0.2s;
  flex: 1; justify-content: center;
}
.cd-tab:hover { color: var(--text-primary); background: var(--surface-2); }
.cd-tab--active {
  background: var(--accent-blue-bg); color: var(--accent-blue); font-weight: 700;
  box-shadow: 0 2px 8px rgba(59,108,245,0.08);
}

/* ─── Content Area ─── */
.cd-content { display: flex; flex-direction: column; gap: 18px; }
.cd-overview, .cd-curriculum, .cd-faculty-section, .cd-careers-section {
  display: flex; flex-direction: column; gap: 18px;
}

/* ─── Cards ─── */
.cd-card {
  background: var(--surface-1); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card);
}
.cd-card__head {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 24px; border-bottom: 1px solid var(--glass-border);
}
.cd-card__head-icon { color: var(--accent-blue); flex-shrink: 0; }
.cd-card__head h3 { font-size: 16px; font-weight: 800; color: var(--text-primary); flex: 1; }
.cd-card__head-badge {
  font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 12px;
  background: var(--accent-blue-bg); color: var(--accent-blue); flex-shrink: 0;
}
.cd-card__body { padding: 22px 24px; }
.cd-card__body--flush { padding: 0; }

/* ─── Eligibility ─── */
.cd-elig {
  font-size: 14px; color: var(--text-secondary); line-height: 1.7;
  padding: 16px 20px; background: var(--surface-2); border-radius: var(--radius-md);
  border-left: 3px solid var(--accent-blue);
}

/* ─── Highlights ─── */
.cd-highlights { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.cd-highlight {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: var(--radius-md);
  background: var(--surface-2); border: 1px solid var(--glass-border);
  font-size: 13px; font-weight: 600; color: var(--text-primary); transition: all 0.2s;
}
.cd-highlight:hover { border-color: rgba(59,108,245,0.15); transform: translateX(4px); }
.cd-highlight__icon {
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
  background: var(--accent-blue-bg); color: var(--accent-blue);
  display: flex; align-items: center; justify-content: center;
}

/* ─── Info Grid ─── */
.cd-info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.cd-info-item {
  padding: 16px 18px; border-radius: var(--radius-md);
  background: var(--surface-2); border: 1px solid var(--glass-border);
}
.cd-info-item__label { display: block; font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.cd-info-item__value { font-size: 15px; font-weight: 800; color: var(--text-primary); }
.cd-info-item__value--gold { color: #c49520; }

/* ─── Semesters ─── */
.cd-semesters { display: flex; flex-direction: column; }
.cd-sem { border-bottom: 1px solid var(--glass-border); }
.cd-sem:last-child { border-bottom: none; }
.cd-sem__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; cursor: pointer; border: none; background: none;
  width: 100%; font-family: inherit; transition: all 0.15s;
}
.cd-sem__head:hover { background: var(--surface-2); }
.cd-sem--open .cd-sem__head { background: var(--accent-blue-light); }
.cd-sem__left { display: flex; align-items: center; gap: 10px; color: var(--text-primary); font-weight: 700; font-size: 14px; }
.cd-sem__left svg { color: var(--accent-blue); }
.cd-sem__num { font-weight: 800; }
.cd-sem__right { display: flex; align-items: center; gap: 12px; }
.cd-sem__meta { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.cd-sem__chev { color: var(--text-muted); transition: transform 0.2s; }
.cd-sem__chev--open { transform: rotate(180deg); }

.cd-sem__body { padding: 0 24px 20px; animation: dpDetailSlide 0.2s ease; }

/* Subject Table */
.cd-sub-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cd-sub-table thead { background: var(--surface-2); }
.cd-sub-table th {
  text-align: left; padding: 10px 14px; font-size: 11px; font-weight: 700;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px;
}
.cd-sub-table td { padding: 12px 14px; border-bottom: 1px solid var(--glass-border); }
.cd-sub-table tr:last-child td { border-bottom: none; }
.cd-sub-table tr:hover td { background: var(--surface-2); }
.cd-sub-table__name { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text-primary); }
.cd-sub-code { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 4px; background: var(--surface-2); color: var(--text-secondary); }
.cd-sub-credits { font-weight: 800; color: var(--text-primary); }
.cd-sub-type { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 8px; }

.cd-sem-note {
  display: flex; align-items: center; gap: 10px; padding: 16px 24px;
  font-size: 13px; color: var(--text-muted); font-style: italic; font-weight: 500;
  background: var(--surface-2);
}

/* ─── Faculty Grid ─── */
.cd-faculty-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.cd-faculty {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 22px; border-radius: var(--radius-md);
  background: var(--surface-2); border: 1px solid var(--glass-border);
  transition: all 0.2s;
}
.cd-faculty:hover { border-color: rgba(59,108,245,0.15); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.04); }
.cd-faculty__avatar {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  background: var(--accent-blue-bg); color: var(--accent-blue); font-size: 20px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(91,140,255,0.08);
}
.cd-faculty__info { display: flex; flex-direction: column; gap: 3px; }
.cd-faculty__name { font-size: 14px; font-weight: 800; color: var(--text-primary); }
.cd-faculty__desig { font-size: 12px; font-weight: 600; color: var(--accent-blue); }
.cd-faculty__spec { font-size: 11px; color: var(--text-muted); font-weight: 500; display: flex; align-items: center; gap: 5px; margin-top: 2px; }

/* ─── Career Grid ─── */
.cd-careers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.cd-career {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; border-radius: var(--radius-md);
  background: var(--surface-2); border: 1px solid var(--glass-border);
  transition: all 0.25s;
}
.cd-career:hover { border-color: rgba(59,108,245,0.15); transform: translateX(6px); }
.cd-career__rank {
  font-size: 22px; font-weight: 900; color: rgba(59,108,245,0.2);
  min-width: 32px; text-align: center; flex-shrink: 0;
}
.cd-career__info h4 { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.cd-career__arrow { margin-left: auto; color: var(--accent-blue); opacity: 0; transition: opacity 0.2s; flex-shrink: 0; }
.cd-career:hover .cd-career__arrow { opacity: 1; }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .cd-hero { padding: 28px 24px; }
  .cd-hero__title { font-size: 24px; }
  .cd-hero__stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .cd-hero { padding: 22px 18px; }
  .cd-hero__title { font-size: 20px; }
  .cd-hero__stats { grid-template-columns: repeat(2, 1fr); }
  .cd-hero__emoji { font-size: 32px; }
  .cd-tabs { flex-wrap: wrap; }
  .cd-tab { padding: 8px 14px; font-size: 12px; }
  .cd-info-grid, .cd-highlights, .cd-faculty-grid, .cd-careers-grid { grid-template-columns: 1fr; }
  .cd-sub-table { font-size: 12px; }
  .cd-sub-table th, .cd-sub-table td { padding: 8px 10px; }
  .cd-sem__head { padding: 12px 16px; }
  .cd-sem__body { padding: 0 16px 14px; overflow-x: auto; }
}
@media (max-width: 480px) {
  .cd-hero { padding: 16px 14px; }
  .cd-hero__title { font-size: 18px; }
  .cd-hero__desc { font-size: 13px; }
  .cd-hero__stats { grid-template-columns: 1fr; gap: 8px; }
  .cd-card__head { padding: 14px 16px; }
  .cd-card__body { padding: 16px; }
  .cd-sem__left { font-size: 13px; }
  .cd-sub-table { min-width: 400px; } 
}
/* ===================================================================
   USER MANAGEMENT — Enterprise Admin System
   =================================================================== */

/* ── Page Header ── */
.um-page { display: flex; flex-direction: column; gap: 20px; }
.um-page__header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.um-page__header-left h1 { font-size: 24px; font-weight: 700; letter-spacing: -0.5px; color: var(--text-primary); margin-bottom: 2px; }
.um-page__header-left p { font-size: 13px; color: var(--text-muted); }
.um-page__header-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Metrics Grid ── */
.um-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.um-metric {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px;
  background: #fff; border-radius: var(--radius-md); border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card); transition: all 0.2s; cursor: default;
}
.um-metric:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.um-metric__icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.um-metric__icon--blue { background: var(--accent-blue-bg); color: var(--accent-blue); }
.um-metric__icon--green { background: var(--accent-green-bg); color: var(--accent-green); }
.um-metric__icon--purple { background: var(--accent-purple-bg); color: var(--accent-purple); }
.um-metric__icon--orange { background: var(--accent-orange-bg); color: var(--accent-orange); }
.um-metric__icon--red { background: var(--accent-red-bg); color: var(--accent-red); }
.um-metric__val { display: block; font-size: 22px; font-weight: 800; color: var(--text-primary); letter-spacing: -0.5px; line-height: 1.1; }
.um-metric__lbl { font-size: 11px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }

/* ── Toolbar ── */
.um-toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #fff; border-radius: var(--radius-md); border: 1px solid var(--card-border);
  padding: 10px 14px; box-shadow: var(--shadow-card);
}
.um-toolbar__search {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px;
  background: var(--surface-2); border-radius: 10px; border: 1.5px solid transparent;
  flex: 1; max-width: 340px; transition: all 0.25s;
}
.um-toolbar__search:focus-within { border-color: var(--accent-blue); background: #fff; box-shadow: 0 0 0 3px rgba(108,93,211,0.08); }
.um-toolbar__search input { background: none; border: none; color: var(--text-primary); font-size: 13px; width: 100%; outline: none; font-family: inherit; }
.um-toolbar__search svg { color: var(--text-muted); flex-shrink: 0; }
.um-toolbar__filters { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.um-toolbar__actions { display: flex; gap: 6px; margin-left: auto; }

/* Quick filter chips */
.um-chip {
  padding: 6px 14px; border-radius: 18px; border: 1.5px solid var(--glass-border);
  background: #fff; color: var(--text-secondary); font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all 0.2s; font-family: var(--font-body); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 5px;
}
.um-chip:hover { border-color: var(--accent-blue); color: var(--accent-blue); background: var(--accent-blue-bg); }
.um-chip--active { background: var(--accent-blue); color: #fff; border-color: var(--accent-blue); }
.um-chip__count {
  background: rgba(255,255,255,0.25); padding: 0 6px; border-radius: 10px; font-size: 10px;
  font-weight: 700; min-width: 18px; text-align: center;
}
.um-chip:not(.um-chip--active) .um-chip__count { background: var(--surface-2); color: var(--text-muted); }

/* ── Filter select dropdowns ── */
.um-select {
  padding: 7px 28px 7px 12px; border-radius: 10px; border: 1.5px solid var(--glass-border);
  background: #fff; color: var(--text-secondary); font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: var(--font-body); outline: none; transition: all 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A8A8A' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat; background-position: right 8px center; background-size: 14px;
}
.um-select:focus { border-color: var(--accent-blue); box-shadow: 0 0 0 3px rgba(108,93,211,0.08); }

/* Department selector in add/edit modal */
.um-department-picker { position: relative; }
.um-department-picker .sm__dropdown { z-index: 260; }
.um-department-preview {
  margin-top: 8px; padding: 10px 12px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.um-department-preview strong { font-size: 13px; color: var(--text-primary); font-weight: 700; }
.um-department-preview span { font-size: 12px; color: var(--text-muted); font-weight: 600; white-space: nowrap; }

/* ── Data Table ── */
.um-table-wrap {
  background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card); overflow: hidden;
}
.um-table-scroll { overflow-x: auto; }
.um-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.um-table th {
  text-align: left; padding: 12px 16px; font-size: 11px; font-weight: 700;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px;
  background: var(--surface-2); border-bottom: 1px solid var(--glass-border);
  white-space: nowrap; position: sticky; top: 0; z-index: 1;
}
.um-table td { padding: 12px 16px; border-bottom: 1px solid var(--glass-border); color: var(--text-secondary); vertical-align: middle; }
.um-table tbody tr { transition: background 0.15s; }
.um-table tbody tr:hover { background: rgba(108,93,211,0.02); }
.um-table tbody tr.um-row--selected { background: rgba(108,93,211,0.05); }
.um-table th:first-child, .um-table td:first-child { padding-left: 20px; }
.um-table th:last-child, .um-table td:last-child { padding-right: 20px; }

/* Table user cell */
.um-user-cell { display: flex; align-items: center; gap: 12px; }
.um-user-cell__avatar {
  width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px; font-weight: 700; flex-shrink: 0; letter-spacing: 0.5px;
}
.um-user-cell__name { font-weight: 600; color: var(--text-primary); font-size: 13px; display: block; }
.um-user-cell__email { font-size: 12px; color: var(--text-muted); }

/* Status badges */
.um-badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px;
  border-radius: 10px; font-size: 11px; font-weight: 700; white-space: nowrap;
}
.um-badge--verified { background: var(--accent-green-bg); color: var(--accent-green); }
.um-badge--pending { background: var(--accent-orange-bg); color: #b8860b; }
.um-badge--student { background: var(--accent-emerald-bg); color: var(--accent-emerald); }
.um-badge--teacher { background: var(--accent-blue-bg); color: var(--accent-blue); }
.um-badge--admin { background: var(--accent-purple-bg); color: var(--accent-purple); }
.um-badge--active { background: var(--accent-green-bg); color: var(--accent-green); }

/* Checkbox */
.um-checkbox {
  width: 16px; height: 16px; accent-color: var(--accent-blue); cursor: pointer;
  border-radius: 4px;
}

/* Actions cell */
.um-actions-cell { position: relative; }
.um-actions-btn {
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  padding: 6px; border-radius: 8px; transition: 0.15s; display: flex;
}
.um-actions-btn:hover { background: var(--surface-2); color: var(--text-primary); }
.um-actions-menu {
  position: absolute; right: 0; top: calc(100% + 4px); background: #fff;
  border: 1px solid var(--card-border); border-radius: 12px;
  box-shadow: var(--shadow-lg); z-index: 20; overflow: hidden; min-width: 180px;
  animation: smDropIn 0.15s ease-out;
}
.um-actions-menu button {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  border: none; background: none; font-size: 13px; font-weight: 500;
  color: var(--text-secondary); cursor: pointer; font-family: inherit; transition: 0.15s;
}
.um-actions-menu button:hover { background: var(--surface-2); color: var(--text-primary); }
.um-actions-menu button.um-actions-menu__danger { color: var(--accent-red); }
.um-actions-menu button.um-actions-menu__danger:hover { background: var(--accent-red-bg); }
.um-actions-backdrop { position: fixed; inset: 0; z-index: 19; }

/* ── Pagination ── */
.um-pagination {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-top: 1px solid var(--glass-border);
  font-size: 12px; color: var(--text-muted); flex-wrap: wrap; gap: 12px;
}
.um-pagination__info { font-weight: 500; }
.um-pagination__controls { display: flex; align-items: center; gap: 4px; }
.um-pagination__btn {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--glass-border);
  background: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: 0.15s; color: var(--text-secondary); font-size: 12px; font-weight: 600;
}
.um-pagination__btn:hover:not(:disabled) { border-color: var(--accent-blue); color: var(--accent-blue); background: var(--accent-blue-bg); }
.um-pagination__btn--active { background: var(--accent-blue); color: #fff; border-color: var(--accent-blue); }
.um-pagination__btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Import Modal ── */
.um-import-zone {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 40px 24px; border: 2px dashed var(--glass-border); border-radius: var(--radius-lg);
  cursor: pointer; color: var(--text-muted); transition: all 0.3s; text-align: center;
}
.um-import-zone:hover, .um-import-zone--active {
  border-color: var(--accent-blue); background: var(--accent-blue-bg); color: var(--accent-blue);
}
.um-import-zone__icon {
  width: 56px; height: 56px; border-radius: 16px; background: var(--accent-blue-bg);
  display: flex; align-items: center; justify-content: center; color: var(--accent-blue);
}
.um-import-zone h4 { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.um-import-zone p { font-size: 12px; max-width: 300px; line-height: 1.4; }

/* Import progress */
.um-import-progress { padding: 20px; }
.um-import-progress__bar { height: 6px; background: var(--surface-2); border-radius: 10px; overflow: hidden; margin: 12px 0; }
.um-import-progress__fill {
  height: 100%; border-radius: 10px; background: var(--accent-blue);
  transition: width 0.4s ease;
}
.um-import-summary {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-top: 16px;
}
.um-import-stat { text-align: center; padding: 12px; background: var(--surface-2); border-radius: 10px; }
.um-import-stat__val { font-size: 20px; font-weight: 700; display: block; color: var(--text-primary); }
.um-import-stat__lbl { font-size: 11px; color: var(--text-muted); font-weight: 600; }
.um-import-stat--success .um-import-stat__val { color: var(--accent-green); }
.um-import-stat--fail .um-import-stat__val { color: var(--accent-red); }
.um-import-stat--dup .um-import-stat__val { color: var(--accent-orange); }

/* ── Bulk Actions Bar ── */
.um-bulk-bar {
  display: flex; align-items: center; gap: 12px; padding: 10px 20px;
  background: var(--accent-blue); color: #fff; border-radius: var(--radius-md);
  font-size: 13px; font-weight: 600; animation: slideDown 0.2s ease;
}
.um-bulk-bar__count { background: rgba(255,255,255,0.2); padding: 2px 10px; border-radius: 8px; font-size: 12px; }
.um-bulk-bar button {
  padding: 6px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1); color: #fff; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: 0.15s; font-family: inherit;
}
.um-bulk-bar button:hover { background: rgba(255,255,255,0.25); }
.um-bulk-bar__close {
  margin-left: auto; background: none !important; border: none !important;
  padding: 4px !important; display: flex;
}

/* ── View Profile Drawer ── */
.um-profile-drawer {
  position: fixed; right: 0; top: 0; width: 420px; height: 100vh;
  background: #fff; border-left: 1px solid var(--card-border);
  box-shadow: -8px 0 40px rgba(0,0,0,0.08); z-index: 200;
  display: flex; flex-direction: column;
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.um-profile-drawer__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--glass-border);
}
.um-profile-drawer__header h3 { font-size: 16px; font-weight: 700; }
.um-profile-drawer__body { flex: 1; padding: 24px; overflow-y: auto; }
.um-profile-drawer__avatar {
  width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; color: #fff; font-size: 22px; font-weight: 700;
  margin: 0 auto 16px;
}
.um-profile-drawer__name { text-align: center; font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.um-profile-drawer__email { text-align: center; font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.um-profile-drawer__section { margin-bottom: 20px; }
.um-profile-drawer__section h4 {
  font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.5px; margin-bottom: 10px; padding-bottom: 8px;
  border-bottom: 1px solid var(--glass-border);
}
.um-profile-detail { display: flex; justify-content: space-between; padding: 8px 0; font-size: 13px; }
.um-profile-detail__label { color: var(--text-muted); font-weight: 500; }
.um-profile-detail__value { color: var(--text-primary); font-weight: 600; }

/* ── Animations ── */
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes smDropIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* ── Responsive ── */
@media (max-width: 1200px) { .um-metrics { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1024px) {
  .um-metrics { grid-template-columns: repeat(2, 1fr); }
  .um-toolbar__search { max-width: 100%; }
}
@media (max-width: 768px) {
  .um-metrics { grid-template-columns: 1fr 1fr; }
  .um-page__header { flex-direction: column; align-items: stretch; }
  .um-page__header-actions { justify-content: flex-end; }
  .um-toolbar { flex-direction: column; align-items: stretch; }
  .um-toolbar__search { max-width: 100%; }
  .um-toolbar__actions { justify-content: flex-end; }
  .um-profile-drawer { width: 100%; }
  .um-bulk-bar { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .um-metrics { grid-template-columns: 1fr; }
  .um-metric { padding: 14px 16px; }
  .um-import-summary { grid-template-columns: 1fr; }
}
/* Last-loaded responsive hardening for the full app shell. */
html,
body,
#root {
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  overscroll-behavior-x: none;
}

button,
input,
select,
textarea {
  min-width: 0;
  font: inherit;
}

img,
video,
canvas,
svg {
  max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6,
.header__title h2,
.sidebar__logo-text h1,
.page__title,
.dp-card__title,
.schedule-card__title-row,
.um-user-cell__name {
  letter-spacing: 0 !important;
}

.app,
.app__main,
.app__content,
.page,
.dashboard,
.dash,
.attendance-page,
.schedule-page,
.um-page,
.profile-layout,
.profile-card,
.notifications-list {
  min-width: 0;
  max-width: 100%;
}

.app__content {
  width: 100%;
  scroll-behavior: smooth;
}

.page > *,
.attendance-page > *,
.schedule-page > *,
.um-page > *,
.dashboard > *,
.dash > * {
  min-width: 0;
  max-width: 100%;
}

.page h1,
.page h2,
.page h3,
.page p,
.notification-content,
.search-result-info,
.um-user-cell,
.um-profile-detail__value,
.attendance-record-card,
.schedule-card,
.dp-card,
.dp-managed-card {
  overflow-wrap: anywhere;
}

.app-route-guard {
  min-height: min(420px, calc(100dvh - var(--header-height) - 48px));
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-secondary);
}

.app-route-guard h2 {
  color: var(--text-primary);
}

.header__left,
.header__right,
.header__search-wrap,
.search-result-info,
.notification-content,
.um-card__info,
.um-user-cell > div {
  min-width: 0;
}

.header__right {
  margin-left: auto;
}

.header__back-btn,
.header__menu-btn,
.header__notification,
.header__profile-avatar,
.header__logout-btn,
.header__mobile-search-btn,
.modal__close,
.sm__close,
.um-actions-btn,
.um-pagination__btn {
  flex: 0 0 auto;
}

.header__mobile-copy,
.header__mobile-search-btn,
.sidebar__mobile-user,
.sidebar__mobile-label,
.sidebar__mobile-footer,
.mobile-bottom-nav {
  display: none;
}

.notifications-dropdown,
.header__search-dropdown,
.modal,
.sm,
.um-profile-drawer {
  max-width: calc(100vw - 24px);
}

.attendance-table-wrap,
.um-table-scroll,
.upload-table-wrapper,
.table-wrap,
.schedule-command,
.schedule-board,
.dp-filter-bar__filters {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
}

.attendance-table,
.um-table,
.upload-table {
  width: 100%;
}

.btn,
.filter-chip,
.um-chip,
.schedule-day,
.sched-day,
.sm__day-chip,
.attendance-tabs button {
  min-width: 0;
}

.btn svg,
.filter-chip svg,
.um-chip svg,
.sidebar__nav-icon,
.attendance-kicker svg,
.schedule-kicker svg {
  flex: 0 0 auto;
}

.modal-overlay,
.sm-overlay {
  min-width: 0;
}

.modal,
.sm {
  overscroll-behavior: contain;
}

@media (prefers-reduced-motion: no-preference) {
  .page {
    animation: routeFadeIn 180ms ease-out both;
  }

  .attendance-panel,
  .schedule-board,
  .schedule-card,
  .dp-card,
  .dp-managed-card,
  .um-table-wrap,
  .um-metric,
  .modal,
  .sm {
    transition:
      transform 180ms ease,
      box-shadow 180ms ease,
      border-color 180ms ease,
      background-color 180ms ease;
  }
}

@keyframes routeFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .app__content {
    padding: 22px 20px;
  }

  .header__search {
    width: min(260px, 32vw);
  }

  .header__search--expanded {
    width: min(360px, 44vw);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 62px;
  }

  body {
    background:
      linear-gradient(180deg, #ffffff 0%, #f5f6fb 140px, #f6f6f6 100%);
  }

  .app {
    display: block;
  }

  .app__main {
    width: 100%;
    margin-left: 0 !important;
  }

  .app__content {
    padding: 18px 14px calc(98px + env(safe-area-inset-bottom)) !important;
    overflow-x: hidden;
  }

  .header {
    gap: 10px;
    height: var(--header-height) !important;
    padding-inline: 12px !important;
    background: rgba(255, 255, 255, 0.94) !important;
    border-bottom: 1px solid rgba(229, 229, 229, 0.78) !important;
    box-shadow: 0 10px 30px rgba(24, 28, 44, 0.06);
    backdrop-filter: saturate(180%) blur(18px);
  }

  .header__left {
    flex: 1 1 auto;
    gap: 10px;
    overflow: hidden;
  }

  .header__right {
    gap: 7px;
  }

  .header__menu-btn,
  .header__notification,
  .header__profile-avatar,
  .header__mobile-search-btn {
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px !important;
    border: 1px solid rgba(229, 229, 229, 0.9) !important;
    background: #fff !important;
    color: var(--text-primary) !important;
    box-shadow: 0 4px 14px rgba(24, 28, 44, 0.06);
  }

  .header__mobile-search-btn.active,
  .header__notification.active {
    border-color: rgba(108, 93, 211, 0.35) !important;
    color: var(--accent-blue) !important;
    background: var(--accent-blue-bg) !important;
  }

  .header__logout-btn {
    display: none !important;
  }

  .header__back-btn {
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    justify-content: center;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 4px 14px rgba(24, 28, 44, 0.06);
  }

  .header__back-btn span {
    display: none;
  }

  .header__mobile-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
  }

  .header__mobile-copy span {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.05;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header__mobile-copy small {
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: capitalize;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header__search-wrap {
    position: static;
  }

  .header__search {
    display: none !important;
    position: fixed !important;
    top: calc(var(--header-height) + 10px) !important;
    right: 12px !important;
    left: 12px !important;
    z-index: 140;
    width: auto !important;
    height: 50px;
    padding: 0 14px !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: 0 18px 44px rgba(24, 28, 44, 0.16) !important;
  }

  .header__search--expanded {
    display: flex !important;
  }

  .sidebar {
    width: min(90vw, 360px) !important;
    max-width: 100vw;
    border-right: 0 !important;
    border-radius: 0 28px 28px 0;
    box-shadow: 24px 0 60px rgba(24, 28, 44, 0.22);
    background:
      linear-gradient(180deg, rgba(108, 93, 211, 0.08), rgba(255, 255, 255, 0) 190px),
      #fff !important;
  }

  .sidebar-overlay.open {
    background: rgba(20, 24, 38, 0.42) !important;
    backdrop-filter: blur(14px);
  }

  .sidebar__header {
    height: auto !important;
    min-height: var(--header-height);
    border-bottom: 0 !important;
    padding: 18px 18px 12px !important;
  }

  .sidebar__logo-icon {
    width: 50px !important;
    height: 50px !important;
    border-radius: 16px !important;
  }

  .sidebar__close {
    width: 40px;
    height: 40px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.72) !important;
    border: 1px solid rgba(229, 229, 229, 0.8) !important;
  }

  .sidebar__mobile-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 16px 12px;
    padding: 14px;
    width: calc(100% - 32px);
    border: 1px solid rgba(108, 93, 211, 0.14);
    border-radius: 20px;
    background:
      linear-gradient(135deg, rgba(108, 93, 211, 0.08), rgba(155, 198, 250, 0.12)),
      #fff;
    box-shadow: 0 12px 28px rgba(24, 28, 44, 0.07);
    text-align: left;
    color: inherit;
  }

  .sidebar__mobile-avatar {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-brand);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    flex: 0 0 auto;
  }

  .sidebar__mobile-user-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

  .sidebar__mobile-user-meta strong,
  .sidebar__mobile-user-meta small {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sidebar__mobile-user-meta strong {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 800;
  }

  .sidebar__mobile-user-meta small {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: capitalize;
  }

  .sidebar__nav {
    gap: 7px !important;
    padding: 8px 14px 14px !important;
    padding-bottom: 12px !important;
  }

  .sidebar__mobile-label {
    display: block;
    padding: 4px 4px 6px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
  }

  .sidebar__nav-item {
    min-height: 48px;
    padding: 13px 14px !important;
    border-radius: 16px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    color: var(--text-secondary) !important;
  }

  .sidebar__nav-item:hover {
    background: rgba(108, 93, 211, 0.06) !important;
  }

  .sidebar__nav-item--active {
    background: #6C5DD3 !important;
    color: #fff !important;
    box-shadow: 0 14px 24px rgba(108, 93, 211, 0.24);
  }

  .sidebar__nav-indicator {
    display: none;
  }

  .sidebar__mobile-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: auto;
    padding: 12px 14px calc(16px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(229, 229, 229, 0.78);
  }

  .sidebar__mobile-footer button {
    min-height: 44px;
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    background: #fff;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
  }

  .sidebar__mobile-footer button:last-child {
    color: var(--accent-red);
    background: var(--accent-red-bg);
    border-color: rgba(255, 122, 122, 0.22);
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 70;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    min-height: 68px;
    padding: 8px;
    border: 1px solid rgba(229, 229, 229, 0.85);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 20px 50px rgba(24, 28, 44, 0.18);
    backdrop-filter: saturate(180%) blur(18px);
  }

  .mobile-bottom-nav__item {
    border: 0;
    border-radius: 18px;
    background: transparent;
    color: var(--text-muted);
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 9px;
    font-weight: 900;
    line-height: 1.05;
    text-align: center;
    transition: 180ms ease;
  }

  .mobile-bottom-nav__icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-bottom-nav__icon svg {
    width: 19px;
    height: 19px;
  }

  .mobile-bottom-nav__item--active {
    background: #6C5DD3;
    color: #fff;
    box-shadow: 0 12px 22px rgba(108, 93, 211, 0.24);
  }

  .notifications-dropdown {
    position: fixed !important;
    top: calc(var(--header-height) + 8px) !important;
    right: 12px !important;
    left: 12px !important;
    width: auto !important;
    max-width: none !important;
    max-height: calc(100dvh - var(--header-height) - 20px);
    display: flex;
    flex-direction: column;
  }

  .notifications-dropdown__list {
    max-height: min(360px, calc(100dvh - var(--header-height) - 142px));
  }

  .header__search-dropdown {
    position: fixed !important;
    top: calc(var(--header-height) + 68px) !important;
    right: 12px !important;
    left: 12px !important;
    width: auto !important;
    max-width: none !important;
    border-radius: 18px !important;
    box-shadow: 0 18px 44px rgba(24, 28, 44, 0.16) !important;
  }

  .search-result-item,
  .notification-item {
    gap: 12px;
    padding-inline: 14px;
  }

  .page,
  .attendance-page,
  .schedule-page,
  .um-page {
    gap: 16px;
  }

  .page__header,
  .um-page__header,
  .attendance-hero,
  .schedule-hero,
  .dp-section__header,
  .schedule-board__head,
  .attendance-panel__head {
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 14px !important;
  }

  .schedule-hero,
  .attendance-hero,
  .dp-hero {
    border-radius: 24px !important;
    padding: 18px !important;
    border: 1px solid rgba(229, 229, 229, 0.78) !important;
    box-shadow: 0 16px 42px rgba(24, 28, 44, 0.08) !important;
  }

  .schedule-hero h2,
  .attendance-hero h2,
  .dp-hero__text h2 {
    font-size: 22px !important;
    line-height: 1.18;
  }

  .schedule-hero__controls,
  .attendance-hero__actions,
  .um-page__header-actions,
  .dp-hero__actions,
  .page__toolbar,
  .um-toolbar,
  .attendance-manual-toolbar {
    width: 100%;
    align-items: stretch !important;
  }

  .schedule-hero__controls,
  .attendance-hero__actions,
  .um-page__header-actions,
  .um-toolbar__actions,
  .dp-hero__actions,
  .attendance-manual-toolbar {
    display: flex;
    flex-wrap: wrap;
  }

  .schedule-switch,
  .schedule-add-btn,
  .attendance-hero__actions .btn,
  .um-page__header-actions .btn,
  .dp-hero__actions .btn {
    flex: 1 1 160px;
    justify-content: center;
  }

  .schedule-days,
  .sched-days,
  .sm__day-row,
  .attendance-tabs,
  .um-toolbar__filters,
  .page__filters {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .schedule-day,
  .sched-day {
    flex: 0 0 112px;
  }

  .attendance-tabs button {
    flex: 0 0 auto;
    min-width: 150px;
    white-space: nowrap;
  }

  .filter-chip,
  .um-chip {
    flex: 0 0 auto;
  }

  .schedule-insights,
  .attendance-metrics,
  .um-metrics,
  .um-stats,
  .attendance-live-grid,
  .attendance-class-grid,
  .attendance-record-grid,
  .schedule-card__details,
  .profile-layout,
  .profile-details-grid {
    grid-template-columns: 1fr !important;
  }

  .dash__stats,
  .dashboard__stats,
  .feedback-stats,
  .grievance-stats,
  .schedule-insights,
  .attendance-metrics,
  .um-metrics,
  .um-stats,
  .dp-hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .dash__stat,
  .dashboard__stat-card,
  .feedback-stat-card,
  .grievance-stat,
  .attendance-metric,
  .schedule-insight,
  .um-metric,
  .um-stat {
    min-height: 92px;
    border-radius: 20px !important;
    padding: 14px !important;
    box-shadow: 0 12px 30px rgba(24, 28, 44, 0.06) !important;
  }

  .dash__welcome,
  .dashboard__welcome,
  .dash__card,
  .dashboard__section,
  .notice-card,
  .feedback-card,
  .skills-panel,
  .internships-panel,
  .internship-card,
  .room-card,
  .booking-card,
  .grievance-card,
  .attendance-panel,
  .schedule-board,
  .schedule-card,
  .dp-card,
  .dp-managed-card,
  .um-table-wrap,
  .um-import-zone,
  .notifications-list,
  .profile-card {
    border-radius: 22px !important;
    border-color: rgba(229, 229, 229, 0.84) !important;
    box-shadow: 0 14px 36px rgba(24, 28, 44, 0.07) !important;
  }

  .dash__welcome,
  .dashboard__welcome {
    padding: 20px !important;
    background:
      linear-gradient(135deg, rgba(108, 93, 211, 0.07), rgba(60, 203, 127, 0.07)),
      #fff !important;
  }

  .dash__welcome::before,
  .dashboard__welcome::before,
  .dp-hero__orb {
    display: none !important;
  }

  .dash__welcome h2,
  .dashboard__welcome-content h2 {
    font-size: 21px !important;
  }

  .dash__welcome-metrics,
  .dashboard__welcome-stats {
    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px !important;
  }

  .dash__metric,
  .dashboard__welcome-stat {
    margin: 0 !important;
    border-radius: 16px !important;
    background: #fff !important;
    border: 1px solid rgba(229, 229, 229, 0.84);
    box-shadow: 0 8px 18px rgba(24, 28, 44, 0.04);
  }

  .dash__metric-divider {
    display: none;
  }

  .dash__actions,
  .dashboard__quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .dash__action,
  .dashboard__action-btn {
    min-height: 86px;
    border-radius: 20px !important;
    padding: 14px 10px !important;
    box-shadow: 0 10px 24px rgba(24, 28, 44, 0.05) !important;
  }

  .page__toolbar,
  .um-toolbar {
    padding: 12px !important;
    border: 1px solid rgba(229, 229, 229, 0.84);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(24, 28, 44, 0.06);
  }

  .page__search,
  .um-toolbar__search,
  .dp-hero__search {
    min-height: 46px;
    border-radius: 16px !important;
    background: #f7f8fb !important;
    border-color: rgba(229, 229, 229, 0.86) !important;
  }

  .notice-grid,
  .feedback-grid,
  .rooms-grid,
  .grievance-list,
  .internship-list {
    gap: 12px !important;
  }

  .notice-card,
  .feedback-card,
  .room-card,
  .internship-card {
    padding: 18px !important;
  }

  .notice-card__footer,
  .feedback-card__footer,
  .internship-card__meta,
  .room-card__info,
  .grievance-card__meta {
    flex-wrap: wrap;
    gap: 8px;
  }

  .schedule-command {
    padding: 14px !important;
    border-radius: 22px !important;
    background: #fff !important;
    box-shadow: 0 14px 36px rgba(24, 28, 44, 0.07) !important;
  }

  .schedule-card,
  .sched-card {
    position: relative;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 16px !important;
    margin-bottom: 12px;
    border: 1px solid rgba(229, 229, 229, 0.84) !important;
    border-left-width: 4px !important;
    background: #fff !important;
  }

  .schedule-card__time,
  .sched-card__time {
    width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px;
    padding: 10px 12px !important;
    border-radius: 16px;
    background: #f7f8fb;
  }

  .schedule-card__title-row {
    flex-direction: column;
    align-items: stretch !important;
  }

  .schedule-card__type {
    width: fit-content;
  }

  .schedule-card__details {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin-top: 12px !important;
  }

  .schedule-card__details span,
  .sched-card__details span {
    min-height: 34px;
    padding: 8px 10px;
    border-radius: 12px;
    background: #f7f8fb;
  }

  .schedule-card__actions,
  .sched-card__actions {
    width: 100%;
    justify-content: flex-end !important;
  }

  .attendance-tabs {
    border-radius: 20px !important;
    padding: 6px !important;
    background: #fff !important;
    border: 1px solid rgba(229, 229, 229, 0.84) !important;
    box-shadow: 0 12px 30px rgba(24, 28, 44, 0.06);
  }

  .attendance-tabs button {
    border-radius: 16px !important;
    min-height: 44px;
  }

  .attendance-live-grid,
  .attendance-class-grid,
  .attendance-record-grid {
    gap: 12px !important;
  }

  .attendance-qr-frame {
    min-height: 260px !important;
    border-radius: 22px !important;
  }

  .attendance-scanner,
  .attendance-scan-box,
  .attendance-confirmed {
    border-radius: 22px !important;
  }

  .attendance-class-card,
  .attendance-record-card,
  .attendance-roster__row {
    border-radius: 18px !important;
    padding: 14px !important;
  }

  .attendance-roster__row {
    display: grid !important;
    grid-template-columns: auto 1fr auto;
    gap: 10px !important;
  }

  .attendance-toggle {
    min-height: 38px;
    border-radius: 14px !important;
  }

  .dp-filter-bar {
    border-radius: 22px !important;
    padding: 12px !important;
    background: #fff !important;
    box-shadow: 0 12px 30px rgba(24, 28, 44, 0.06);
  }

  .dp-managed-grid,
  .dp-grid {
    gap: 12px !important;
  }

  .dp-card__gradient {
    min-height: 112px;
    border-radius: 22px 22px 0 0 !important;
  }

  .dp-card__body,
  .dp-managed-card__body {
    padding: 16px !important;
  }

  .dp-managed-card__actions .btn,
  .room-card .btn,
  .booking-card .btn {
    min-height: 42px;
    flex: 1 1 140px;
  }

  .um-page__header {
    padding: 16px;
    border: 1px solid rgba(229, 229, 229, 0.84);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(24, 28, 44, 0.06);
  }

  .um-page__header-left h1 {
    font-size: 20px !important;
  }

  .um-import-zone {
    flex-direction: column !important;
    text-align: center;
    padding: 18px !important;
  }

  .um-table-wrap {
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .um-table-scroll {
    overflow: visible !important;
  }

  .um-table,
  .um-table tbody,
  .um-table tr,
  .um-table td {
    display: block;
    width: 100%;
  }

  .um-table {
    min-width: 0 !important;
    border-collapse: separate;
    border-spacing: 0 12px;
  }

  .um-table thead {
    display: none;
  }

  .um-table tbody tr {
    position: relative;
    padding: 14px;
    border: 1px solid rgba(229, 229, 229, 0.84);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(24, 28, 44, 0.06);
  }

  .um-table td {
    min-height: 34px;
    padding: 8px 0 !important;
    border-bottom: 0 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    text-align: right;
  }

  .um-table td::before {
    content: attr(data-label);
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    text-align: left;
    flex: 0 0 auto;
  }

  .um-table td:nth-child(4)::before {
    content: "Department";
  }

  .um-table td:nth-child(1) {
    position: absolute;
    top: 14px;
    right: 14px;
    width: auto;
    min-height: 0;
    padding: 0 !important;
  }

  .um-table td:nth-child(1)::before,
  .um-table td:nth-child(2)::before {
    display: none;
  }

  .um-table td:nth-child(2) {
    padding-right: 42px !important;
    justify-content: flex-start;
    text-align: left;
  }

  .um-table td:nth-child(7) {
    justify-content: flex-end;
    padding-top: 12px !important;
  }

  .um-user-cell {
    width: 100%;
  }

  .um-user-cell__email {
    max-width: 210px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .um-actions-menu {
    position: fixed !important;
    right: 14px !important;
    left: 14px !important;
    bottom: calc(88px + env(safe-area-inset-bottom)) !important;
    top: auto !important;
    min-width: 0 !important;
    border-radius: 20px !important;
    padding: 8px;
    box-shadow: 0 22px 60px rgba(24, 28, 44, 0.22) !important;
  }

  .um-actions-menu button {
    min-height: 44px;
    border-radius: 14px;
  }

  .schedule-card,
  .sched-card,
  .um-card,
  .attendance-roster__row {
    align-items: stretch;
  }

  .schedule-card__body,
  .sched-card__body,
  .schedule-card__main,
  .schedule-card__details,
  .schedule-card__actions,
  .um-card__meta,
  .attendance-roster__row {
    min-width: 0;
  }

  .schedule-card__actions,
  .dp-managed-card__actions,
  .um-toolbar__actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .modal-overlay,
  .sm-overlay {
    padding: 10px !important;
    align-items: flex-end !important;
  }

  .modal,
  .sm {
    width: 100% !important;
    max-width: 100% !important;
    max-height: calc(100dvh - 20px) !important;
    border-radius: 24px 24px 18px 18px !important;
  }

  .schedule-modal {
    height: calc(100dvh - 20px) !important;
    max-height: calc(100dvh - 20px) !important;
    display: flex !important;
    overflow: hidden !important;
    border-radius: 24px 24px 0 0 !important;
  }

  .schedule-modal .sm__head {
    padding: 16px !important;
  }

  .schedule-modal .sm__head-icon {
    width: 40px !important;
    height: 40px !important;
  }

  .schedule-modal .sm__head h3 {
    font-size: 17px !important;
  }

  .schedule-modal__head-meta {
    gap: 5px;
  }

  .schedule-modal__head-meta span {
    min-height: 20px;
    padding: 2px 8px;
    font-size: 10px !important;
  }

  .schedule-modal__scroll {
    min-height: 0;
    overflow-y: auto !important;
    padding-bottom: 14px;
  }

  .schedule-modal__preview {
    margin: 14px 14px 12px !important;
    padding: 14px !important;
    border-radius: 18px !important;
  }

  .schedule-modal .sm__body {
    max-height: none !important;
    overflow: visible !important;
    padding: 0 14px !important;
    gap: 12px;
  }

  .schedule-modal__section-card {
    padding: 14px !important;
    border-radius: 18px !important;
  }

  .schedule-modal .sm__foot {
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom)) !important;
    gap: 8px;
  }

  .schedule-modal .sm__foot .btn {
    flex: 1 1 140px;
    min-height: 44px;
  }

  .logout-modal {
    margin: 10px !important;
    max-width: calc(100vw - 20px) !important;
  }

  .sm__body,
  .dp-editor-body {
    max-height: calc(100dvh - 220px) !important;
    overflow-y: auto;
  }

  .sm__row,
  .sm__row--3,
  .sm__time-row,
  .form-row,
  .dp-subject-form {
    grid-template-columns: 1fr !important;
  }

  .sm__types,
  .dp-subject-types {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .sm__foot,
  .modal__actions,
  .logout-modal__actions,
  .um-pagination,
  .um-bulk-bar {
    flex-wrap: wrap;
  }

  .profile-card {
    padding: 22px !important;
  }

  .profile-avatar-wrap {
    width: 96px !important;
    height: 96px !important;
    font-size: 32px !important;
  }

  .auth-page {
    min-height: 100dvh;
    padding: 14px !important;
  }

  .auth-card {
    width: min(100%, 460px) !important;
    max-width: 100% !important;
  }
}

@media (max-width: 560px) {
  :root {
    --header-height: 60px;
  }

  .app__content {
    padding: 14px 10px calc(96px + env(safe-area-inset-bottom)) !important;
  }

  .header {
    height: var(--header-height) !important;
    padding-inline: 10px !important;
  }

  .header__right {
    gap: 6px;
  }

  .header__menu-btn,
  .header__notification,
  .header__profile-avatar,
  .header__logout-btn,
  .header__mobile-search-btn,
  .header__back-btn {
    width: 38px !important;
    height: 38px !important;
  }

  .sidebar {
    width: min(92vw, 360px) !important;
  }

  .sidebar__header {
    height: auto !important;
    min-height: var(--header-height);
    padding: 18px 16px;
  }

  .sidebar__logo-text h1 {
    font-size: 16px !important;
  }

  .page,
  .attendance-page,
  .schedule-page,
  .um-page {
    gap: 16px;
  }

  .btn {
    white-space: normal;
    justify-content: center;
  }

  .schedule-hero,
  .attendance-hero,
  .dp-hero {
    padding: 16px !important;
  }

  .schedule-hero h2,
  .attendance-hero h2,
  .dp-hero__text h2 {
    font-size: 20px !important;
  }

  .schedule-hero__meta,
  .attendance-hero__actions,
  .dp-hero__actions,
  .um-page__header-actions,
  .modal__actions,
  .logout-modal__actions {
    flex-direction: column;
  }

  .schedule-hero__meta span,
  .attendance-hero__actions .btn,
  .dp-hero__actions .btn,
  .um-page__header-actions .btn,
  .modal__actions .btn,
  .logout-modal__actions .btn {
    width: 100%;
  }

  .attendance-table,
  .upload-table {
    min-width: 680px;
  }

  .attendance-qr-frame,
  .attendance-scanner,
  .attendance-scan-box {
    width: 100%;
  }

  .attendance-scan-box__target {
    min-height: 220px;
  }

  .sm__types,
  .dp-subject-types {
    grid-template-columns: 1fr !important;
  }

  .schedule-modal .sm__types {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .schedule-modal .sm__time-row {
    flex-direction: column;
    align-items: stretch !important;
  }

  .schedule-modal .atp,
  .schedule-modal .atp__box {
    width: 100%;
  }

  .dash__stats,
  .dashboard__stats,
  .feedback-stats,
  .grievance-stats,
  .dp-hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .um-card {
    flex-direction: column;
  }

  .um-card__actions,
  .um-card__status {
    align-self: stretch;
  }

  .um-pagination {
    gap: 10px;
  }

  .um-pagination__info,
  .um-pagination__controls {
    width: 100%;
    justify-content: center;
  }

  .profile-card {
    padding: 18px !important;
  }

  .empty-state {
    padding: 42px 18px;
  }
}

@media (max-width: 380px) {
  .app__content {
    padding-inline: 8px !important;
  }

  .dash__actions,
  .dashboard__actions,
  .schedule-insights,
  .attendance-metrics,
  .um-metrics {
    grid-template-columns: 1fr !important;
  }

  .schedule-day,
  .sched-day {
    flex-basis: 96px;
  }

  .attendance-tabs button {
    min-width: 132px;
  }
}
