/* ===========================================================
   Northgate University — Student Zone
   Shared stylesheet used by header.php / sidebar.php / footer.php
   =========================================================== */

:root {
  --navy: #0b1f3a;
  --navy-dark: #061527;

  /* New accent system: orange -> green gradient replaces the old blue/gold accent */
  --accent-start: #72dc98;
  --accent-end: #72dc98;
  --accent-gradient: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  --accent-gradient-soft: linear-gradient(135deg, rgba(255,155,82,0.12), rgba(114,220,152,0.12));
  --accent-mid: #f0b26a; /* usable as a flat accent color where a gradient doesn't fit (borders, text) */

  --blue: var(--accent-start);       /* kept as an alias so existing rules that reference --blue still work */
  --blue-light: var(--accent-end);
  --gold: var(--accent-start);

  --bg: #f4f6fb;
  --card-bg: #ffffff;
  --text: #1e293b;
  --text-light: #64748b;
  --border: #e2e8f0;
  --success: #16a34a;
  --radius: 12px;
  --shadow: 0 4px 14px rgba(11, 31, 58, 0.08);
  --shadow-lg: 0 20px 40px rgba(11, 31, 58, 0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* ---------- Thin utility top bar ---------- */
.topbar {
  background: var(--navy);
  color: #cbd5e1;
  font-size: 11.5px;
  padding: 7px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
  gap: 6px;
}

.topbar-left b { color: #fff; letter-spacing: 0.5px; margin-right: 10px; }
.topbar-sep { color: #93a3bd; }

.topbar-badge {
  background: var(--accent-gradient);
  color: #1a2b1f;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.3px;
}

.topbar-right { display: flex; gap: 18px; }
.topbar-right a { display: inline-flex; align-items: center; gap: 5px; color: #cbd5e1; }
.topbar-right a:hover { color: #fff; }

body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ---------- Layout shell ---------- */
.portal-shell {
  display: flex;
  min-height: 100vh;
}

.main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  color: var(--text);
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-img {
  /*width: 42px;*/
  height: 46px;
  flex-shrink: 0;
}

.brand-text .name {
  font-weight: 800;
  font-size: 11px;
  line-height: 1.25;
  letter-spacing: 0.4px;
  color: var(--navy);
}

.brand-divider {
  width: 1px;
  height: 30px;
  background: var(--border);
  margin: 0 4px;
}

.brand-zone {
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--text-light);
  font-weight: 500;
}

.header-nav a { padding-bottom: 4px; border-bottom: 2px solid transparent; }
.header-nav a:hover { color: var(--navy); }
.header-nav a.is-active {
  color: var(--accent-start);
  border-bottom-color: var(--accent-end);
  font-weight: 700;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  background: rgba(255,255,255,0.08);
  padding: 6px 12px;
  border-radius: 20px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-end);
  display: inline-block;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--navy);
  font-size: 22px;
  cursor: pointer;
}

.header-account {
  display: flex;
  align-items: center;
  gap: 14px;
}

.icon-btn {
  position: relative;
  background: #f1f5f9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  cursor: pointer;
}

.icon-btn:hover { background: #e2e8f0; color: var(--navy); }

.notif-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  border: 1.5px solid #fff;
  font-size: 9.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.account-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 10px 6px 6px;
  border-radius: 24px;
  background: #f8fafc;
  border: 1px solid var(--border);
  cursor: pointer;
}

.account-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #1a2b1f;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.account-text { display: flex; flex-direction: column; line-height: 1.25; }
.account-name { font-size: 13px; font-weight: 600; color: var(--text); }
.account-signout { font-size: 11px; color: var(--text-light); }

/* ---------- Sidebar ---------- */
.sidebar {
  width: 250px;
  background: #fff;
  color: var(--text);
  padding: 20px 16px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
}

.sidebar-profile {
  padding: 0 8px 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.sidebar-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #1a2b1f;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-profile-name { font-size: 13.5px; font-weight: 700; color: var(--navy); }
.sidebar-profile-reg { font-size: 11.5px; color: var(--text-light); }

.sidebar-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94a3b8;
  margin: 4px 8px 8px;
}

.sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  margin-bottom: 3px;
  color: var(--text);
  transition: background 0.15s ease, color 0.15s ease;
}

.sidebar-arrow { margin-left: auto; color: #cbd5e1; }

.sidebar-nav li a:hover {
  background: #f1f5f9;
}

.sidebar-nav li.active a {
  background: var(--accent-gradient);
  color: #1a2b1f;
}

.sidebar-nav li.active a .sidebar-arrow { color: rgba(26,43,31,0.55); }

.sidebar-icon {
  width: 18px;
  text-align: center;
  font-size: 15px;
  display: flex;
}

.sidebar-card {
  margin-top: 20px;
  background: linear-gradient(135deg, rgba(255,155,82,0.08), rgba(114,220,152,0.10));
  border: 1px solid rgba(114,220,152,0.35);
  border-radius: var(--radius);
  padding: 14px;
  font-size: 12.5px;
  color: var(--text-light);
}

.sidebar-card strong { color: var(--navy); display: block; margin-bottom: 4px; }
.sidebar-card-link { display: inline-block; margin-top: 6px; color: var(--accent-start); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #a9b6cc;
  padding: 18px 28px;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }

.footer-links {
  display: flex;
  gap: 16px;
}

/* ---------- Content wrapper ---------- */
.content {
  flex: 1;
  padding: 32px;
}

/* ---------- Login page (full-screen split layout) ---------- */
.login-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 100vh;
}

.login-visual {
  background: linear-gradient(155deg, var(--navy) 0%, #123a2e 55%, #0b2b22 140%);
  color: #fff;
  padding: 36px 48px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.login-visual::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent-gradient);
}

.login-visual::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(114,220,152,0.18), rgba(255,155,82,0.05) 70%);
}

