/* 
  TIS-RMS Static Web Application
  Faithful recreation of actual Windows & Android app screens
*/

:root {
  --primary-green: #198754;
  --primary-green-dark: #0f5132;
  --accent-emerald: #10b981;
  --accent-cyan: #06b6d4;
  --accent-amber: #f59e0b;
  --accent-rose: #ef4444;
  --accent-purple: #a855f7;

  /* Real App Exact Dark Palette */
  --app-bg: #0d1713;
  --sidebar-bg: #112019;
  --sidebar-nav-active: #1c382b;
  --card-bg: #182820;
  --card-subtle: #14221b;
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-hover: rgba(25, 135, 84, 0.4);
  --text-main: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --titlebar-green: #198754;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background: #070d0a;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}

/* ─────────────────────────────────────────────────────────────
   TOP FLOATING DEVICE SWITCHER BAR
───────────────────────────────────────────────────────────── */
.top-control-bar {
  position: sticky;
  top: 10px;
  z-index: 1000;
  background: rgba(17, 32, 25, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  margin: 10px 0 16px;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  padding-right: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.brand-badge img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.device-switcher {
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 999px;
  padding: 3px;
  gap: 4px;
}

.device-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.device-btn:hover {
  color: #fff;
}

.device-btn.active {
  background: var(--primary-green);
  color: #fff;
  box-shadow: 0 2px 10px rgba(25, 135, 84, 0.5);
}

/* ─────────────────────────────────────────────────────────────
   VIEWPORT WRAPPERS
───────────────────────────────────────────────────────────── */
.viewport-container {
  width: 100%;
  max-width: 1360px;
  display: flex;
  justify-content: center;
  padding: 0 16px 40px;
  flex: 1;
}

/* ─────────────────────────────────────────────────────────────
   1. WINDOWS DESKTOP APP LAYOUT
───────────────────────────────────────────────────────────── */
.desktop-window {
  width: 100%;
  height: 840px;
  background: var(--app-bg);
  border-radius: 12px;
  box-shadow: 0 25px 65px -15px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(25, 135, 84, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
}

/* Green Titlebar */
.win-titlebar {
  height: 34px;
  background: var(--titlebar-green);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  user-select: none;
  font-size: 12px;
  color: #fff;
}

.win-titlebar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.win-window-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.win-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Left Sidebar */
.win-sidebar {
  width: 240px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  user-select: none;
}

.win-app-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px 18px;
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 14px;
}

.win-brand-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.win-brand-info img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.win-brand-info h3 {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

.win-hamburger {
  cursor: pointer;
  color: var(--text-secondary);
}

.win-sidebar-group {
  margin-bottom: 14px;
}

.win-group-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #688574;
  letter-spacing: 0.8px;
  padding: 0 10px;
  margin-bottom: 6px;
}

.win-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.win-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s ease;
}

.win-nav-item svg {
  width: 18px;
  height: 18px;
  opacity: 0.85;
}

.win-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.win-nav-item.active {
  background: var(--sidebar-nav-active);
  color: var(--accent-emerald);
  font-weight: 600;
}

.win-nav-item.active svg {
  color: var(--accent-emerald);
  opacity: 1;
}

/* User Profile Footer in Sidebar */
.win-user-profile {
  margin-top: auto;
  padding: 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--card-border);
}

.win-user-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.win-user-details h4 {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.win-user-details span {
  font-size: 10px;
  color: var(--accent-emerald);
  font-weight: 700;
  text-transform: uppercase;
}

/* Main Screen View Area */
.win-main-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--app-bg);
}

/* Header Top Controls Inside App */
.win-stage-header {
  height: 68px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--card-border);
}

.stage-title {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}

.stage-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.btn-add-student {
  background: linear-gradient(135deg, #198754, #10b981);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(25, 135, 84, 0.35);
  transition: all 0.2s;
}

.btn-add-student:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(25, 135, 84, 0.5);
}

.win-scroll-viewport {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ─────────────────────────────────────────────────────────────
   2. ANDROID MOBILE APP LAYOUT (Pixel-Perfect Smartphone Frame)
───────────────────────────────────────────────────────────── */
.phone-frame {
  width: 395px;
  height: 840px;
  background: #000;
  border-radius: 48px;
  box-shadow: 
    0 0 0 10px #1e2822, 
    0 0 0 12px #2f3e35,
    0 25px 70px -10px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  border: 4px solid #0a110c;
}

/* Punch-hole Camera at Top */
.phone-punch-hole {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 13px;
  height: 13px;
  background: #000;
  border-radius: 50%;
  z-index: 50;
  box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.3);
}

/* Inner Screen Container with Watermark */
.phone-screen-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #0f1a14;
  overflow: hidden;
}

.phone-screen-inner::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 330px;
  height: 330px;
  background-image: url('assets/logo.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

/* Android 14 Status Bar */
.phone-status-bar {
  height: 36px;
  background: #0c1510;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  user-select: none;
  z-index: 10;
  letter-spacing: 0.2px;
}

.phone-status-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-app-icons {
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0.85;
}

.phone-status-right {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}

/* Android App Bar */
.phone-app-header {
  height: 56px;
  background: #14221b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 10;
}

.phone-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.phone-drawer-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.phone-header-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.2px;
}

