@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ── CSS Variables ── */
:root {
  --accent: #f6ab3b;
  --accent-dark: #e09520;
  --accent-deep: #c47e1a;
  --accent-glow: rgba(246, 171, 59, 0.18);
  --accent-soft: #fff8f0;
  --text-primary: #1c1c1e;
  --text-secondary: #555;
  --text-muted: #aaa;
  --border: #eaeaea;
  --bg: #f5f6f9;
  --surface: #ffffff;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
  --shadow-md: 0 3px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 28px rgba(0,0,0,0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --transition: 0.22s ease;
}


::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: black;
}
::-webkit-scrollbar-thumb {
  background: #f6ab3b;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #f6ab3b;
}

/* ══════════════════════════════════════════
   SCROLL PROGRESS — side rainbow strip
   ══════════════════════════════════════════ */
.scroll-progress-track {
  position: fixed;
  top: 0;
  left: 0;
  width: 3px;
  height: 100vh;
  background: rgba(0, 0, 0, 0.05);
  z-index: 9999;
  border-radius: 0 2px 2px 0;
  overflow: hidden;
}

.scroll-progress-bar {
  width: 100%;
  height: 0%;
  background: linear-gradient(
    180deg,
    #f6ab3b 0%,
    #f87c3b 18%,
    #e85d9b 36%,
    #9b5de5 54%,
    #3b82f6 72%,
    #22d3ee 88%,
    #22c55e 100%
  );
  transition: height 0.08s linear;
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 8px rgba(246, 171, 59, 0.5);
}

/* Small floating dot at tip of progress bar */
.scroll-progress-bar::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: inherit;
  background-size: 7px 100%;
  box-shadow: 0 0 6px 2px rgba(246,171,59,0.6);
}

/* ══════════════════════════════════════════
   BASE RESET & BODY
   ══════════════════════════════════════════ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* Subtle grain overlay for depth */
  background-image:
    radial-gradient(ellipse at 70% -20%, rgba(246,171,59,0.07) 0%, transparent 55%),
    radial-gradient(ellipse at -10% 80%, rgba(59,130,246,0.05) 0%, transparent 50%);
}

/* ══════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════ */
header {
  background: var(--accent);
  background-image: linear-gradient(135deg, #f6ab3b 0%, #e89520 100%);
  color: white;
  padding: 18px 0;
  text-align: center;
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, var(--shadow-md);
  position: relative;
  overflow: hidden;
}

header::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  pointer-events: none;
}

h1 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

p {
  margin-top: 24px;
  font-size: 0.95rem;
  text-align: center;
  font-weight: 500;
}

h2 {
  text-align: center;
  margin-top: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ══════════════════════════════════════════
   TEACHER LOGIN CHIP
   ══════════════════════════════════════════ */
.teacher-login {
  position: absolute;
  top: 16px;
  right: 24px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.6);
}

.teacher-login:hover {
  background: var(--text-primary);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ══════════════════════════════════════════
   LOGO
   ══════════════════════════════════════════ */
.logo {
  width: 120px;
  max-width: 38vw;
  height: auto;
  display: block;
  margin: 0 auto 8px;
}

@media (max-width: 480px) { .logo { width: 96px; } }

/* ══════════════════════════════════════════
   CONTAINER & LAYOUT
   ══════════════════════════════════════════ */
.container {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 24px 18px;
}

.container-main div {
  flex: 1;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 24px 18px;
}

#degree-main {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 24px 18px;
}

#diploma-main {
  display: none;
  flex: 1;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 24px 18px;
}

/* ══════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════ */
.card {
  background: var(--surface);
  padding: 20px 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  font-size: 1rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--transition);
  width: 240px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--border);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(246,171,59,0.3);
}

a.card { color: #414141; }

a.card:hover {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.card a {
  display: inline-block;
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all var(--transition);
}

.card a:hover {
  color: var(--text-primary);
  transform: scale(1.02);
}

@media (max-width: 768px) { .card { width: 82%; } }
@media (max-width: 400px) { .card { width: 90%; padding: 22px 16px; } }

/* ══════════════════════════════════════════
   BUTTON (global)
   ══════════════════════════════════════════ */
button {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  padding: 9px 16px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 10px;
}

button:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  transform: scale(1.03);
}

/* ══════════════════════════════════════════
   COURSE SECTION TOGGLES
   ══════════════════════════════════════════ */
.course-section { display: block; }
#degree { display: block; }
#diploma { display: none; }

.course-btn {
  background: transparent;
  color: var(--text-muted);
  padding: 3px 12px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  font-family: "Poppins", sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 0;
  margin-right: 5px;
  display: inline-flex;
  align-items: center;
}

.course-btn:hover {
  border-color: rgba(246,171,59,0.5);
  color: var(--accent-deep);
}

.course-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(246,171,59,0.35);
}

