/* =========================================================
   COLOR VARIABLES
   ========================================================= */
:root {
  --brand-navy: #16326b;
  --brand-blue: #2f6fed;
  --color-primary: #1f2d3d;
  --color-primary-dark: #16212e;
  --color-accent: #27ae60;
  --color-accent-dark: #1e8449;
  --color-bg: #f4f6f8;
  --color-card: #ffffff;
  --color-text: #2d2d2d;
  --color-text-muted: #6b7280;
  --color-border: #e2e5e9;

  --color-urgent-bg: #fdecea;
  --color-urgent-dot: #e74c3c;
  --color-normal-bg: #fff8cc;
  --color-normal-dot: #e6a817;
  --color-low-bg: #e6f0fb;
  --color-low-dot: #3498db;
  --color-completed-bg: #e4f7e9;
  --color-completed-dot: #27ae60;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }

body {
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.45;
  padding-bottom: 230px; /* room for floating buttons + bottom nav */
}

/* ===== Top App Bar ===== */
#app-header {
  display: block;
  position: sticky;
  top: 0;
  z-index: 60;
  background-color: #ffffff;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  min-height: 52px;
}

#app-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

#app-logo { font-size: 1.6rem; }
#app-brand h1 { font-size: 1.4rem; font-weight: 800; }
.brand-dark { color: var(--brand-navy); }
.brand-blue { color: var(--brand-blue); }

.header-icon-btn {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

/* ===== Student Switcher ===== */
#student-switcher {
  position: relative;
  max-width: 900px;
  margin: 12px auto 0 auto;
  padding: 0 12px;
}

#student-switcher-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primary);
}

#student-avatar {
  font-size: 1.6rem;
  background-color: #eef1f4;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropdown-caret { font-size: 0.9rem; color: var(--color-text-muted); }

#student-dropdown-list {
  position: absolute;
  top: 100%;
  left: 12px;
  margin-top: 6px;
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  z-index: 70;
  min-width: 220px;
  overflow: hidden;
}

.student-dropdown-item {
  padding: 10px 14px;
  font-size: 0.9rem;
  cursor: pointer;
}

.student-dropdown-item:hover { background-color: #f4f6f8; }
.student-dropdown-item.active { background-color: #eaf1ff; font-weight: 600; }

/* ===== Stat Cards ===== */
#stat-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  max-width: 900px;
  margin: 10px auto;
  padding: 0 12px;
}

.stat-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 6px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.stat-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.stat-icon { font-size: 0.95rem; }
.stat-number { font-size: 1.15rem; font-weight: 800; }
.stat-label { font-size: 0.66rem; color: var(--color-text-muted); font-weight: 600; margin-top: 0; }

.stat-icon { font-size: 1.2rem; }
.stat-number { font-size: 1.6rem; font-weight: 800; }
.stat-label { font-size: 0.72rem; color: var(--color-text-muted); font-weight: 600; }

.stat-danger { background-color: var(--color-urgent-bg); }
.stat-danger .stat-number { color: var(--color-urgent-dot); }
.stat-warning { background-color: var(--color-normal-bg); }
.stat-warning .stat-number { color: #b8860b; }
.stat-success { background-color: var(--color-completed-bg); }
.stat-success .stat-number { color: var(--color-accent-dark); }

/* ===== Filter Pills ===== */
#filter-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 900px;
  margin: 0 auto 12px auto;
  padding: 0 12px;
}

.filter-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.filter-pill {
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid var(--color-border);
  background-color: #ffffff;
  color: var(--color-primary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.filter-pill:hover { background-color: #eef1f4; }
.filter-pill.active {
  background-color: var(--brand-navy);
  border-color: var(--brand-navy);
  color: #ffffff;
}

/* ===== Task Table ===== */
#task-table-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 12px;
}

.task-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  margin-bottom: 10px;
  border-radius: 10px;
  background-color: var(--color-card);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.row-line { overflow-wrap: break-word; line-height: 1.3; }

.row-top { display: flex; align-items: center; gap: 8px; }
.row-top .priority-ball {
  margin: 0;
  flex-shrink: 0;
}

.subject-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-primary);
}

.task-text {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-text);
}

.dates-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.dates-text { flex: 1 1 auto; }

.days-badge {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.74rem;
  white-space: nowrap;
  background-color: #ffffff;
}

