/* ==========================================================================
   Oryn College Operations & Faculty Console CSS
   Full-Screen Dual-Pane Architecture & Apple HIG Dark Design System (#2D2D2D)
   Compliant with HCI Principles: Clean Vector SVG Icons & Crisp Typography
   ========================================================================== */

:root {
  /* Oryn Signature Color Tokens (from theme.ts) */
  --bg-primary: #2D2D2D;
  --card-bg: #222224;
  --card-hover: #343438;
  --surface: #252528;
  --surface-high: #36363A;
  --surface-elevated: #424246;

  /* Separators & Lines */
  --border: rgba(255, 255, 255, 0.12);
  --border-muted: rgba(255, 255, 255, 0.07);

  /* iOS System Colors */
  --system-blue: #007AFF;
  --system-indigo: #5856D6;
  --system-purple: #AF52DE;
  --system-pink: #FF2D55;
  --system-teal: #30B0C7;
  --system-orange: #FF9500;
  --system-red: #FF3B30;
  --system-green: #34C759;
  --system-yellow: #FFCC00;
  --system-gray: #8E8E93;
  --system-gray2: #636366;

  /* Text (iOS Label System) */
  --text-primary: #FFFFFF;
  --text-secondary: rgba(235, 235, 245, 0.65);
  --text-muted: rgba(235, 235, 245, 0.40);
  --text-disabled: rgba(235, 235, 245, 0.20);

  /* Typography & Curves */
  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

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

html, body {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.45;
  overflow-x: hidden;
}

/* Ambient Subtle Background Orbs */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  opacity: 0.12;
  z-index: 0;
}

.orb-1 {
  width: 600px;
  height: 600px;
  top: -150px;
  left: -100px;
  background: radial-gradient(circle, var(--system-blue), transparent);
}

.orb-2 {
  width: 700px;
  height: 700px;
  bottom: -200px;
  right: -100px;
  background: radial-gradient(circle, var(--system-indigo), transparent);
}

/* ==========================================================================
   1. FULL-SCREEN DUAL-PANE AUTH VIEW
   ========================================================================== */
.auth-fullscreen {
  width: 100vw;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  position: relative;
  z-index: 1;
}