.login-visual-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}

.login-brand-box {
  background: #fff;
  border-radius: 10px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-brand-logo-img {
  height: 44px;
  flex-shrink: 0;
}

.login-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.login-brand-copy .login-brand-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.2px;
}

.login-brand-sub {
  font-size: 10.5px;
  color: var(--text-light);
  font-weight: 600;
}

.login-copy {
  position: relative;
  z-index: 1;
  max-width: 460px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow-light {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-end);
  font-weight: 700;
  background: rgba(114,220,152,0.12);
  border: 1px solid rgba(114,220,152,0.35);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 6px;
  width: fit-content;
}

.login-copy h1 {
  font-size: 32px;
  line-height: 1.28;
  margin: 14px 0 14px;
  font-weight: 800;
}

.login-copy h1 span { color: var(--accent-end); }

.login-copy p.sub {
  font-size: 14px;
  color: #cdd7ea;
  margin-bottom: 24px;
  line-height: 1.6;
}

.login-feature-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.portal-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.portal-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #a9b6cc;
  margin-bottom: 14px;
}

.portal-card-head a {
  color: var(--accent-end);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}

.login-feature-btn {
  flex: 1;
  background: #fff;
  border-radius: 10px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.login-feature-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(255,155,82,0.16), rgba(114,220,152,0.16));
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.login-feature-btn b { font-size: 12.5px; color: var(--navy); }
.login-feature-btn span { font-size: 11px; color: var(--text-light); }

.login-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--bg);
}

.login-box {
  width: 100%;
  max-width: 380px;
}

.login-box .eyebrow {
  font-size: 11.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-start);
  font-weight: 700;
}

.login-box-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.login-box h2 { font-size: 24px; color: var(--navy); margin-bottom: 6px; }
.login-box .desc { font-size: 13px; color: var(--text-light); margin-bottom: 26px; line-height: 1.5; }

.secure-label {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  text-align: right;
  flex-shrink: 0;
}

.secure-label svg {
  width: 15px;
  height: 15px;
  color: var(--success);
  background: #dcfce7;
  border-radius: 50%;
  padding: 3px;
  box-sizing: content-box;
  margin-top: 1px;
}

.secure-label span {
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--text-light);
}

.secure-label b { color: var(--navy); font-size: 11px; }
.secure-label i { font-style: normal; color: #94a3b8; font-size: 10px; }

.btn-login-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.login-box .helpdesk {
  align-items: flex-start;
}

.login-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: transparent;
  color: var(--text-light);
  font-size: 11.5px;
  padding: 14px 32px;
  display: flex;
  justify-content: space-between;
}

.promo-checks {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 12px;
  color: #d7deee;
  margin-top: 4px;
}

.promo-checks span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.promo-checks span :first-child {
  color: var(--accent-end);
}