.phone-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone-action-icon {
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.phone-action-btn-green {
  background: #10b981;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
}

/* Slide-out Android Navigation Drawer */
.mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.mobile-drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 290px;
  background: #111f18;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 45;
  transform: translateX(-100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.7);
}

.mobile-drawer.active {
  transform: translateX(0);
}

.mobile-drawer-header {
  padding: 24px 20px 18px;
  background: #15271e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 14px;
}

.mobile-drawer-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.mobile-drawer-user h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.mobile-drawer-user span {
  font-size: 12px;
  color: var(--accent-emerald);
}

.mobile-drawer-user p {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.mobile-drawer-body {
  padding: 16px 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-drawer-group-title {
  font-size: 10px;
  font-weight: 700;
  color: #688574;
  letter-spacing: 0.8px;
  padding: 10px 14px 4px;
  text-transform: uppercase;
}

.mobile-drawer-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.mobile-drawer-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.mobile-drawer-item.active {
  background: #1c382b;
  color: var(--accent-emerald);
  font-weight: 600;
}

.mobile-drawer-item svg,
.mobile-drawer-item span.icon {
  width: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* Mobile Scrollable Screen Content */
.phone-scroll-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 2;
}

/* Android Gesture Navigation Bar at Bottom */
.android-gesture-pill {
  width: 120px;
  height: 4px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  margin: 8px auto 6px;
  flex-shrink: 0;
  z-index: 10;
}

/* ─────────────────────────────────────────────────────────────
   ANDROID-SPECIFIC CARDS & COMPONENTS (From Screenshots)
───────────────────────────────────────────────────────────── */
.android-page-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
  margin-bottom: 2px;
}

.android-page-subtitle {
  font-size: 13px;
  color: #8e9e95;
  line-height: 1.4;
  margin-bottom: 4px;
}

/* 2x2 Android KPI Grid */
.android-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.android-stat-card {
  background: #182820;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}

.android-stat-card:hover {
  border-color: rgba(25, 135, 84, 0.4);
}

.android-stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.android-stat-title {
  font-size: 12px;
  color: #cbd5e1;
  font-weight: 500;
}

.android-stat-val {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}

/* Segmented Tabs / Pills on Android */
.android-segmented-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.android-pill-group {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #13221a;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.android-pill {
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.android-pill.active {
  background: #198754;
  color: #fff;
}

/* Filter pills horizontal scrolling */
.android-filter-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.android-chip {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  background: #182820;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  cursor: pointer;
}

.android-chip.active {
  background: #198754;
  color: #fff;
  border-color: #198754;
}

/* Android Student Card */
.android-student-card {
  background: #182820;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.android-student-card:hover {
  border-color: rgba(25, 135, 84, 0.4);
}

.android-student-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.android-student-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #123727;
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.android-student-info {
  flex: 1;
}

.android-student-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.android-student-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.android-badges-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.android-student-sub {
  font-size: 11px;
  color: #8e9e95;
  margin-top: 2px;
}

.android-student-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 8px;
}

.android-doc-prog {
  display: flex;
  align-items: center;
  gap: 8px;
}

.android-doc-text {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}

.android-doc-bar {
  width: 50px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.android-doc-fill {
  height: 100%;
  background: #38bdf8;
}

.android-folder-icon {
  color: #f59e0b;
  font-size: 16px;
}

/* Android Pagination Controls */
.android-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 10px 0 6px;
}

.android-page-btn {
  background: #14241c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.android-page-btn.active {
  background: #198754;
  color: #fff;
  border-color: #198754;
}

/* DepEd Transparency Board Card */
.android-transparency-card {
  background: #198754;
  border-radius: 14px;
  padding: 16px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.android-transparency-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* User Card on Android */
.android-user-card {
  background: #182820;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.android-user-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.android-user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #153e54;
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.android-user-details h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.android-user-handle {
  font-size: 11px;
  color: #8e9e95;
  margin-top: 1px;
}

.android-user-contact {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

.android-user-badge {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

/* History Activity Card on Android */
.android-activity-card {
  background: #182820;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  gap: 12px;
}

.android-activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.android-activity-icon.archive {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.android-activity-icon.create {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.android-activity-icon.update {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.android-activity-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.android-activity-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.android-activity-tags {
  display: flex;
  gap: 6px;
}

.android-tag-archive {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.android-tag-student {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.android-activity-date {
  font-size: 11px;
  color: #64748b;
}

.android-activity-desc {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.4;
}

.android-activity-author {
  font-size: 11px;
  color: #8e9e95;
}

/* Callout Info Boxes on Android Settings */
.android-info-box-green {
  background: rgba(25, 135, 84, 0.12);
  border: 1px solid rgba(25, 135, 84, 0.3);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 11px;
  color: #a7f3d0;
  line-height: 1.4;
  margin-top: 8px;
}

.android-info-box-blue {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 11px;
  color: #bae6fd;
  line-height: 1.4;
  margin-top: 8px;
}

/* ─────────────────────────────────────────────────────────────
   SHARED SCREEN COMPONENTS (Pixel-Perfect to Screenshots)
───────────────────────────────────────────────────────────── */

/* Banner: Setup Required */
.setup-banner {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.setup-banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}

.setup-banner-icon {
  color: var(--accent-emerald);
}

/* Stat Cards (from actual screenshot: 91 Total Students, 18 Active Users, etc.) */
.stat-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.phone-frame .stat-cards-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.app-stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 16px 18px;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}

.app-stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--card-border-hover);
}

.app-stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.app-stat-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.app-stat-icon.green { background: rgba(25, 135, 84, 0.18); color: var(--accent-emerald); }
.app-stat-icon.blue { background: rgba(6, 182, 212, 0.18); color: var(--accent-cyan); }
.app-stat-icon.amber { background: rgba(245, 158, 11, 0.18); color: var(--accent-amber); }

.app-stat-chevron {
  color: var(--text-muted);
  font-size: 14px;
}

.app-stat-number {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.app-stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
  font-weight: 500;
}

/* KPI Analytics Section */
.kpi-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-top: 10px;
}

.kpi-section-title span.badge {
  background: rgba(25, 135, 84, 0.2);
  color: var(--accent-emerald);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}

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

.phone-frame .kpi-grid {
  grid-template-columns: 1fr;
}

.kpi-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 18px;
}

.kpi-card-header h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.kpi-card-header p {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
  margin-bottom: 14px;
}

/* Circular rings */
.rings-container {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 10px 0;
}

.ring-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.circular-ring {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 3px solid rgba(25, 135, 84, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-emerald);
}

.ring-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.ring-sub {
  font-size: 10px;
  color: var(--text-muted);
}

/* Progress bar inside KPI */
.kpi-progress-bar {
  margin-bottom: 12px;
}

.kpi-bar-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
}

.bar-track-custom {
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill-green {
  height: 100%;
  width: 6.7%;
  background: var(--accent-emerald);
  border-radius: 999px;
}

.bar-fill-amber {
  height: 100%;
  width: 53.3%;
  background: var(--accent-amber);
  border-radius: 999px;
}

/* ─────────────────────────────────────────────────────────────
   STUDENTS DIRECTORY CARDS (from actual screenshot)
───────────────────────────────────────────────────────────── */
.students-list-view {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.student-card-row {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s;
}

.phone-frame .student-card-row {
  padding: 12px 14px;
}

.student-card-row:hover {
  background: #1c3026;
  border-color: var(--card-border-hover);
}

.student-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 220px;
}

.student-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(25, 135, 84, 0.2);
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.student-names h4 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.2px;
}

.student-names span {
  font-size: 11px;
  color: var(--text-muted);
}

.student-middle {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  padding: 0 16px;
}

.phone-frame .student-middle {
  display: none;
}

.student-section-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

/* Badges */
.badge-4ps {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
}

.badge-inactive {
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
}

.badge-dropped {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
}

.student-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.docs-progress-chip {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.docs-progress-text {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.docs-mini-bar {
  width: 70px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.docs-mini-fill {
  height: 100%;
  background: var(--accent-cyan);
  border-radius: 999px;
}

.folder-action-icon {
  color: var(--accent-amber);
}

/* Pagination bar (bottom of students screen) */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  user-select: none;
}

.page-btn {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.page-btn.active {
  background: var(--primary-green);
  color: #fff;
  border-color: var(--primary-green);
}

/* ─────────────────────────────────────────────────────────────
   SETTINGS SCREEN COLLAPSIBLE CARDS (from actual screenshot)
───────────────────────────────────────────────────────────── */
.settings-list-view {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-card-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.settings-card-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.settings-card-header h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.settings-card-header span.chevron {
  color: var(--text-secondary);
  transition: transform 0.2s;
}

.settings-card-body {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.info-row .label { color: var(--text-secondary); }
.info-row .val { color: #fff; font-weight: 600; }

/* ─────────────────────────────────────────────────────────────
   DOCUMENTS & ARCHIVES CARDS (from actual screenshot)
───────────────────────────────────────────────────────────── */
.doc-folder-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s;
}

.doc-folder-card:hover {
  background: #1c3026;
  border-color: var(--card-border-hover);
}

.doc-folder-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.doc-folder-icon {
  font-size: 28px;
  color: var(--accent-amber);
}

.doc-folder-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.doc-folder-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.doc-folder-badges {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.badge-jhs {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
}

.badge-shs {
  background: rgba(6, 182, 212, 0.15);
  color: #38bdf8;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #122119;
  border: 1px solid rgba(25, 135, 84, 0.4);
  border-radius: 16px;
  width: 90%;
  max-width: 520px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

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

.modal-head h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-emerald);
}

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

.modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Toast */
.download-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0b140f;
  border: 1px solid var(--accent-emerald);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 3000;
  transform: translateY(140%);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.download-toast.active {
  transform: translateY(0);
}
