/* ════════════════════════════════════════════════════════════════
   screens.css — Screen-specific styles + Responsive Layout
   ════════════════════════════════════════════════════════════════ */

/* ── SCREEN: Splash ──────────────────────────────────────────── */
.splash-screen {
  background: var(--grad-dark);
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 40px 24px;
  gap: 16px;
}
.splash-logo {
  width: 120px; height: 120px;
  border-radius: 28px;
  display: flex; align-items: center; justify-content: center;
  font-size: 42px;
  animation: splashPop 0.6s var(--ease) both;
}
@keyframes splashPop {
  from { transform: scale(0.7); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.splash-name {
  font-family: var(--font-head);
  font-size: 36px; font-weight: 800;
  color: #fff; letter-spacing: -0.5px;
  animation: fadeUp 0.5s 0.3s var(--ease) both;
}
.splash-tag {
  color: rgba(255,255,255,0.7);
  font-size: 14px; text-align: center;
  animation: fadeUp 0.5s 0.4s var(--ease) both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.splash-spinner {
  width: 36px; height: 36px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-top: 40px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.splash-credit {
  position: absolute; bottom: 40px;
  color: rgba(255,255,255,0.3);
  font-size: 11px; text-align: center;
}

/* ── SCREEN: Login ───────────────────────────────────────────── */
.login-screen { min-height: 100vh; background: var(--slate); }
.login-header {
  background: var(--grad-dark);
  padding: 48px 24px 36px;
  text-align: center;
}
.login-logo {
  width: 80px; height: 80px;
  border-radius: 20px;
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.login-header h2 { color: #fff; font-family: var(--font-head); font-size: 24px; font-weight: 700; }
.login-header p  { color: rgba(255,255,255,0.7); font-size: 13px; margin-top: 4px; }
.login-body { padding: 28px 20px; max-width: 480px; margin: 0 auto; }
.free-banner {
  background: #EEF2FF;
  border-radius: var(--r-md);
  padding: 12px 14px;
  display: flex; gap: var(--sp-sm); align-items: flex-start;
  margin-top: 20px;
}
.free-banner .title { font-size: 12px; font-weight: 700; color: var(--indigo); }
.free-banner .desc  { font-size: 11px; color: var(--text-2); margin-top: 2px; }
.link-text { text-align: center; font-size: 12px; color: var(--text-2); margin-top: 14px; }
.link-text a { color: var(--indigo); font-weight: 600; cursor: pointer; }
.forgot-link { text-align: right; margin-bottom: 14px; }
.forgot-link span { font-size: 12px; color: var(--indigo); font-weight: 600; cursor: pointer; }

/* ── SCREEN: Onboarding ──────────────────────────────────────── */
.onboarding-header {
  background: var(--grad-primary);
  padding: 28px 20px 24px;
  text-align: center;
}
.onboarding-step { color: rgba(255,255,255,0.7); font-size: 12px; }
.onboarding-title { color: #fff; font-family: var(--font-head); font-size: 22px; font-weight: 700; margin-top: 4px; }
.step-dots { display: flex; gap: 6px; justify-content: center; margin-top: 14px; }
.step-dot-bar { height: 4px; width: 60px; background: rgba(255,255,255,0.3); border-radius: 2px; }
.step-dot-bar.active { background: #fff; }
.onboarding-body { padding: 20px 16px; max-width: 480px; margin: 0 auto; }
.role-card {
  border: 2px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  display: flex; align-items: center; gap: var(--sp-md);
  margin-bottom: 10px; cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}
.role-card:hover              { border-color: var(--indigo-light); background: #f8f7ff; }
.role-card.selected           { border-color: var(--indigo); background: #EEF2FF; }
.role-icon {
  width: 52px; height: 52px;
  background: #EEF2FF;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
}
.role-card.selected .role-icon { background: var(--indigo); }
.role-title { font-family: var(--font-head); font-size: 14px; font-weight: 700; }
.role-sub   { font-size: 11px; color: var(--text-2); margin-top: 2px; }
.role-check {
  margin-left: auto;
  width: 22px; height: 22px;
  background: var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px; flex-shrink: 0;
  transition: background var(--dur-fast) var(--ease);
}
.role-card.selected .role-check { background: var(--indigo); }

/* ── SCREEN: Dashboard ───────────────────────────────────────── */
.dash-header {
  background: var(--grad-primary);
  padding: var(--sp-xl) var(--sp-xl) var(--sp-3xl);
}
.dash-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.dash-greeting { color: rgba(255,255,255,0.8); font-size: 12px; }
.dash-name { color: #fff; font-family: var(--font-head); font-size: 18px; font-weight: 700; }
.dash-cards {
  margin: -24px 14px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.stat-card.full { grid-column: 1 / -1; }
.dash-body { padding: 16px 14px; padding-bottom: calc(var(--nav-bar-h) + 16px); }

/* ── SCREEN: Student List ────────────────────────────────────── */
.student-list-body {
  background: var(--slate);
  flex: 1;
  padding-bottom: calc(var(--nav-bar-h) + 80px);
}
.student-list-inner { padding: 0 14px; }

/* ── SCREEN: Add Student ─────────────────────────────────────── */
.form-body {
  padding: 16px;
  background: var(--slate);
  flex: 1;
  padding-bottom: calc(var(--nav-bar-h) + 40px);
}

/* ── SCREEN: Student Detail ──────────────────────────────────── */
.student-profile-card {
  margin: -20px 14px 0;
  background: #fff; border-radius: var(--r-xl);
  padding: 16px; box-shadow: var(--shadow-lg);
  display: flex; gap: 14px; align-items: center;
}
.profile-info .name { font-family: var(--font-head); font-size: 17px; font-weight: 700; }
.profile-info .meta { font-size: 11px; color: var(--text-2); margin-top: 2px; }
.profile-actions { display: flex; gap: var(--sp-sm); margin-top: 8px; flex-wrap: wrap; }
.detail-body { padding: 14px; padding-bottom: calc(var(--nav-bar-h) + 16px); }
.fee-status-card {
  background: linear-gradient(135deg, #EEF2FF, #F5F3FF);
  border: 1.5px solid #C7D2FE;
  border-radius: var(--r-md);
  padding: 14px; margin-bottom: 10px;
}
.fee-history-item { display: flex; align-items: center; gap: var(--sp-md); padding: 8px 0; border-bottom: 1px solid #F3F4F6; }
.fee-history-item:last-child { border-bottom: none; }
.fee-month-dot {
  width: 38px; height: 38px;
  background: #EEF2FF; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: var(--indigo); flex-shrink: 0;
}

/* ── SCREEN: Collect Fee ─────────────────────────────────────── */
.payment-body { padding: 16px; background: var(--slate); padding-bottom: calc(var(--nav-bar-h) + 40px); }
.student-select-card {
  background: #fff; border-radius: var(--r-md); padding: 12px;
  display: flex; align-items: center; gap: var(--sp-md); margin-bottom: 16px;
  border: 2px solid var(--indigo); box-shadow: 0 2px 8px rgba(79,70,229,0.12);
}
.amount-card {
  background: var(--grad-primary);
  border-radius: var(--r-lg); padding: 18px; margin-bottom: 14px; text-align: center;
}
.amount-label { color: rgba(255,255,255,0.7); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.amount-val   { font-family: var(--font-head); font-size: 36px; font-weight: 800; color: #fff; margin: 4px 0; }
.amount-sub   { color: rgba(255,255,255,0.6); font-size: 11px; }
.amount-input-wrap { display: flex; align-items: center; gap: 8px; }
.amount-currency { font-family: var(--font-head); font-size: 24px; font-weight: 700; color: rgba(255,255,255,0.6); }
.amount-editable {
  background: rgba(255,255,255,0.15); border: none; border-bottom: 2px solid rgba(255,255,255,0.5);
  font-family: var(--font-head); font-size: 36px; font-weight: 800; color: #fff;
  text-align: center; width: 160px; padding: 4px;
}
.amount-editable:focus { outline: none; border-bottom-color: #fff; }

/* ── SCREEN: Receipt ─────────────────────────────────────────── */
.receipt-bg { background: var(--slate); padding: 14px; flex: 1; }
.receipt-footer { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }

/* ── SCREEN: Reports ─────────────────────────────────────────── */
.reports-body { padding: 14px; background: var(--slate); flex: 1; padding-bottom: calc(var(--nav-bar-h) + 16px); }
.report-card { background: #fff; border-radius: var(--r-lg); padding: 14px; margin-bottom: 10px; box-shadow: 0 1px 6px rgba(0,0,0,0.04); cursor: pointer; transition: box-shadow var(--dur-fast) var(--ease); }
.report-card:hover { box-shadow: var(--shadow-md); }
.report-header { display: flex; align-items: center; gap: var(--sp-md); margin-bottom: 10px; }
.report-icon { width: 44px; height: 44px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.ri-purple { background: #EEF2FF; }
.ri-green  { background: #D1FAE5; }
.ri-amber  { background: #FEF3C7; }
.ri-rose   { background: #FEE2E2; }
.report-title { font-size: 13px; font-weight: 700; }
.report-sub   { font-size: 10px; color: var(--text-2); margin-top: 1px; }
.report-arrow { margin-left: auto; font-size: 16px; color: var(--text-3); }
.pending-item { display: flex; align-items: center; gap: var(--sp-sm); padding: 7px 0; border-bottom: 1px solid #F3F4F6; }
.pending-item:last-child { border-bottom: none; }
.pending-name { font-size: 11px; font-weight: 600; flex: 1; }
.pending-days { font-size: 10px; font-weight: 700; }
.export-row { display: flex; gap: var(--sp-sm); margin-top: 4px; }

/* ── SCREEN: Settings ────────────────────────────────────────── */
.settings-body { padding: 14px; background: var(--slate); flex: 1; padding-bottom: calc(var(--nav-bar-h) + 16px); }
.settings-profile {
  background: var(--grad-primary);
  border-radius: var(--r-xl); padding: 18px;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 14px;
}
.settings-av {
  width: 56px; height: 56px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; overflow: hidden; flex-shrink: 0;
}
.settings-name { font-family: var(--font-head); font-size: 16px; font-weight: 700; color: #fff; }
.settings-role { font-size: 11px; color: rgba(255,255,255,0.7); margin-top: 2px; }
.settings-edit { margin-left: auto; background: rgba(255,255,255,0.2); border-radius: var(--r-sm); padding: 6px 12px; font-size: 11px; font-weight: 700; color: #fff; cursor: pointer; flex-shrink: 0; }

/* ── SCREEN: Upgrade ─────────────────────────────────────────── */
.upgrade-screen {
  background: var(--grad-dark);
  display: block;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  height: 100%;
  padding: 28px 20px;
  padding-bottom: 80px;
}
.upgrade-screen::-webkit-scrollbar { display: none; }
.upgrade-price-card {
  background: rgba(255,255,255,0.1);
  border-radius: 20px; padding: 20px;
  margin-bottom: 16px; border: 1px solid rgba(255,255,255,0.2);
  text-align: center;
}
.upgrade-price-label { color: rgba(255,255,255,0.6); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.upgrade-price-val   { font-family: var(--font-head); font-size: 42px; font-weight: 800; color: #fff; }
.upgrade-price-sub   { color: rgba(255,255,255,0.5); font-size: 13px; }
.upgrade-feature { display: flex; align-items: center; gap: var(--sp-md); margin-bottom: 12px; }
.feature-check { width: 26px; height: 26px; background: var(--mint); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; flex-shrink: 0; }
.feature-text { color: #fff; font-size: 13px; }
.upgrade-cta { background: #fff; border-radius: var(--r-md); padding: 15px; text-align: center; font-family: var(--font-head); font-size: 16px; font-weight: 800; color: var(--indigo); cursor: pointer; margin-bottom: 10px; transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.upgrade-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.upgrade-fine { text-align: center; color: rgba(255,255,255,0.5); font-size: 11px; }
.upgrade-annual { text-align: center; color: rgba(255,255,255,0.4); font-size: 11px; margin-top: 8px; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE LAYOUT
   Force Mobile App layout on all screen sizes
   ══════════════════════════════════════════════════════════════ */



/* ── Flutter-style Forms (Collect Fee) ───────────────────────── */
.flutter-input-wrapper {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 6px 12px;
  transition: border-color var(--dur-short) var(--ease);
}
.flutter-input-wrapper:focus-within {
  border-color: var(--indigo);
}
.flutter-input-icon {
  color: var(--text-2);
  font-size: 20px;
  width: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.flutter-input-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin: 0 8px;
}
.flutter-label {
  font-size: 11px;
  color: var(--text-2);
  margin-bottom: 2px;
}
.flutter-btn-primary {
  background: var(--indigo);
  color: white;
  width: 100%;
  border-radius: 12px;
  padding: 16px;
  border: none;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.flutter-btn-primary:active { opacity: 0.8; }
.flutter-btn-primary[disabled] {
  background: #CBD5E1;
  cursor: not-allowed;
}
.pointer-none { pointer-events: none; }