.login-form-panel .eyebrow {
  font-size: 11.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-start);
  font-weight: 600;
  margin-bottom: 6px;
}

.login-form-panel h2 {
  font-size: 24px;
  margin-bottom: 4px;
  color: var(--navy);
}

.login-form-panel .desc {
  font-size: 13.5px;
  color: var(--text-light);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input[type="text"],
.form-group input[type="password"] {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  font-size: 14px;
  outline: none;
  transition: border 0.15s ease, box-shadow 0.15s ease;
}

.form-group input:focus {
  border-color: var(--accent-start);
  box-shadow: 0 0 0 4px rgba(255,155,82,0.12);
}

/* Icon-prefixed input wrapper */
.login-input {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input i {
  position: absolute;
  left: 12px;
  display: flex;
  color: var(--text-light);
  pointer-events: none;
}

.login-input input {
  padding-left: 40px !important;
}

.password-field .toggle-pass {
  position: absolute;
  right: 12px;
}

.toggle-pass {
  background: none;
  border: none;
  font-size: 12px;
  color: var(--accent-start);
  cursor: pointer;
  font-weight: 600;
}

.form-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 18px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-light);
}

.form-row-between a { color: var(--accent-start); font-weight: 600; }

.captcha-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.captcha-code {
  background: repeating-linear-gradient(45deg, #eef2f9, #eef2f9 4px, #e2e8f0 4px, #e2e8f0 8px);
  border: 1.5px dashed var(--border);
  border-radius: 8px;
  padding: 10px 16px;
  font-family: "Courier New", monospace;
  font-weight: 700;
  letter-spacing: 4px;
  font-size: 16px;
  color: var(--navy);
  user-select: none;
}

.captcha-box input {
  flex: 1;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
}

.btn-login {
  width: 100%;
  padding: 13px;
  background: var(--accent-gradient);
  color: #1a2b1f;
  border: none;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.1s ease;
}

.btn-login:hover { filter: brightness(1.05); }
.btn-login:active { transform: translateY(1px); }

.helpdesk {
  margin-top: 20px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(255,155,82,0.06), rgba(114,220,152,0.08));
  border: 1px solid rgba(114,220,152,0.3);
  border-radius: 10px;
  font-size: 12.5px;
  color: var(--text-light);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.6;
}

.helpdesk > span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #1a2b1f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.helpdesk b { color: var(--navy); font-size: 13px; }
.helpdesk em { font-style: normal; color: var(--text-light); font-size: 11.5px; }
.helpdesk a { color: var(--accent-start); font-weight: 600; text-decoration: none; }

.demo-banner {
  background: linear-gradient(90deg, rgba(255,155,82,0.18), rgba(114,220,152,0.18));
  color: #7c4a12;
  text-align: center;
  font-size: 12.5px;
  padding: 8px 16px;
  font-weight: 600;
}