.more-info {
  text-decoration: none;
  color: var(--accent);
  font-size: 0.82rem;
  transition: all var(--transition);
  position: relative;
  display: inline-block;
}

.more-info:hover {
  color: var(--accent-dark);
  transform: translateX(3px);
}

.more-info::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width var(--transition);
}

.more-info:hover::after { width: 100%; }

/* ══════════════════════════════════════════
   BUTTON CONTAINER
   ══════════════════════════════════════════ */
.button-container {
  text-align: center;
  margin: 16px 0;
  padding: 12px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.button-container button {
  background: var(--surface);
  color: #414141;
  padding: 10px 26px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.button-container button:hover {
  background: var(--accent-dark);
  color: white;
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(224,149,32,0.3);
}

.button-container button:active { transform: translateY(0); background: var(--accent); }

.button-container button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 4px 14px rgba(246,171,59,0.35);
}

/* ══════════════════════════════════════════
   FOOTER (GLOBAL)
   ══════════════════════════════════════════ */
footer {
  text-align: center;
  margin: 18px 0;
}

.back {
  text-decoration: none;
  color: #3b82f6;
  font-weight: 600;
  font-size: 0.85rem;
  transition: color var(--transition);
}

.back:hover { color: #2563eb; }

footer.back { color: #3b82f6; font-size: 13px; }
footer.back:hover { color: #2563eb; text-decoration: underline; }

/* ══════════════════════════════════════════
   SITE FOOTER
   ══════════════════════════════════════════ */
.site-footer {
  background: #fafbfc;
  border-top: 1px solid var(--border);
  font-family: "Poppins", sans-serif;
  position: relative;
  overflow: hidden;
  margin-top: 52px;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #f6ab3b, #f87c3b, #e85d9b, #9b5de5, #3b82f6, #22d3ee);
}

.footer-body {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 44px 28px 32px;
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 36px;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 13px;
}

.footer-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  object-fit: contain;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.footer-college-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.footer-college-sub {
  display: block;
  font-size: 0.61rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 2px;
}

.footer-tagline {
  font-size: 0.76rem;
  color: #999;
  line-height: 1.7;
  margin-bottom: 18px;
}

.footer-badges {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.footer-badge-pill {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1.5px solid;
}

.badge-aicte { background: #f0f0f0; border-color: #d8d8d8; color: #666; }
.badge-dte   { background: rgba(0,0,0,0.03); border-color: #e4e4e4; color: #888; }

.footer-col h4 {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--text-primary);
  margin-bottom: 14px;
  position: relative;
  padding-bottom: 9px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 16px; height: 1.5px;
  background: var(--accent);
  border-radius: 2px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col ul li a {
  font-size: 0.79rem;
  color: #888;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: color var(--transition), gap var(--transition);
}

.footer-col ul li a::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #e0c08a;
  flex-shrink: 0;
  transition: background var(--transition);
}

.footer-col ul li a:hover { color: var(--accent-deep); gap: 10px; }
.footer-col ul li a:hover::before { background: var(--accent); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 11px;
}

.contact-icon {
  width: 28px; height: 28px;
  background: rgba(246,171,59,0.1);
  border: 1px solid rgba(246,171,59,0.25);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.76rem;
}

.contact-text { font-size: 0.75rem; color: #999; line-height: 1.55; }
.contact-text strong { display: block; color: #444; font-size: 0.71rem; font-weight: 600; margin-bottom: 1px; }

.footer-divider {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
}

.footer-divider hr {
  border: none;
  border-top: 1px solid rgba(246,171,59,0.15);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 14px 28px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-copyright { font-size: 0.71rem; color: #bbb; }
.footer-copyright span { color: var(--accent-deep); font-weight: 600; }

.footer-bottom-right { display: flex; align-items: center; gap: 12px; }

.footer-bottom-link { font-size: 0.69rem; ; text-decoration: none; transition: color var(--transition); }
.footer-bottom-link:hover { color: var(--accent); }

.footer-bottom-sep { width: 1px; height: 11px; background: #e0c08a; opacity: 0.4; }

.footer-made-with { font-size: 0.68rem; color: #ccc; display: flex; align-items: center; gap: 4px; }

.heart {
  color: var(--accent);
  animation: heartbeat 1.6s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.22); }
}

@media (max-width: 900px) {
  .footer-body { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  .footer-body { grid-template-columns: 1fr; padding: 30px 18px 20px; }
  .footer-bottom { flex-direction: column; text-align: center; padding: 12px 18px 18px; }
  .footer-bottom-right { justify-content: center; }
}

/* ══════════════════════════════════════════
   LOGIN CARD
   ══════════════════════════════════════════ */
.login-form {
  display: flex;
  flex-direction: column;
  margin-top: 16px;
}

.login-form input {
  padding: 10px 13px;
  margin-bottom: 12px;
  border-radius: var(--radius-sm);
  border: none;
  outline: none;
  font-size: 0.88rem;
}

.login-form input:focus { box-shadow: 0 0 0 2px #ffffff; }

.login-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  width: 320px;
  padding: 26px 28px 24px;
  transition: all var(--transition);
  border: 1px solid var(--border);
}

.login-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.login-card h2 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #444;
  text-align: center;
  margin-top: 0;
  margin-bottom: 3px;
}

.section-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #666;
  text-align: center;
  margin-top: 0;
  margin-bottom: 18px;
}

.login-card .btn-login {
  width: 100%;
  padding: 11px;
  margin-top: 4px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--accent);
  color: #ffffff;
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 3px 10px rgba(246,171,59,0.3);
}

.login-card .btn-login:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(224,149,32,0.35);
}

.login-card .btn-login:active { transform: translateY(0); }

.login-card .login-form input:focus {
  box-shadow: 0 0 0 2px var(--accent-glow);
  border: 1.5px solid var(--accent);
}

@media (max-width: 400px) { .login-card { width: 90%; padding: 22px 18px 20px; } }

/* ── Role toggle ── */
.role-toggle {
  display: flex;
  background: #f0f1f5;
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 3px;
  margin-bottom: 18px;
}

.role-btn {
  flex: 1;
  padding: 7px 10px;
  border-radius: 6px;
  border: none;
  background: transparent;
  font-family: "Poppins", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 0;
  box-shadow: none;
}

.role-btn:hover { color: #555; background: transparent; transform: none; box-shadow: none; }
.role-btn.active { background: var(--surface); color: var(--text-primary); font-weight: 600; box-shadow: var(--shadow-sm); }
.role-btn.active:hover { background: var(--surface); transform: none; }

.role-label {
  font-size: 0.67rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
  text-align: center;
  margin-bottom: 14px;
  display: block;
}

/* ══════════════════════════════════════════
   FORGOT PASSWORD
   ══════════════════════════════════════════ */
.fp-icon-wrap {
  width: 58px; height: 58px;
  background: var(--accent-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  box-shadow: 0 2px 10px rgba(246,171,59,0.18);
  transition: transform var(--transition);
}

.login-card:hover .fp-icon-wrap { transform: scale(1.05); }
.fp-icon-wrap svg { width: 24px; height: 24px; color: var(--accent); }

.fp-subtitle {
  font-size: 0.82rem;
  color: #999;
  text-align: center;
  margin-top: 4px;
  margin-bottom: 18px;
  font-weight: 400;
  line-height: 1.55;
}

.fp-input-wrap { position: relative; margin-bottom: 12px; }

.fp-input-wrap input {
  width: 100%;
  padding: 10px 13px 10px 38px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  outline: none;
  font-size: 0.88rem;
  font-family: "Poppins", sans-serif;
  color: #333;
  transition: all var(--transition);
  margin-bottom: 0;
}

.fp-input-wrap input:focus {
  border: 1.5px solid var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.fp-input-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px; height: 15px;
  color: #ccc;
  pointer-events: none;
  transition: color var(--transition);
}

.fp-input-wrap:focus-within .fp-input-icon { color: var(--accent); }

.fp-btn { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 0; }

.fp-spinner {
  width: 13px; height: 13px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: fp-spin 0.7s linear infinite;
  display: none;
  flex-shrink: 0;
}

.fp-btn.fp-loading .fp-spinner { display: inline-block; }
.fp-btn.fp-loading { pointer-events: none; opacity: 0.8; }

@keyframes fp-spin { to { transform: rotate(360deg); } }

.fp-divider {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 13px 0;
  color: #ccc;
  font-size: 0.74rem;
}

.fp-divider::before, .fp-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.fp-back-link {
  display: block;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 500;
  color: #3b82f6;
  text-decoration: none;
  transition: color var(--transition);
  margin-top: 2px;
}

.fp-back-link:hover { color: #2563eb; }

.fp-sent-card { text-align: center; width: 340px; }
@media (max-width: 400px) { .fp-sent-card { width: 90%; } }

.fp-sent-icon-wrap {
  width: 60px; height: 60px;
  background: var(--accent-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  box-shadow: 0 2px 12px rgba(246,171,59,0.2);
  animation: fp-pop 0.4s cubic-bezier(.36,.07,.19,.97);
}

.fp-sent-icon-wrap svg { width: 26px; height: 26px; color: var(--accent); }

.fp-email-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-soft);
  border: 1.5px solid #fde5ae;
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-deep);
  margin: 4px auto 16px;
  word-break: break-all;
}

.fp-email-pill svg { width: 13px; height: 13px; flex-shrink: 0; }

.fp-tips {
  background: #f8f9fb;
  border: 1.5px solid #eeeeee;
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  margin-bottom: 14px;
  text-align: left;
}

.fp-tip { display: flex; align-items: flex-start; gap: 8px; font-size: 0.76rem; color: #777; line-height: 1.5; }
.fp-tip + .fp-tip { margin-top: 7px; }

.fp-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-top: 6px; flex-shrink: 0; }

.fp-resend-row { font-size: 0.79rem; color: #999; margin-bottom: 14px; margin-top: 0; font-weight: 400; text-align: center; }
.fp-resend-row span { color: var(--accent); font-weight: 600; cursor: pointer; transition: color var(--transition); }
.fp-resend-row span:hover { color: var(--accent-dark); }
.fp-resend-row span.fp-disabled { color: #bbb; pointer-events: none; }

@keyframes fp-shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-5px); }
  40%      { transform: translateX(5px); }
  60%      { transform: translateX(-3px); }
  80%      { transform: translateX(3px); }
}

.fp-shake { animation: fp-shake 0.4s ease !important; border-color: #f87171 !important; }

@keyframes fp-pop {
  0%   { transform: scale(0.5); opacity: 0; }
  70%  { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.fp-link-row { text-align: right; margin-top: -7px; margin-bottom: 12px; }

.fp-link { font-size: 0.78rem; font-weight: 500; color: var(--accent); text-decoration: none; transition: color var(--transition); }
.fp-link:hover { color: var(--accent-dark); text-decoration: underline; }

.register-row { text-align: center; margin-top: 14px; font-size: 0.81rem; color: #888; font-weight: 400; }
.register-link { font-weight: 600; color: var(--accent); text-decoration: none; margin-left: 4px; transition: color var(--transition); }
.register-link:hover { color: var(--accent-dark); text-decoration: underline; }

/* ══════════════════════════════════════════
   REGISTER PAGE
   ══════════════════════════════════════════ */
.rg-card { width: 380px; }

.rg-subtitle {
  font-size: 0.82rem;
  color: #999;
  text-align: center;
  margin-top: 4px !important;
  margin-bottom: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.rg-field { margin-bottom: 12px; }

.rg-label { display: flex; align-items: center; gap: 6px; font-size: 0.77rem; font-weight: 500; color: #555; margin-bottom: 5px; }

.rg-badge {
  background: var(--accent-soft);
  border: 1px solid #fde5ae;
  color: var(--accent-deep);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

.rg-input-wrap { position: relative; }

.rg-input-wrap input {
  width: 100%;
  padding: 10px 36px 10px 36px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  outline: none;
  font-size: 0.87rem;
  font-family: "Poppins", sans-serif;
  color: #333;
  transition: all var(--transition);
  margin-bottom: 0;
  background: #fafbfc;
}

.rg-input-wrap input:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.rg-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 14px;
  color: #ccc;
  pointer-events: none;
  transition: color var(--transition);
}

.rg-input-wrap:focus-within .rg-icon { color: var(--accent); }

.rg-eye {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 3px;
  cursor: pointer;
  color: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition);
  margin-top: 0;
  box-shadow: none;
}

.rg-eye:hover { color: var(--accent); background: none; transform: translateY(-50%) scale(1.08); }
.rg-eye .eye-icon { width: 14px; height: 14px; }

.rg-strength-bar { height: 2.5px; background: #eee; border-radius: 4px; margin-top: 5px; overflow: hidden; }
.rg-strength-fill { height: 100%; width: 0%; border-radius: 4px; transition: width 0.4s ease, background 0.4s ease; }
.rg-strength-text { font-size: 0.7rem; font-weight: 500; color: var(--text-muted); margin-top: 3px; display: block; }

.rg-hint { display: flex; align-items: center; gap: 5px; font-size: 0.72rem; color: var(--accent-deep); margin-top: 5px; font-weight: 400; }
.rg-hint svg { flex-shrink: 0; color: var(--accent); }

.rg-error {
  font-size: 0.77rem;
  color: #e53e3e;
  background: #fff5f5;
  border: 1px solid #feb2b2;
  border-radius: var(--radius-sm);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: all var(--transition);
  text-align: center;
}

.rg-error.rg-visible { padding: 8px 11px; max-height: 56px; margin-bottom: 9px; }

@keyframes rg-shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-5px); }
  40%      { transform: translateX(5px); }
  60%      { transform: translateX(-3px); }
  80%      { transform: translateX(3px); }
}

.rg-shake { animation: rg-shake 0.4s ease !important; border-color: #f87171 !important; }

.rg-success-wrap { text-align: center; padding: 8px 0; }

.rg-success-icon {
  width: 58px; height: 58px;
  background: #dcfce7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  box-shadow: 0 3px 10px rgba(74,222,128,0.25);
  animation: rg-pop 0.4s cubic-bezier(.36,.07,.19,.97);
}

.rg-success-icon svg { width: 26px; height: 26px; color: #22c55e; }
.rg-success-wrap h2 { color: #22c55e; font-size: 1rem; }
.rg-success-wrap p { font-size: 0.81rem; color: #888; margin-top: 5px; font-weight: 400; }

@keyframes rg-pop {
  0%   { transform: scale(0.5); opacity: 0; }
  70%  { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 440px) { .rg-card { width: 92%; } }

/* ══════════════════════════════════════════
   UPLOAD PAGE
   ══════════════════════════════════════════ */
.upload-page {
  max-width: 620px;
  margin: 0 auto;
  padding: 34px 20px 48px;
  flex: 1;
}

.up-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 10px;
}

.up-topbar-left h2 { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); margin: 0; text-align: left; }
.up-topbar-left p  { font-size: 0.74rem; color: var(--text-muted); margin: 2px 0 0 0; font-weight: 400; text-align: left; }

.up-logout {
  font-family: "Poppins", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #888;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: inline-block;
  margin-top: 0;
  box-shadow: none;
}

.up-logout:hover { border-color: var(--accent); color: var(--accent); transform: none; }

.upload-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 28px 28px 26px;
  border: 1px solid var(--border);
}

.upload-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f3f3f3;
}

.upload-card-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 3px 10px rgba(246,171,59,0.25);
  flex-shrink: 0;
}

.upload-card-header h3 { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); margin: 0; text-align: left; }
.upload-card-header p  { font-size: 0.72rem; color: var(--text-muted); margin: 2px 0 0 0; font-weight: 400; text-align: left; }

.form-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 20px 0 12px 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.form-section-label::after { content: ''; flex: 1; height: 1px; background: #f3f3f3; }
.form-section-label:first-of-type { margin-top: 0; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-group { margin-bottom: 12px; }

.field-label { font-size: 0.75rem; font-weight: 600; color: #444; margin-bottom: 5px; display: flex; align-items: center; gap: 5px; }
.field-label .req { color: var(--accent); font-size: 0.82rem; line-height: 1; }

.up-input, .up-select {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: "Poppins", sans-serif;
  font-size: 0.85rem;
  color: #333;
  background: #fafbfc;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.up-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%23aaa' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}

.up-input:focus, .up-select:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.up-input.error, .up-select.error { border-color: #f87171; background: #fff5f5; }

.file-drop {
  border: 2px dashed #e0e0e0;
  border-radius: var(--radius-md);
  padding: 24px 18px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: #fafafa;
  position: relative;
}

.file-drop:hover, .file-drop.dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.file-drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.file-drop-icon { font-size: 1.6rem; margin-bottom: 7px; display: block; }
.file-drop-text { font-size: 0.82rem; font-weight: 600; color: #555; display: block; }
.file-drop-sub { font-size: 0.71rem; color: var(--text-muted); margin-top: 3px; display: block; }
.file-drop-sub span { color: var(--accent); font-weight: 600; }

.file-chosen { display: none; align-items: center; gap: 9px; background: var(--accent-soft); border: 1.5px solid rgba(246,171,59,0.25); border-radius: var(--radius-sm); padding: 9px 12px; margin-top: 9px; }
.file-chosen.visible { display: flex; }
.file-chosen-name { font-size: 0.79rem; font-weight: 600; color: var(--text-primary); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chosen-size { font-size: 0.7rem; color: var(--text-muted); flex-shrink: 0; }

.file-remove { background: none; border: none; color: #ccc; cursor: pointer; font-size: 0.95rem; padding: 0; margin: 0; box-shadow: none; line-height: 1; flex-shrink: 0; }
.file-remove:hover { color: #f87171; transform: none; background: none; }

.field-error { font-size: 0.71rem; color: #e53e3e; margin-top: 4px; display: none; }
.field-error.visible { display: block; }

.up-submit {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 3px 12px rgba(246,171,59,0.3);
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.up-submit:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(224,149,32,0.35); }
.up-submit:active { transform: translateY(0); }
.up-submit.loading { pointer-events: none; opacity: 0.8; }

.up-spinner {
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}

.up-submit.loading .up-spinner { display: block; }
.up-submit.loading .up-btn-text::after { content: '…'; }

@keyframes spin { to { transform: rotate(360deg); } }

.up-success { text-align: center; padding: 16px 0 8px; display: none; }
.up-success.visible { display: block; }

.up-success-icon {
  width: 58px; height: 58px;
  background: #dcfce7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 13px;
  box-shadow: 0 3px 14px rgba(74,222,128,0.25);
  font-size: 1.6rem;
  animation: pop 0.4s cubic-bezier(.36,.07,.19,.97);
}

.up-success h3 { font-size: 1rem; font-weight: 700; color: #22c55e; text-align: center; margin-bottom: 7px; }
.up-success p  { font-size: 0.81rem; color: #888; margin: 0 0 18px; font-weight: 400; }

.up-success-btn {
  background: none;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-family: "Poppins", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: none;
  margin-top: 0;
}

.up-success-btn:hover { background: var(--accent); color: #fff; transform: none; }

@keyframes pop {
  0%   { transform: scale(0.5); opacity: 0; }
  70%  { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 560px) {
  .upload-page  { padding: 22px 14px 36px; }
  .upload-card  { padding: 20px 16px 18px; }
  .form-row     { grid-template-columns: 1fr; }
}

/* ── Drive instruction ── */
.drive-instruction {
  background: var(--accent-soft);
  border: 1.5px solid rgba(246,171,59,0.25);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 12px;
}

.drive-instruction h4 { font-size: 0.75rem; font-weight: 700; color: var(--accent-deep); margin: 0 0 9px 0; text-align: left; display: flex; align-items: center; gap: 5px; }

.drive-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; }
.drive-steps li { font-size: 0.76rem; color: #666; line-height: 1.6; display: flex; align-items: flex-start; gap: 9px; }

.step-num { width: 16px; height: 16px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.58rem; font-weight: 700; color: #fff; flex-shrink: 0; margin-top: 2px; }
.drive-steps li code { background: #fff3dc; border: 1px solid #fde5ae; border-radius: 3px; padding: 1px 5px; font-family: monospace; font-size: 0.75rem; color: var(--accent-deep); white-space: nowrap; }
.drive-steps li strong { color: var(--text-primary); }

.drive-open-btn { display: inline-flex; align-items: center; gap: 7px; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 7px 14px; font-family: "Poppins", sans-serif; font-size: 0.79rem; font-weight: 600; color: #444; cursor: pointer; text-decoration: none; transition: all var(--transition); margin-top: 4px; box-shadow: none; }
.drive-open-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); transform: none; }
.drive-open-btn img { width: 16px; height: 16px; }

.link-input-wrap { position: relative; }
.link-input-wrap .up-input { padding-right: 40px; }
.link-verify-icon { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); font-size: 0.95rem; display: none; }
.link-verify-icon.show { display: block; }
.link-verify-icon.valid { color: #22c55e; }
.link-verify-icon.invalid { color: #f87171; }

.link-preview { display: none; align-items: center; gap: 9px; background: #f0fdf4; border: 1.5px solid #bbf7d0; border-radius: var(--radius-sm); padding: 8px 12px; margin-top: 7px; font-size: 0.77rem; color: #166534; font-weight: 500; }
.link-preview.show { display: flex; }
.link-preview a { color: #16a34a; text-decoration: underline; font-size: 0.75rem; word-break: break-all; }

.public-warning { background: #fff7ed; border: 1.5px solid #fed7aa; border-radius: var(--radius-sm); padding: 9px 12px; font-size: 0.75rem; color: #9a3412; margin-top: 9px; margin-bottom: 12px; display: flex; align-items: flex-start; gap: 7px; line-height: 1.65; }
.public-warning .warn-icon { font-size: 0.95rem; flex-shrink: 0; margin-top: 1px; }

/* ══════════════════════════════════════════
   NOTES VIEWER
   ══════════════════════════════════════════ */
.nv-section-title {
  font-size: 0.82rem;
  font-weight: 500;
  color: #555;
  text-align: center;
  margin: 18px 0 20px;
  display: block;
}

#notes-container {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 8px 18px 26px;
}

.nv-loading, .nv-empty { font-size: 0.86rem; color: #bbb; text-align: center; padding: 12px 0; width: 100%; }

.nv-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  width: 200px;
  min-height: 80px;
  padding: 18px 16px;
  text-decoration: none;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 5px;
  transition: all var(--transition);
  box-sizing: border-box;
  border: 1px solid var(--border);
}

.nv-card:hover { transform: translateY(-4px); background: var(--accent-soft); box-shadow: var(--shadow-lg); border-color: rgba(246,171,59,0.3); }
.nv-unit-badge { font-size: 0.66rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em; }
.nv-unit-name  { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); line-height: 1.4; }
.nv-unit-sub   { font-size: 0.71rem; color: var(--text-muted); }
.nv-card-arrow { display: none; }
.nv-card-body  { display: contents; }

@media (max-width: 768px) { .nv-card { width: 82%; } }

/* ══════════════════════════════════════════
   SHAKE ANIMATION (global)
   ══════════════════════════════════════════ */
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-5px); }
  40%      { transform: translateX(5px); }
  60%      { transform: translateX(-3px); }
  80%      { transform: translateX(3px); }
}


    /* ── Role toggle pill ── */
    .role-toggle {
      display: flex;
      background: #f6f8fb;
      border-radius: 10px;
      padding: 4px;
      gap: 4px;
      margin-bottom: 22px;
    }

    .role-btn {
      flex: 1;
      padding: 9px 0;
      border: none;
      border-radius: 7px;
      background: transparent;
      font-family: "Poppins", sans-serif;
      font-size: 0.85rem;
      font-weight: 600;
      color: #aaa;
      cursor: pointer;
      transition: all 0.22s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      box-shadow: none;
      margin: 0;
    }

    .role-btn:hover {
      color: #555;
      transform: none;
      background: transparent;
    }

    .role-btn.active {
      background: #ffffff;
      color: #1c1c1e;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
    }

    .role-btn.active.admin-active {
      color: #c47e1a;
    }

    /* ── Admin mode — card accent ── */
    .login-card.admin-mode {
      border-top: 3px solid #f6ab3b;
    }

    /* ── Admin badge shown in card when admin mode ── */
    .admin-only {
      display: none;
    }
    .admin-mode .admin-only {
      display: block;
    }
    .admin-mode .teacher-only {
      display: none;
    }

    /* Small security notice for admin mode */
    .security-notice {
      display: flex;
      align-items: flex-start;
      gap: 9px;
      background: #fff8f0;
      border: 1.5px solid rgba(246, 171, 59, 0.3);
      border-radius: 9px;
      padding: 10px 13px;
      font-size: 0.74rem;
      color: #8a5c10;
      line-height: 1.55;
      margin-bottom: 14px;
    }
    .security-notice .notice-icon {
      font-size: 1rem;
      flex-shrink: 0;
      margin-top: 1px;
    }

    /* fp-link-row already in style.css — just in case */
    .fp-link-row {
      text-align: right;
      margin-bottom: 14px;
    }
    .fp-link {
      font-size: 0.78rem;
      color: #f6ab3b;
      text-decoration: none;
      font-weight: 500;
    }
    .fp-link:hover { color: #e09520; }

    /* register row */
    .register-row {
      margin-top: 18px;
      text-align: center;
      font-size: 0.82rem;
      color: #aaa;
    }
    .register-link {
      color: #f6ab3b;
      font-weight: 600;
      text-decoration: none;
      margin-left: 4px;
    }
    .register-link:hover { color: #e09520; }

    /* shake */
    @keyframes fp-shake {
      0%,100% { transform: translateX(0); }
      20%      { transform: translateX(-7px); }
      40%      { transform: translateX(7px); }
      60%      { transform: translateX(-5px); }
      80%      { transform: translateX(5px); }
    }

    
        .breadcrumb {
            text-align: center;
            padding: 15px 20px;
            background: #fff;
            font-size: 0.95rem;
            color: #666;
            border-bottom: 1px solid #eee;
        }

        .breadcrumb a {
            color: #f6ab3b;
            text-decoration: none;
            font-weight: 500;
        }

        .breadcrumb a:hover {
            text-decoration: underline;
        }

        .breadcrumb span {
            margin: 0 5px;
        }

        .loading-spinner {
            display: none;
            text-align: center;
            padding: 40px 20px;
        }

        .spinner {
            border: 4px solid #f0f0f0;
            border-top: 4px solid #f6ab3b;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
            margin: 0 auto;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        .error-message {
            display: none;
            text-align: center;
            padding: 20px;
            background: #fee2e2;
            color: #991b1b;
            border: 1px solid #fecaca;
            border-radius: 8px;
            margin: 20px;
        }

        .card-link {
            text-decoration: none;
            color: inherit;
        }
  
        .breadcrumb {
            text-align: center;
            padding: 15px 20px;
            background: #fff;
            font-size: 0.95rem;
            color: #666;
            border-bottom: 1px solid #eee;
        }

        .breadcrumb a {
            color: #f6ab3b;
            text-decoration: none;
            font-weight: 500;
        }

        .breadcrumb a:hover {
            text-decoration: underline;
        }

        .breadcrumb span {
            margin: 0 5px;
        }

        .subject-header {
            background: #fff;
            padding: 30px 20px;
            text-align: center;
            border-bottom: 1px solid #eee;
        }

        .subject-header h2 {
            color: #333;
            margin: 0;
            font-size: 1.8rem;
        }

        .subject-header p {
            color: #666;
            margin: 10px 0 0 0;
            font-size: 0.95rem;
        }

        .loading-spinner {
            display: none;
            text-align: center;
            padding: 40px 20px;
        }

        .spinner {
            border: 4px solid #f0f0f0;
            border-top: 4px solid #f6ab3b;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
            margin: 0 auto;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        .error-message {
            display: none;
            text-align: center;
            padding: 20px;
            background: #fee2e2;
            color: #991b1b;
            border: 1px solid #fecaca;
            border-radius: 8px;
            margin: 20px;
        }

        .units-container {
            max-width: 900px;
            margin: 30px auto;
            padding: 0 20px;
        }

        .unit-card {
            background: #fff;
            border: 1px solid #e5e7eb;
            border-radius: 12px;
            margin-bottom: 20px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }

        .unit-header {
            background: linear-gradient(135deg, #f6ab3b, #f59e0b);
            color: white;
            padding: 16px 20px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: space-between;
            transition: all 0.3s ease;
        }

        .unit-header:hover {
            background: linear-gradient(135deg, #f59e0b, #f97316);
        }

        .unit-header h3 {
            margin: 0;
            font-size: 1.1rem;
            font-weight: 600;
        }

        .unit-toggle {
            font-size: 1.2rem;
            transition: transform 0.3s ease;
        }

        .unit-toggle.collapsed {
            transform: rotate(-90deg);
        }

        .unit-content {
            padding: 0;
            max-height: 1000px;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .unit-content.collapsed {
            max-height: 0;
            padding: 0;
        }

        .note-item {
            padding: 16px 20px;
            border-bottom: 1px solid #e5e7eb;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: background 0.2s ease;
        }

        .note-item:hover {
            background: #f9fafb;
        }

        .note-item:last-child {
            border-bottom: none;
        }

        .note-info {
            flex: 1;
        }

        .note-info strong {
            display: block;
            color: #333;
            margin-bottom: 4px;
        }

        .note-info small {
            color: #999;
            display: block;
            margin-top: 4px;
            font-size: 0.85rem;
        }

        .note-link {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: linear-gradient(135deg, #3b82f6, #2563eb);
            color: white;
            padding: 8px 16px;
            border-radius: 8px;
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 500;
            transition: all 0.2s ease;
        }

        .note-link:hover {
            transform: translateY(-2px);
            background: linear-gradient(135deg, #2563eb, #1d4ed8);
        }

        .empty-state {
            text-align: center;
            padding: 40px 20px;
            color: #999;
        }

        .empty-state-icon {
            font-size: 3rem;
            margin-bottom: 10px;
        }

        .empty-state-text {
            font-size: 1.1rem;
            color: #666;
        }
    
        .breadcrumb {
            text-align: center;
            padding: 15px 20px;
            background: #fff;
            font-size: 0.95rem;
            color: #666;
            border-bottom: 1px solid #eee;
        }

        .breadcrumb a {
            color: #f6ab3b;
            text-decoration: none;
            font-weight: 500;
        }

        .breadcrumb a:hover {
            text-decoration: underline;
        }

        .breadcrumb span {
            margin: 0 5px;
        }

        .loading-spinner {
            display: none;
            text-align: center;
            padding: 40px 20px;
        }

        .spinner {
            border: 4px solid #f0f0f0;
            border-top: 4px solid #f6ab3b;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
            margin: 0 auto;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        .error-message {
            display: none;
            text-align: center;
            padding: 20px;
            background: #fee2e2;
            color: #991b1b;
            border: 1px solid #fecaca;
            border-radius: 8px;
            margin: 20px;
        }

        .card-link {
            text-decoration: none;
            color: inherit;
        }

        .badge {
            display: inline-block;
            background: #f6ab3b;
            color: white;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
            margin-top: 8px;
        }
  