/* --- LEFT SHOWCASE PANE (55%) --- */
.auth-showcase-pane {
  background: linear-gradient(135deg, rgba(30, 30, 32, 0.95), rgba(45, 45, 45, 0.95));
  border-right: 1px solid var(--border);
  padding: 4.5rem 4.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.showcase-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.showcase-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: #1E1E20;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

.brand-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.brand-subtitle {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* Hero Text */
.showcase-hero {
  margin: 3rem 0 2.5rem;
}

.hero-headline {
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.8px;
  margin-bottom: 1.25rem;
}

.solid-headline {
  color: #FFFFFF;
  font-weight: 800;
}

.hero-subtext {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 620px;
}

/* Feature Showcase Grid */
.showcase-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  margin: 1.5rem 0 2.5rem;
}

.showcase-card {
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
  background: rgba(34, 34, 36, 0.75);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.35rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.showcase-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.sc-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sc-info {
  display: flex;
  flex-direction: column;
}

.sc-title {
  font-weight: 700;
  font-size: 0.98rem;
  margin-bottom: 0.25rem;
}

.sc-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.sc-desc code {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  color: var(--text-primary);
}

.showcase-footer {
  border-top: 1px solid var(--border-muted);
  padding-top: 1.25rem;
}

.footer-trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --- RIGHT AUTH ACTION PANE (45%) --- */
.auth-action-pane {
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 4.5rem;
}

.login-box {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
}

.login-header {
  margin-bottom: 2rem;
}

.login-title {
  font-size: 1.95rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.login-desc {
  font-size: 0.94rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
}

.google-auth-box {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 1.25rem;
}

.or-separator {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 1.25rem 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.or-separator::before, .or-separator::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border);
}

.or-separator span {
  padding: 0 0.75rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group-ios {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group-ios label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.input-ios, .select-field {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}

.select-field option {
  background: var(--card-bg);
  color: #fff;
}

.input-ios:focus, .select-field:focus {
  border-color: var(--system-blue);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.25);
  background: var(--surface);
}

.btn-primary-full {
  width: 100%;
  background: var(--system-blue);
  color: #fff;
  border: none;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  box-shadow: 0 4px 14px rgba(0, 122, 255, 0.3);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn-primary-full:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* Quick Profiles Card */
.demo-profiles-card {
  margin-top: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.demo-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.85rem;
}

.demo-buttons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.demo-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-align: left;
  transition: all 0.2s ease;
}

.demo-chip svg {
  flex-shrink: 0;
}

.demo-chip:hover {
  background: var(--surface-high);
  transform: translateY(-1px);
}

.chip-admin:hover { border-color: var(--system-yellow) !important; color: var(--system-yellow); }
.chip-faculty:hover { border-color: var(--system-blue) !important; color: #64D2FF; }
.chip-staff:hover { border-color: var(--system-green) !important; color: #34C759; }

.login-footer-info {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.login-footer-info code {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  color: var(--text-primary);
}


/* ==========================================================================
   2. ACCESS RESTRICTED SCREEN
   ========================================================================== */
.unauth-fullscreen {
  width: 100vw;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.unauth-card {
  width: 100%;
  max-width: 500px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}

.unauth-icon-wrap {
  margin-bottom: 1rem;
}

.unauth-email { color: var(--system-blue); font-weight: 600; margin-top: 0.25rem; }
.unauth-info-box { background: var(--surface); border: 1px solid var(--border-muted); border-radius: var(--radius-md); padding: 1.15rem; margin: 1.5rem 0; font-size: 0.88rem; color: var(--text-secondary); text-align: left; }
.unauth-btn-row { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }


/* ==========================================================================
   3. MAIN WORKSPACE APP (Full Width Desktop Layout)
   ========================================================================== */
.app-fullscreen {
  width: 100vw;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Sticky App Topbar */
.app-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(45, 45, 45, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 2.5rem;
}

.topbar-container {
  max-width: 1560px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.topbar-logo-wrap {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: #1E1E20;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.topbar-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.topbar-brand {
  display: flex;
  flex-direction: column;
}

.topbar-name {
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.topbar-sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.badge-alert-pill {
  background: rgba(255, 59, 48, 0.15);
  color: #FF6961;
  border: 1px solid rgba(255, 59, 48, 0.35);
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.badge-alert-pill:hover {
  background: rgba(255, 59, 48, 0.25);
  transform: translateY(-1px);
}

.user-profile-chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 0.35rem 0.5rem 0.35rem 0.75rem;
  border-radius: var(--radius-full);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--system-blue);
}

.user-meta {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: 600;
  font-size: 0.85rem;
}

.user-email {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.btn-logout-circle {
  background: rgba(255, 45, 85, 0.12);
  color: var(--system-pink);
  border: 1px solid rgba(255, 45, 85, 0.25);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-logout-circle:hover {
  background: rgba(255, 45, 85, 0.3);
  transform: scale(1.05);
}

/* Role Pills */
.role-pill {
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.role-pill.admin {
  background: rgba(255, 204, 0, 0.15);
  color: var(--system-yellow);
  border: 1px solid rgba(255, 204, 0, 0.4);
}

.role-pill.faculty {
  background: rgba(0, 122, 255, 0.15);
  color: #64D2FF;
  border: 1px solid rgba(0, 122, 255, 0.4);
}

.role-pill.staff, .role-pill.worker {
  background: rgba(52, 199, 89, 0.15);
  color: #34C759;
  border: 1px solid rgba(52, 199, 89, 0.4);
}

/* --- MAIN CONTENT & NAVIGATION --- */
.app-main-content {
  max-width: 1560px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 2.5rem 6rem;
  flex: 1;
}

.workspace-panel {
  width: 100%;
}

.segmented-nav {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border-muted);
  padding: 0.35rem;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 0.35rem;
}

.segmented-nav::-webkit-scrollbar {
  display: none;
}

.seg-tab {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.seg-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.seg-tab.active {
  background: var(--surface-high);
  color: var(--text-primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.tab-count-badge {
  background: var(--system-red);
  color: #fff;
  font-size: 0.68rem;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
  font-weight: 700;
}

/* --- METRICS GRID (4-Columns) --- */
.metrics-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.metric-card-ios {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: transform 0.2s ease;
}

.metric-card-ios:hover {
  transform: translateY(-2px);
}

.metric-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.metric-number {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.1;
}

.metric-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* --- DUO GRID (Overview Section) --- */
.dashboard-duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

.surface-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.card-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-muted);
}

.title-with-icon {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.title-with-icon h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.badge-icon.red { background: rgba(255, 59, 48, 0.15); color: #FF3B30; }
.badge-icon.blue { background: rgba(0, 122, 255, 0.15); color: #007AFF; }

.stack-list, .stack-list-full {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* --- TOOLBARS & BUTTONS --- */
.toolbar-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.toolbar-inputs {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.search-input-field {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  min-width: 320px;
  outline: none;
  font-family: inherit;
}

.search-input-field:focus {
  border-color: var(--system-blue);
}

.select-field {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.7rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  outline: none;
  font-family: inherit;
}

.btn-primary-action {
  background: var(--system-blue);
  color: #fff;
  border: none;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.25);
  transition: all 0.15s ease;
}

.btn-primary-action:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-secondary-action {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.15s ease;
}

.btn-secondary-action:hover {
  background: var(--surface-high);
}

.btn-sm-primary {
  background: var(--system-blue);
  color: #fff;
  border: none;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-sm-secondary {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-link-action {
  background: transparent;
  border: none;
  color: var(--system-blue);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-icon-table {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-icon-table:hover { color: #fff; background: var(--surface-high); }
.btn-icon-table.delete:hover { background: rgba(255, 59, 48, 0.2); color: var(--system-red); border-color: var(--system-red); }

/* --- FULL-WIDTH TABLES --- */
.table-surface-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.data-table-full {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.data-table-full th {
  background: var(--surface);
  color: var(--text-secondary);
  font-weight: 600;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table-full td {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border-muted);
  vertical-align: middle;
}

.data-table-full tr:last-child td {
  border-bottom: none;
}

.data-table-full tr:hover td {
  background: var(--card-hover);
}

.tag-slot {
  display: inline-block;
  background: rgba(0, 122, 255, 0.15);
  color: #64D2FF;
  border: 1px solid rgba(0, 122, 255, 0.3);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.8rem;
}

.tag-room {
  display: inline-block;
  background: rgba(175, 82, 222, 0.15);
  color: #DDA0DD;
  border: 1px solid rgba(175, 82, 222, 0.3);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.8rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.status-pill.pending { background: rgba(255, 149, 0, 0.15); color: #FFB340; border: 1px solid rgba(255, 149, 0, 0.4); }
.status-pill.approved, .status-pill.active { background: rgba(52, 199, 89, 0.15); color: #34C759; border: 1px solid rgba(52, 199, 89, 0.4); }
.status-pill.rejected { background: rgba(255, 59, 48, 0.15); color: #FF6961; border: 1px solid rgba(255, 59, 48, 0.4); }

.attendance-pill {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
}

.att-good { background: rgba(52, 199, 89, 0.15); color: #34C759; }
.att-avg { background: rgba(255, 149, 0, 0.15); color: #FFB340; }
.att-low { background: rgba(255, 59, 48, 0.15); color: #FF6961; }

.info-banner-bar {
  background: var(--surface);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.5rem;
  margin-bottom: 1.5rem;
}

.info-banner-bar strong {
  font-size: 1rem;
  color: var(--text-primary);
}

.info-banner-bar p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

/* --- FACULTY HERO & COURSE PICKER --- */
.faculty-hero-banner {
  background: rgba(0, 122, 255, 0.08);
  border: 1px solid rgba(0, 122, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.faculty-hero-info h2 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.faculty-hero-info p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.course-picker-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.picker-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.picker-group label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.stats-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.75rem;
}

.ribbon-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ribbon-val {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 0.25rem;
}

.stat-caption {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* --- CARDS & LIST ITEMS --- */
.facilities-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.item-surface-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.item-surface-card.urgent {
  border-color: rgba(255, 59, 48, 0.5);
  box-shadow: 0 0 15px rgba(255, 59, 48, 0.15);
}

.item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.item-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.item-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.item-foot {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-muted);
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.quote-box-ios {
  background: var(--surface);
  border-left: 3px solid var(--system-blue);
  border-radius: 0 8px 8px 0;
  padding: 0.85rem 1.15rem;
  margin-bottom: 1.25rem;
}

.quote-header {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.quote-message {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.reply-container {
  background: rgba(52, 199, 89, 0.08);
  border-left: 3px solid var(--system-green);
  border-radius: 0 8px 8px 0;
  padding: 0.85rem 1.15rem;
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: #A7F3D0;
}

/* --- MODALS --- */
.modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.ios-modal-card {
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.8);
}

.modal-header-ios {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-muted);
}

.modal-header-ios h3 {
  font-size: 1.35rem;
  font-weight: 700;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
}

.modal-close-btn:hover { color: #fff; }

.form-field {
  margin-bottom: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
}

.form-field label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.modal-footer-ios {
  display: flex;
  justify-content: flex-end;
  gap: 0.85rem;
  margin-top: 1.75rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border-muted);
}

/* Toast Container */
.toast-stack {
  position: fixed;
  bottom: 2rem;
  right: 2.5rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.toast-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: #fff;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.toast-item.success { border-color: var(--system-green); }
.toast-item.error { border-color: var(--system-red); }

/* Responsive adjustments */
@media (max-width: 1100px) {
  .auth-fullscreen { grid-template-columns: 1fr; }
  .auth-showcase-pane { display: none; }
  .metrics-grid-4 { grid-template-columns: 1fr 1fr; }
  .stats-ribbon { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .app-topbar { padding: 0.75rem 1.25rem; }
  .app-main-content { padding: 1.5rem 1.25rem 4rem; }
  .dashboard-duo-grid { grid-template-columns: 1fr; }
  .metrics-grid-4 { grid-template-columns: 1fr; }
  .stats-ribbon { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .demo-buttons-grid { grid-template-columns: 1fr; }
  .toolbar-flex { flex-direction: column; align-items: stretch; }
  .search-input-field { min-width: auto; }
}