.days-badge-urgent    { color: var(--color-urgent-dot); border: 1px solid var(--color-urgent-dot); }
.days-badge-normal    { color: #b8860b; border: 1px solid var(--color-normal-dot); }
.days-badge-low       { color: var(--color-low-dot); border: 1px solid var(--color-low-dot); }
.days-badge-completed { color: var(--color-accent-dark); border: 1px solid var(--color-accent-dark); }

.meta-line {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.actions-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.done-check-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
}

.row-urgent    { background-color: var(--color-urgent-bg); }
.row-normal    { background-color: var(--color-normal-bg); }
.row-low       { background-color: var(--color-low-bg); }
.row-completed { background-color: var(--color-completed-bg); }

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

/* ===== Column: Subject ===== */
.priority-ball {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  margin: 7px auto 0 auto;
}

.ball-red       { background-color: var(--color-urgent-dot); }
.ball-orange    { background-color: var(--color-normal-dot); }
.ball-blue      { background-color: var(--color-low-dot); }
.ball-completed { background-color: var(--color-accent-dark); }

.done-checkbox { width: 18px; height: 18px; cursor: pointer; }
.action-icon { cursor: pointer; }
.action-icon:hover { transform: scale(1.15); }

/* ===== About Us View ===== */
#about-view {
  max-width: 900px;
  margin: 20px auto;
  padding: 0 16px;
  background-color: var(--color-card);
}
#about-view h2 { color: var(--color-primary); margin-bottom: 10px; }

/* ===== Footer ===== */
#app-footer {
  text-align: center;
  padding: 16px;
  background-color: var(--brand-navy);
  color: #cfd8e3;
  font-size: 0.75rem;
  margin-top: 20px;
}

/* ===== Floating Buttons ===== */
.fab-button {
  position: fixed;
  right: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.5rem;
  border: none;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
}

.fab-secondary { bottom: 140px; background-color: #2980b9; }
.fab-secondary:hover { background-color: #21618c; }

.add-task-pill {
  position: fixed;
  right: 20px;
  bottom: 78px;
  padding: 12px 20px;
  border-radius: 30px;
  background-color: var(--brand-blue);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
  cursor: pointer;
  z-index: 90;
}
.add-task-pill:hover { background-color: #1e5fd8; }

/* ===== Bottom Navigation ===== */
#bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  background-color: #ffffff;
  border-top: 1px solid var(--color-border);
  z-index: 95;
}

.nav-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 8px 4px 10px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
}

.nav-icon { font-size: 1.2rem; }
.nav-btn.active { color: var(--brand-blue); }

/* ===== Modals (Settings / Add Student / Paste Message / Add Task) ===== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 16px;
}
.modal-overlay[hidden] { display: none; }

.modal-content {
  background-color: var(--color-card);
  border-radius: 12px;
  padding: 22px;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text-muted);
}
.modal-close:hover { color: var(--color-text); }

.modal-content h2 { margin-bottom: 14px; color: var(--color-primary); font-size: 1.15rem; }
.modal-hint { font-size: 0.82rem; color: var(--color-text-muted); margin-bottom: 10px; }

#add-task-form, #add-student-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#add-task-form label, #add-student-form label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #444;
}

#add-task-form input, #add-task-form select,
#add-student-form input, #add-student-form select,
#paste-message-text {
  padding: 9px 10px;
  font-size: 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  width: 100%;
  background-color: #fff;
  font-family: inherit;
}

#add-task-form input:focus, #add-task-form select:focus,
#add-student-form input:focus, #add-student-form select:focus,
#paste-message-text:focus {
  outline: none;
  border-color: var(--brand-navy);
}

#add-task-form button[type="submit"],
#add-student-form button[type="submit"],
#parse-message-btn {
  margin-top: 8px;
  padding: 11px;
  background-color: var(--brand-navy);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
#add-task-form button[type="submit"]:hover,
#add-student-form button[type="submit"]:hover,
#parse-message-btn:hover { background-color: var(--color-primary-dark); }

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  padding: 8px 0;
}
.toggle-row small { color: var(--color-text-muted); }
.toggle-row input[type="checkbox"] { width: 20px; height: 20px; flex-shrink: 0; }
/* =========================================================
   ABOUT US CONTENT
   ========================================================= */
#about-view {
  padding-top: 20px;
}