/* ---------- Welcome banner ---------- */
.welcome-banner {
     background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  border-radius: 16px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.welcome-eyebrow {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  font-weight: 700;
  margin-bottom: 8px;
  opacity: 0.75;
}

.welcome-banner h1 { font-size: 24px; margin-bottom: 6px; color: #ffffff; }
.welcome-banner p { font-size: 13.5px; color: #ffffff; max-width: 460px; }

.welcome-sem-badge {
  background: rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 12px;
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 160px;
}

.welcome-sem-label { font-size: 11px; color: #ffffff; }
.welcome-sem-value {
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
}

.welcome-sem-value i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
  display: inline-block;
}

/* ---------- Dashboard grid ---------- */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  align-items: start;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.section-head h2 { font-size: 16px; color: var(--navy); }
.section-count {
  font-size: 11.5px;
  color: var(--text-light);
  background: #f1f5f9;
  padding: 4px 12px;
  border-radius: 20px;
}
.section-sub { font-size: 12.5px; color: var(--text-light); margin-bottom: 16px; }

/* ---------- Service tiles ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-items: stretch;
}

.service-tile {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s ease, transform 0.1s ease, border-color 0.15s ease;
}

.service-tile:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: rgba(114,220,152,0.5);
}

.service-tile-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255,155,82,0.14), rgba(114,220,152,0.14));
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

/* Per-card accent colors, cycling by position within the new orange/green family */
.service-tile:nth-child(6n+1) .service-tile-icon { background: rgba(255,155,82,0.16); color: #c2540f; }
.service-tile:nth-child(6n+2) .service-tile-icon { background: rgba(114,220,152,0.18); color: #12885a; }
.service-tile:nth-child(6n+3) .service-tile-icon { background: rgba(240,178,106,0.20); color: #a8621b; }
.service-tile:nth-child(6n+4) .service-tile-icon { background: rgba(114,220,152,0.14); color: #1f9d6c; }
.service-tile:nth-child(6n+5) .service-tile-icon { background: rgba(255,155,82,0.14); color: #d9720f; }
.service-tile:nth-child(6n+6) .service-tile-icon { background: rgba(114,220,152,0.22); color: #0e7a4f; }

.service-tile h3 { font-size: 14.5px; color: var(--navy); margin-bottom: 4px; }
.service-tile p { font-size: 12.5px; color: var(--text-light); margin-bottom: 12px; flex: 1; }
.service-tile-link { font-size: 12.5px; font-weight: 700; color: var(--accent-start); }

/* ---------- Account overview panel ---------- */
.account-overview {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.account-overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 16px;
}

.account-overview-head button {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  font-size: 16px;
}

.account-overview-profile {
  text-align: center;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.account-overview-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #1a2b1f;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}

.account-overview-name { font-size: 15px; font-weight: 700; color: var(--navy); }
.account-overview-program { font-size: 12px; color: var(--text-light); margin-bottom: 8px; }

.account-overview-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #dcfce7;
  color: #15803d;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}

.account-overview-rows { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }

.account-overview-row {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
}

.account-overview-row span { color: var(--text-light); }
.account-overview-row b { color: var(--text); }

.account-overview-cta {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, rgba(255,155,82,0.12), rgba(114,220,152,0.14));
  color: #0e7a4f;
  border: 1px solid rgba(114,220,152,0.4);
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.account-overview-cta:hover { filter: brightness(0.97); }

/* ---------- Notice bar ---------- */
.notice-bar {
  margin-top: 22px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-left: 4px solid var(--accent-start);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #9a3412;
}

.notice-bar div { flex: 1; display: flex; flex-direction: column; font-size: 12.5px; }
.notice-bar strong { font-size: 13px; color: #7c2d12; }
.notice-bar a { font-size: 12.5px; font-weight: 700; color: #0e7a4f; white-space: nowrap; }

/* ---------- Floating support button ---------- */
.fab-support {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
}

.fab-support:hover { opacity: 0.92; }

/* ---------- Dashboard cards (for index/inner pages) ---------- */
.page-title {
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 4px;
}

.page-subtitle {
  color: var(--text-light);
  font-size: 13.5px;
  margin-bottom: 24px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.info-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent-start);
}

.info-card h3 {
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 6px;
}

.info-card p {
  font-size: 13px;
  color: var(--text-light);
}

/* ---------- Learning Material: resource list ---------- */
.resource-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.resource-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow);
}

.resource-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255,155,82,0.14), rgba(114,220,152,0.14));
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.resource-info { flex: 1; min-width: 0; }

.resource-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 2px;
}

.resource-meta {
  font-size: 12px;
  color: var(--text-light);
}

.resource-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-gradient);
  color: #1a2b1f;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.15s ease;
}

.resource-download:hover { filter: brightness(1.05); }

/* ---------- Results: table ---------- */
.table-wrap {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.data-table th {
  text-align: left;
  background: #f8fafc;
  color: var(--text-light);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.data-table tr:last-child td { border-bottom: none; }

.status-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
}

.status-pass { background: #dcfce7; color: #15803d; }
.status-pending { background: #fef3c7; color: #92400e; }

/* ---------- Services: cards ---------- */
.service-card {
  border-left: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255,155,82,0.14), rgba(114,220,152,0.14));
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.service-card .resource-download {
  align-self: flex-start;
  margin-top: 8px;
  background: none;
  color: var(--accent-start);
  padding: 0;
}

.service-card .resource-download:hover { text-decoration: underline; filter: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .login-page { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .sidebar { position: fixed; left: -260px; top: 0; bottom: 0; z-index: 60; transition: left 0.2s ease; overflow-y: auto; }
  .sidebar.open { left: 0; }
  .hamburger { display: block; }
  .header-nav { display: none; }
  .topbar-left, .topbar-right { display: none; }
  .welcome-banner { flex-direction: column; align-items: flex-start; }
}


/* ===========================================================
   Dashboard Redesign v2 — append this file to the END of style.css
   (or link it after style.css). Later rules win on equal specificity,
   so these overrides replace the old light sidebar / plain header /
   simple service-grid styling with the new navy-sidebar dashboard.
   Uses the existing --accent-start/--accent-end gradient variables
   already defined in style.css's :root.
   =========================================================== */

/* ---------- Header: search bar + account info ---------- */
.site-header {
  gap: 20px;
}

.header-search {
  flex: 1;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 14px;
  color: var(--text-light);
}
.header-search svg { flex-shrink: 0; }
.header-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: var(--text);
  flex: 1;
  min-width: 0;
}
.header-search input::placeholder { color: #a0aec0; }
.header-search kbd {
  background: #eef2f7;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 11px;
  color: var(--text-light);
  flex-shrink: 0;
}

.header-account { gap: 14px; }
.header-account-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.3;
}
.header-account-name { font-size: 13px; font-weight: 700; color: var(--navy); }
.header-account-meta { font-size: 11px; color: var(--text-light); }

.header-signout-btn {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.header-signout-btn:hover { background: #f8fafc; }

/* ---------- Sidebar: navy theme ---------- */
.sidebar {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  border-right: none;
  display: flex;
  flex-direction: column;
}

.sidebar-brand {
  padding: 6px 8px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 14px;
}
.sidebar-brand img { height: 40px; background: #fff; border-radius: 8px; padding: 6px 10px; }

.sidebar-section-title {
  color: rgba(255,255,255,0.4);
  margin: 4px 8px 10px;
}

.sidebar-nav li a {
  color: rgba(255,255,255,0.82);
  position: relative;
}
.sidebar-nav li a:hover { background: rgba(255,255,255,0.06); color: #fff; }

.sidebar-nav li.active a {
  background: #fff;
  color: var(--navy);
  font-weight: 700;
}
.sidebar-active-dot {
  margin-left: auto;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-end, #72dc98);
}

.sidebar-support-card {
  margin-top: auto;
  background: linear-gradient(135deg, rgba(114,220,152,0.14), rgba(255,155,82,0.10));
  border: 1px solid rgba(114,220,152,0.3);
  border-radius: var(--radius);
  padding: 14px;
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-support-card strong { color: #fff; font-size: 13px; }
.sidebar-support-card .sidebar-card-link { color: var(--accent-end, #72dc98); font-weight: 700; margin-top: 4px; }

.sidebar-footer-version {
  text-align: center;
  font-size: 10.5px;
  color: rgba(255,255,255,0.35);
  padding: 16px 0 4px;
}

/* ---------- Welcome banner: actions + status ---------- */
.welcome-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.btn-banner-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 9px;
}
.btn-banner-primary:hover { filter: brightness(0.97); }
.btn-banner-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 9px;
}
.btn-banner-secondary:hover { background: rgba(255,255,255,0.16); }

.welcome-sem-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #0b1f14;
  background: var(--accent-gradient, #72dc98);
  border-radius: 999px;
  padding: 3px 10px;
  margin-top: 8px;
  width: fit-content;
}

/* ---------- Stat cards ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 22px 0;
}
.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: var(--shadow);
  position: relative;
}
.stat-card-icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-icon-blue   { background: #eef2ff; color: #4f46e5; }
.stat-icon-green  { background: rgba(114,220,152,0.18); color: #12885a; }
.stat-icon-orange { background: rgba(255,155,82,0.18); color: #c2540f; }

.stat-card-body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.stat-card-label { font-size: 11.5px; color: var(--text-light); }
.stat-card-value { font-size: 19px; font-weight: 800; color: var(--navy); }
.stat-card-value small { font-size: 12px; font-weight: 600; color: var(--text-light); }
.stat-card-meta { font-size: 11px; color: var(--text-light); }

.stat-card-badge {
  position: absolute;
  top: 14px; right: 16px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-light);
  background: #f1f5f9;
  padding: 3px 9px;
  border-radius: 999px;
}
.stat-card-badge-green { color: #12885a; background: rgba(114,220,152,0.18); }

/* ---------- Quick access: single card, grid of items ---------- */
.dashboard-grid { grid-template-columns: 1fr 320px; }

.quickaccess-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.quickaccess-header { padding: 20px 22px 14px; }
.quickaccess-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-start, #ff9b52);
}
.quickaccess-header h2 { font-size: 17px; color: var(--navy); margin: 6px 0 4px; }
.quickaccess-header p { font-size: 12.5px; color: var(--text-light); }

.quickaccess-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
}
.quickaccess-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--text);
  transition: background 0.15s ease;
}
.quickaccess-item:hover { background: #f8fafc; }
.quickaccess-grid > a:nth-child(3n) { border-right: none; }
.quickaccess-grid > a:nth-last-child(-n+3) { border-bottom: none; }

.quickaccess-item-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(255,155,82,0.14), rgba(114,220,152,0.14));
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.quickaccess-item h3 {
  font-size: 13.5px;
  color: var(--navy);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.quickaccess-item h3 svg { color: var(--accent-start, #ff9b52); opacity: 0; transition: opacity 0.15s ease, transform 0.15s ease; transform: translateX(-3px); }
.quickaccess-item:hover h3 svg { opacity: 1; transform: translateX(0); }
.quickaccess-item p { font-size: 12px; color: var(--text-light); }

/* ---------- My Profile card ---------- */
.my-profile-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.my-profile-head {
  background: var(--navy);
  color: #fff;
  padding: 13px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 700;
}
.my-profile-head button { background: none; border: none; color: rgba(255,255,255,0.6); cursor: pointer; font-size: 16px; }

.my-profile-body { padding: 20px; text-align: center; }
.my-profile-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent-gradient, #72dc98);
  color: #10241a;
  font-size: 19px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
}
.my-profile-name { font-size: 15px; font-weight: 700; color: var(--navy); }
.my-profile-program { font-size: 12px; color: var(--text-light); margin-bottom: 8px; }
.my-profile-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(114,220,152,0.18);
  color: #0e7a4f;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}

.my-profile-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0;
  text-align: left;
}
.my-profile-row { display: flex; justify-content: space-between; font-size: 12.5px; }
.my-profile-row span { color: var(--text-light); }
.my-profile-row b { color: var(--text); }

.my-profile-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px;
  background: rgba(114,220,152,0.12);
  color: #0e7a4f;
  border: 1px solid rgba(114,220,152,0.35);
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 700;
}
.my-profile-cta:hover { filter: brightness(0.97); }

/* ---------- Schedule card ---------- */
.schedule-card {
  margin-top: 18px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.schedule-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-start, #ff9b52);
}
.schedule-card h3 { font-size: 15px; color: var(--navy); margin: 6px 0 12px; }

.schedule-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.schedule-item:last-child { border-bottom: none; padding-bottom: 0; }

.schedule-date {
  width: 42px; height: 42px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(255,155,82,0.14), rgba(114,220,152,0.14));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.schedule-day { font-size: 13px; font-weight: 800; color: var(--navy); line-height: 1; }
.schedule-mon { font-size: 9px; text-transform: uppercase; color: var(--text-light); }

.schedule-title { font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 2px; }
.schedule-meta { font-size: 11.5px; color: var(--text-light); }

/* ===========================================================
   Mobile responsiveness
   =========================================================== */
@media (max-width: 1100px) {
  .stat-row { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .quickaccess-grid { grid-template-columns: 1fr 1fr; }
  .quickaccess-grid > a:nth-child(3n) { border-right: 1px solid var(--border); }
  .quickaccess-grid > a:nth-child(2n) { border-right: none; }
  .quickaccess-grid > a:nth-last-child(-n+3) { border-bottom: 1px solid var(--border); }
  .quickaccess-grid > a:nth-last-child(-n+2) { border-bottom: none; }
  .header-search { max-width: 260px; }
}

@media (max-width: 800px) {
  .header-search { display: none; }
  .header-account-info { display: none; }
  .welcome-banner { flex-direction: column; align-items: flex-start; }
  .welcome-sem-badge { width: 100%; }
}

@media (max-width: 640px) {
  .content { padding: 18px; }
  .stat-row { grid-template-columns: 1fr; }
  .quickaccess-grid { grid-template-columns: 1fr; }
  .quickaccess-grid > a { border-right: none !important; }
  .welcome-actions { flex-direction: column; align-items: stretch; }
  .welcome-actions a { justify-content: center; }
  .header-signout-btn { padding: 7px 10px; font-size: 11.5px; }
  .my-profile-rows { gap: 8px; }
}