.about-block {
  background-color: var(--color-card);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.about-block h2 {
  color: var(--brand-navy);
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.about-block h3 {
  color: var(--brand-navy);
  margin-bottom: 10px;
  font-size: 1rem;
}

.about-block p {
  font-size: 0.88rem;
  color: var(--color-text);
  line-height: 1.5;
}

.about-note {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 6px;
}

/* Product cross-sell cards */
.product-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}

.product-card:last-of-type {
  border-bottom: none;
}

.product-icon {
  font-size: 1.6rem;
}

.product-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.badge-soon {
  font-size: 0.65rem;
  font-weight: 700;
  background-color: #eef1f4;
  color: var(--color-text-muted);
  padding: 2px 8px;
  border-radius: 10px;
}

.product-desc {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* Contact links */
.link-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-link {
  display: block;
  padding: 10px 14px;
  background-color: #eaf1ff;
  color: var(--brand-navy);
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.about-link:hover {
  background-color: #dbe7ff;
}
/* ===== Completed Tasks Section (collapsible) ===== */
#completed-section {
  max-width: 900px;
  margin: 4px auto 0 auto;
  padding: 0 12px;
}

.completed-toggle-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-navy);
  cursor: pointer;
}

.completed-toggle-btn:hover {
  background-color: #eef1f4;
}

#completed-table-body {
  margin-top: 10px;
}
/* ===== Settings OK button ===== */
.settings-ok-btn {
  margin-top: 14px;
  width: 100%;
  padding: 11px;
  background-color: var(--color-accent);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.settings-ok-btn:hover {
  background-color: var(--color-accent-dark);
}

/* ===== Custom "25" Calendar Icon (replaces 📅 emoji) ===== */
.calendar-icon {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  width: 24px;
  height: 22px;
  background-color: #ffffff;
  border: 2px solid #e6a817;
  border-radius: 4px;
  margin-bottom: 2px;
}

.calendar-icon-top {
  position: absolute;
  top: -5px;
  left: 3px;
  right: 3px;
  height: 5px;
  background-color: #e6a817;
  border-radius: 2px;
}

.calendar-icon-num {
  font-size: 0.62rem;
  font-weight: 800;
  color: #b8860b;
  line-height: 1;
  padding-bottom: 2px;
}
#scroll-hint {
  text-align: center;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  max-width: 900px;
  margin: 0 auto 10px auto;
  padding: 0 12px;
}
/* Make overdue/due-today badges visually distinct */
.days-badge-urgent {
  font-weight: 800;
}
.stat-overdue { background-color: #fde3e0; }
.stat-overdue .stat-number { color: #c0392b; }

/* ===== Disclaimer block styling ===== */
.disclaimer-block {
  border: 1px solid #f0c674;
  background-color: #fffaf0;
}

.disclaimer-block h3 {
  color: #a15c00;
}

.disclaimer-block p {
  font-size: 0.82rem;
  color: #5c4a1e;
  margin-bottom: 8px;
}

.disclaimer-block p:last-child {
  margin-bottom: 0;
}
/* =========================================================
   LOGIN SCREEN
   ========================================================= */
#login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg);
  padding: 20px;
}

#login-screen[hidden] {
  display: none;
}

.login-box {
  background-color: #ffffff;
  border-radius: 14px;
  padding: 30px 24px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  text-align: center;
}

.login-logo { font-size: 2.2rem; margin-bottom: 6px; }
.login-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 4px; }
.login-subtitle { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 18px; }

#login-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

#login-form label { font-size: 0.8rem; font-weight: 600; color: #444; }

#login-form input {
  padding: 10px;
  font-size: 0.92rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  width: 100%;
}

#login-form input:focus { outline: none; border-color: var(--brand-navy); }

.login-error {
  color: #c0392b;
  font-size: 0.8rem;
  background-color: #fdecea;
  padding: 8px 10px;
  border-radius: 6px;
}

#login-submit-btn {
  margin-top: 4px;
  padding: 12px;
  background-color: var(--brand-navy);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

#login-submit-btn:hover { background-color: var(--color-primary-dark); }

.login-toggle-link {
  margin-top: 16px;
  background: none;
  border: none;
  color: var(--brand-blue);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

/* ===== Logout button in Settings ===== */
.logout-btn {
  margin-top: 10px;
  width: 100%;
  padding: 11px;
  background-color: #fdecea;
  color: #c0392b;
  border: 1px solid #f5b7b1;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.logout-btn:hover { background-color: #fadbd8; }
/* ===== Logo images (replacing 📚 emoji) ===== */
.login-logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 6px auto;
  display: block;
}

#app-logo {
  width: 32px;
  height: 32px;
  display: block;
}
/* ===== Manage Students list ===== */
#manage-students-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.manage-student-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background-color: #f4f6f8;
  border-radius: 8px;
}

.manage-student-avatar { font-size: 1.3rem; }

.manage-student-name {
  flex: 1;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-primary);
}

.manage-student-icon {
  cursor: pointer;
  font-size: 1rem;
}
.manage-student-icon:hover { transform: scale(1.15); }

.add-new-student-btn {
  width: 100%;
  padding: 13px;
  background-color: #eaf1ff;
  color: var(--brand-navy);
  border: 2px solid var(--brand-blue);
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.add-new-student-btn:hover {
  background-color: #dbe7ff;
  transform: translateY(-1px);
}

.add-new-student-icon {
  font-size: 1.15rem;
  font-weight: 800;
}
/* ===== Success Toast Notification ===== */
.toast {
  position: fixed;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #1e8449;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: top 0.3s ease;
  max-width: 90%;
  text-align: center;
}

.toast[hidden] { display: none; }

.toast.toast-show {
  top: 16px;
}

.toast-tick { font-size: 1rem; }
/* ===== Privacy Policy page ===== */
#policy-view {
  max-width: 900px;
  margin: 16px auto;
  padding: 0 16px;
}

.policy-back-link {
  text-align: center;
  margin: 20px 0;
}

.policy-back-link a {
  color: var(--brand-blue);
  font-weight: 600;
  text-decoration: none;
}
/* ===== Delete Account ===== */
.danger-zone {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}

.delete-account-btn {
  width: 100%;
  padding: 10px;
  background-color: #ffffff;
  color: #c0392b;
  border: 1px solid #f5b7b1;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.delete-account-btn:hover { background-color: #fdecea; }

.delete-warning {
  font-size: 0.85rem;
  color: #a94442;
  background-color: #fdecea;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 14px;
  line-height: 1.4;
}

#delete-account-form label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #444;
  display: block;
  margin-bottom: 6px;
}

#delete-account-form input {
  padding: 10px;
  font-size: 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  width: 100%;
  margin-bottom: 10px;
}

.delete-account-btn-row {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.cancel-delete-btn {
  flex: 1;
  padding: 11px;
  background-color: #f4f6f8;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.cancel-delete-btn:hover { background-color: #e8ebee; }

.confirm-delete-btn {
  flex: 1.4;
  padding: 11px;
  background-color: #c0392b;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}
.confirm-delete-btn:hover { background-color: #a5281b; }
.confirm-delete-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.inline-link {
  color: var(--brand-blue);
  font-weight: 600;
}

/* Custom Native Modal */
.custom-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 16px;
}
.custom-modal-backdrop[hidden] {
  display: none !important;
}
.custom-modal-box {
  background: #ffffff;
  border-radius: 14px;
  max-width: 320px;
  width: 100%;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  text-align: left;
}
.custom-modal-title {
  margin: 0 0 8px 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: #1a1a1a;
}
.custom-modal-text {
  margin: 0 0 20px 0;
  font-size: 0.92rem;
  color: #4b5563;
  line-height: 1.45;
}
.custom-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.modal-btn {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  border: none;
}
.modal-cancel-btn {
  background: #e5e7eb;
  color: #374151;
}
.modal-delete-btn {
  background: #dc2626;
  color: #ffffff;
}
/* In-App PWA Install Banner */
.install-banner {
  position: fixed;
  bottom: 72px; /* Sits cleanly above the bottom nav bar */
  left: 12px;
  right: 12px;
  max-width: 480px;
  margin: 0 auto;
  background: #16326b;
  color: #ffffff;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  z-index: 9500;
}

.install-banner[hidden] {
  display: none !important;
}

.install-banner-content {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.install-banner-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.install-banner-text {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  line-height: 1.3;
}

.install-banner-text strong {
  font-size: 0.9rem;
  font-weight: 600;
}

.install-banner-text span {
  opacity: 0.85;
  font-size: 0.78rem;
}

.install-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.install-banner-btn {
  background: #ffffff;
  color: #16326b;
  border: none;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.install-banner-close {
  background: transparent;
  color: #ffffff;
  border: none;
  font-size: 1rem;
  padding: 4px 6px;
  cursor: pointer;
  opacity: 0.8;
}
