:root {
  --stu-dark: #0b3d2e;
  --stu-green: #1b7a4a;
  --stu-mid: #2bb673;
  --stu-light: #a7f3d0;
  --stu-pale: #ecfdf5;
  --stu-focus: rgba(27, 122, 74, 0.28);
  --stu-ink: #12352a;
  --stu-muted: #3f6b58;
  --stu-card-shadow: 0 12px 32px rgba(11, 61, 46, 0.12);
  --stu-card-radius: 18px;
  --stu-blue: #0284c7;
  --stu-indigo: #4f46e5;
  --stu-amber: #d97706;
  --stu-rose: #e11d48;
  --stu-violet: #7c3aed;
  --stu-cyan: #0891b2;
  --stu-orange: #ea580c;
}

html, body {
  min-height: 100%;
}

body.stu-body {
  margin: 0;
  font-family: "Segoe UI", "Noto Sans Gujarati", system-ui, sans-serif;
  color: var(--stu-ink);
  background:
    radial-gradient(720px 420px at 8% 0%, rgba(56, 189, 248, 0.14) 0%, transparent 55%),
    radial-gradient(680px 400px at 92% 8%, rgba(244, 114, 182, 0.12) 0%, transparent 50%),
    radial-gradient(900px 520px at 50% 100%, rgba(167, 243, 208, 0.4) 0%, transparent 55%),
    linear-gradient(165deg, #ecfdf5 0%, #e0f2fe 38%, #d1fae5 72%, #fef3c7 100%);
  background-attachment: fixed;
}

/* —— Login —— */
.stu-login-bg {
  padding: 16px;
  background:
    radial-gradient(900px 520px at 15% 15%, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 60%),
    radial-gradient(1200px 650px at 20% 10%, #2bb673 0%, #1b7a4a 42%, #0b3d2e 100%),
    linear-gradient(135deg, #2bb673 0%, #0b3d2e 70%, #06261c 100%);
}

.stu-login-card {
  width: 100%;
  max-width: 460px;
  border-radius: 18px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(167, 243, 208, 0.35);
  box-shadow: 0 18px 50px rgba(6, 38, 28, 0.35);
}

.stu-login-logo { width: 118px; height: auto; }
.stu-login-name-logo { max-width: 220px; height: auto; margin-top: 0.35rem; }

.stu-text-dark { color: var(--stu-dark) !important; }

.stu-link {
  color: var(--stu-green);
  text-decoration: none;
  font-weight: 600;
}
.stu-link:hover {
  color: var(--stu-dark);
  text-decoration: underline;
}

.stu-btn-primary {
  background: linear-gradient(180deg, #2bb673 0%, #198754 100%);
  border-color: #157347;
  color: #fff;
  font-weight: 600;
}
.stu-btn-primary:hover {
  background: linear-gradient(180deg, #34c786 0%, #157347 100%);
  border-color: #146c43;
  color: #fff;
}

.stu-login-card .form-control:focus {
  border-color: var(--stu-green);
  box-shadow: 0 0 0 0.25rem var(--stu-focus);
}

/* —— Shell / Digi.Web-style drawer —— */
.stu-shell {
  min-height: 100vh;
  padding-bottom: 4.5rem;
}

.stu-app-shell {
  min-height: 100vh;
  display: flex;
  background: transparent;
}

.stu-app-drawer {
  width: 260px;
  background: linear-gradient(180deg, #0b3d2e 0%, #1b7a4a 55%, #0f5132 100%);
  color: #fff;
  padding: 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 1100;
  overflow-x: hidden;
  box-shadow: 8px 0 28px rgba(11, 61, 46, 0.18);
}

.stu-drawer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 4px 16px;
}

.stu-drawer-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  padding: 6px;
  object-fit: contain;
}

.stu-drawer-title {
  line-height: 1.15;
}

.stu-drawer-nav-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.32) rgba(0, 0, 0, 0.18);
}

.stu-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stu-drawer-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.stu-drawer-link:hover {
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.1) 100%);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  border-color: rgba(255, 255, 255, 0.2);
}

.stu-drawer-link.is-active {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(167, 243, 208, 0.45);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.stu-drawer-ico {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.stu-drawer-link--hw .stu-hw-badge {
  margin-left: auto;
}

.stu-drawer-footer {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: 10px;
}

.stu-drawer-user {
  font-size: 0.82rem;
  font-weight: 700;
  opacity: 0.92;
  margin-bottom: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stu-drawer-offcanvas {
  background: linear-gradient(180deg, #0b3d2e 0%, #1b7a4a 55%, #0f5132 100%);
  color: #fff;
  max-width: min(82vw, 300px);
}

.stu-drawer-offcanvas .offcanvas-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.stu-app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.stu-topbar {
  position: sticky;
  top: 0;
  z-index: 1040;
  height: 58px;
  background: linear-gradient(95deg, var(--stu-dark) 0%, var(--stu-green) 55%, #239e5c 100%);
  color: #fff;
  padding: 0 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  box-shadow: 0 6px 22px rgba(11, 61, 46, 0.28);
}

.stu-topbar a,
.stu-topbar .btn-link {
  color: #ecfdf5;
  text-decoration: none;
}

.stu-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
}

.stu-brand {
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 14rem;
}
.stu-brand a { color: inherit; text-decoration: none; }

.stu-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}
.stu-topbar-actions .stu-user-chip {
  display: none;
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
}

.stu-main {
  flex: 1;
  padding: 1.25rem 1rem 1.5rem;
  max-width: none;
  width: 100%;
  margin: 0;
}

/* —— Bottom nav (mobile) —— */
.stu-bottomnav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  padding: 0.35rem 0.25rem calc(0.35rem + env(safe-area-inset-bottom, 0));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(27, 122, 74, 0.14);
  box-shadow: 0 -8px 28px rgba(11, 61, 46, 0.1);
}
.stu-bottomnav__icon-wrap {
  position: relative;
  display: inline-flex;
}
.stu-bottomnav__icon-wrap .stu-hw-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  min-width: 1rem;
  height: 1rem;
  font-size: 0.58rem;
  padding: 0 0.28rem;
}
.stu-bottomnav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  text-decoration: none;
  color: var(--stu-muted);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.35rem 0.15rem;
  border-radius: 12px;
  min-height: 3.1rem;
}
.stu-bottomnav a svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.stu-bottomnav a.is-active,
.stu-bottomnav a:hover {
  color: var(--stu-green);
  background: rgba(167, 243, 208, 0.35);
}

@media (min-width: 768px) {
  .stu-shell { padding-bottom: 0; }
  .stu-topbar-actions .stu-user-chip { display: inline-block; }
  .stu-bottomnav { display: none; }
  .stu-main { padding: 1.75rem 1.5rem 2.25rem; }
}

/* —— Hero (Digi.Web dashboard-style) —— */
.stu-hero {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  color: #fff;
  min-height: 0;
  box-shadow:
    0 20px 50px rgba(11, 61, 46, 0.22),
    0 4px 16px rgba(30, 64, 175, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.stu-hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    #0b3d2e 0%,
    #1b7a4a 18%,
    #0891b2 38%,
    #2563eb 58%,
    #7c3aed 78%,
    #db2777 100%
  );
  background-size: 200% 200%;
  animation: stu-hero-gradient 12s ease infinite;
}

.stu-hero__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 255, 255, 0.08) 48%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0.08) 52%,
    transparent 60%,
    transparent 100%
  );
  background-size: 250% 100%;
  animation: stu-hero-shine 4.5s ease-in-out infinite;
  pointer-events: none;
}

.stu-hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.45;
  pointer-events: none;
}
.stu-hero__glow--1 {
  width: 200px;
  height: 200px;
  top: -70px;
  right: 10%;
  background: #fbbf24;
  animation: stu-hero-float 8s ease-in-out infinite;
}
.stu-hero__glow--2 {
  width: 160px;
  height: 160px;
  bottom: -50px;
  left: 8%;
  background: #38bdf8;
  animation: stu-hero-float 10s ease-in-out infinite reverse;
}

.stu-hero__inner {
  position: relative;
  z-index: 2;
  padding: 1.1rem 1.15rem 1.15rem;
}

@media (min-width: 768px) {
  .stu-hero__inner {
    padding: 1.35rem 1.5rem 1.4rem;
  }
}

.stu-hero__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0.3rem;
}

.stu-hero__title {
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 800;
  margin: 0 0 0.35rem;
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.stu-hero__sub {
  margin: 0;
  opacity: 0.92;
  font-size: 0.92rem;
  max-width: 36rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.95);
}

.stu-hero__login {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 0.15rem 0.5rem;
}

/* Date / time strip — Digi.Web dash-hero-panchang-card style */
.stu-hero-datetime {
  position: relative;
  margin-top: 0.85rem;
  border-radius: 14px;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.stu-hero-datetime__text {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.15rem 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.96);
  line-height: 1.25;
  white-space: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  min-width: 0;
}

.stu-hero-datetime__text::-webkit-scrollbar {
  display: none;
}

.stu-hero-datetime__sep {
  opacity: 0.65;
}

.stu-hero-datetime__ist {
  font-size: 0.7rem;
  font-weight: 700;
  opacity: 0.85;
}

.stu-hero-datetime__bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #fbbf24, #34d399, #38bdf8, #a78bfa);
}

@keyframes stu-hero-gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes stu-hero-shine {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

@keyframes stu-hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(12px); }
}

@media (prefers-reduced-motion: reduce) {
  .stu-hero__bg,
  .stu-hero__shine,
  .stu-hero__glow--1,
  .stu-hero__glow--2 {
    animation: none;
  }
}

.stu-flash {
  border-radius: 12px;
  border: 0;
  box-shadow: 0 6px 16px rgba(22, 101, 52, 0.12);
}

.stu-section-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stu-muted);
  margin: 0;
}

/* —— Page toolbar —— */
.stu-page-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.stu-page-bar h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--stu-dark);
}
.stu-btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid rgba(27, 122, 74, 0.35);
  color: var(--stu-green);
  background: #fff;
  padding: 0.35rem 0.85rem;
  text-decoration: none;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(11, 61, 46, 0.06);
}
.stu-btn-back:hover {
  background: var(--stu-pale);
  color: var(--stu-dark);
}

/* —— Section cards (Digi.Web-like colored heads) —— */
.stu-dash-card,
.stu-section-card {
  border: 0;
  border-radius: var(--stu-card-radius);
  background: #fff;
  box-shadow: var(--stu-card-shadow);
  overflow: hidden;
}
.stu-dash-card {
  background: linear-gradient(180deg, #fff 0%, #f8fffb 100%);
  border-top: 4px solid var(--stu-mid);
}
.stu-dash-card h1 {
  color: var(--stu-dark);
  font-weight: 800;
}

.stu-section-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.15rem;
  color: #fff;
  font-weight: 800;
  font-size: 1.02rem;
}
.stu-section-card__head--profile {
  background: linear-gradient(125deg, #0f766e 0%, #14b8a6 55%, #5eead4 100%);
}
.stu-section-card__head--attn {
  background: linear-gradient(125deg, #075985 0%, #0284c7 50%, #38bdf8 100%);
}
.stu-section-card__head--contact {
  background: linear-gradient(125deg, #4338ca 0%, #6366f1 55%, #a5b4fc 100%);
}
.stu-section-card__head--support {
  background: linear-gradient(125deg, #b45309 0%, #d97706 55%, #fbbf24 100%);
  color: #1a1a1a !important;
}
.stu-section-card__head--suggest {
  background: linear-gradient(125deg, #6d28d9 0%, #7c3aed 55%, #c4b5fd 100%);
}
.stu-section-card__head--announce {
  background: linear-gradient(125deg, #be123c 0%, #e11d48 55%, #fb7185 100%);
}
.stu-section-card__head--list {
  background: linear-gradient(125deg, #166534 0%, #16a34a 55%, #86efac 100%);
  color: #fff;
}
.stu-section-card__head--form {
  background: linear-gradient(90deg, #f5d547 0%, #f0c929 55%, #e8bc18 100%);
  color: #1a1a1a !important;
}

.stu-alert-force {
  border-left: 4px solid #f59e0b;
  background: #fffbeb;
}

.stu-criteria {
  font-size: 0.85rem;
  color: #166534;
  background: var(--stu-pale);
  border: 1px solid var(--stu-light);
  border-radius: 10px;
  padding: 0.75rem 1rem;
}

/* —— Dashboard tiles —— */
.stu-tile {
  --tile-accent: var(--stu-green);
  --tile-soft: rgba(167, 243, 208, 0.55);
  --tile-icon-bg: linear-gradient(145deg, #ecfdf5 0%, #bbf7d0 100%);
  --tile-icon-fg: var(--stu-green);
  height: 100%;
  min-height: 9.2rem;
  border-radius: 16px;
  padding: 1.05rem 1rem 0.9rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-bottom: 3px solid var(--tile-accent);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  position: relative;
  overflow: hidden;
}
.stu-tile::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -20%;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  background: var(--tile-soft);
  opacity: 0.55;
  pointer-events: none;
}

.stu-tile-icon {
  position: relative;
  z-index: 1;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tile-icon-bg);
  color: var(--tile-icon-fg);
  margin-bottom: 0.35rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}
.stu-tile-icon svg { display: block; }

.stu-tile-title {
  position: relative;
  z-index: 1;
  font-weight: 800;
  color: var(--stu-dark);
  font-size: 1.02rem;
}
.stu-tile-sub {
  position: relative;
  z-index: 1;
  color: var(--stu-muted);
  font-size: 0.82rem;
  flex: 1;
}
.stu-tile-soon {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--tile-accent);
  background: var(--tile-soft);
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
  margin-top: 0.25rem;
}

a.stu-tile--link {
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
a.stu-tile--link:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
  color: inherit;
}
a.stu-tile--link .stu-tile-soon {
  color: #fff;
  background: var(--tile-accent);
}

.stu-tile--soon-card {
  opacity: 0.88;
}
.stu-tile--soon-card .stu-tile-soon {
  color: #64748b;
  background: #f1f5f9;
}

/* Tile color variants */
.stu-tile--profile {
  --tile-accent: #0d9488;
  --tile-soft: rgba(94, 234, 212, 0.45);
  --tile-icon-bg: linear-gradient(145deg, #ccfbf1 0%, #5eead4 100%);
  --tile-icon-fg: #0f766e;
}
.stu-tile--attn {
  --tile-accent: #0284c7;
  --tile-soft: rgba(125, 211, 252, 0.45);
  --tile-icon-bg: linear-gradient(145deg, #e0f2fe 0%, #7dd3fc 100%);
  --tile-icon-fg: #0369a1;
}
.stu-tile--announce {
  --tile-accent: #e11d48;
  --tile-soft: rgba(251, 113, 133, 0.4);
  --tile-icon-bg: linear-gradient(145deg, #ffe4e6 0%, #fda4af 100%);
  --tile-icon-fg: #be123c;
}
.stu-tile--contact {
  --tile-accent: #4f46e5;
  --tile-soft: rgba(165, 180, 252, 0.45);
  --tile-icon-bg: linear-gradient(145deg, #e0e7ff 0%, #a5b4fc 100%);
  --tile-icon-fg: #4338ca;
}
.stu-tile--support {
  --tile-accent: #d97706;
  --tile-soft: rgba(253, 230, 138, 0.55);
  --tile-icon-bg: linear-gradient(145deg, #fef3c7 0%, #fbbf24 100%);
  --tile-icon-fg: #b45309;
}
.stu-tile--suggest {
  --tile-accent: #7c3aed;
  --tile-soft: rgba(196, 181, 253, 0.45);
  --tile-icon-bg: linear-gradient(145deg, #ede9fe 0%, #c4b5fd 100%);
  --tile-icon-fg: #6d28d9;
}
.stu-tile--result {
  --tile-accent: #059669;
  --tile-soft: rgba(167, 243, 208, 0.4);
  --tile-icon-bg: linear-gradient(145deg, #ecfdf5 0%, #6ee7b7 100%);
  --tile-icon-fg: #047857;
}
.stu-tile--timetable {
  --tile-accent: #ea580c;
  --tile-soft: rgba(253, 186, 116, 0.4);
  --tile-icon-bg: linear-gradient(145deg, #ffedd5 0%, #fdba74 100%);
  --tile-icon-fg: #c2410c;
}
.stu-tile--raja {
  --tile-accent: #b45309;
  --tile-soft: rgba(253, 186, 116, 0.45);
  --tile-icon-bg: linear-gradient(145deg, #fff7ed 0%, #fdba74 100%);
  --tile-icon-fg: #9a3412;
}
.stu-tile--homework {
  --tile-accent: #db2777;
  --tile-soft: rgba(249, 168, 212, 0.4);
  --tile-icon-bg: linear-gradient(145deg, #fce7f3 0%, #f9a8d4 100%);
  --tile-icon-fg: #be185d;
}

.stu-tile-badge {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
}

.stu-hw-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.45);
}

.stu-hw-badge--head {
  background: rgba(255, 255, 255, 0.95);
  color: #be123c;
}

.stu-hw-body {
  white-space: pre-wrap;
  line-height: 1.55;
  color: var(--stu-ink);
}

.stu-hw-img {
  max-width: 100%;
  max-height: 240px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  object-fit: contain;
  background: #fff;
}

.stu-hw-card--pending {
  box-shadow: 0 12px 32px rgba(225, 29, 72, 0.12);
}

.stu-hw-card--done {
  opacity: 0.92;
}

/* —— Profile / KV —— */
.stu-profile-photo {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 18px;
  border: 3px solid #99f6e4;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.18);
}
.stu-profile-photo--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: #0d9488;
  background: linear-gradient(145deg, #ecfdf5, #ccfbf1);
}

.stu-kv {
  background: linear-gradient(180deg, #fff 0%, #f0fdf4 100%);
  border: 1px solid rgba(167, 243, 208, 0.75);
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  box-shadow: 0 2px 8px rgba(11, 61, 46, 0.04);
}
.stu-kv span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--stu-muted);
}
.stu-kv strong {
  color: var(--stu-dark);
  font-weight: 700;
  word-break: break-word;
}

/* —— Stats —— */
.stu-stat {
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-bottom: 3px solid var(--stu-mid);
  padding: 0.85rem 0.85rem;
  text-align: center;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}
.stu-stat-n {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--stu-dark);
  line-height: 1.1;
}
.stu-stat-l {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--stu-muted);
  margin-top: 0.25rem;
}
.stu-stat--ok {
  border-bottom-color: #16a34a;
  background: linear-gradient(180deg, #fff 0%, #f0fdf4 100%);
}
.stu-stat--ok .stu-stat-n { color: #15803d; }
.stu-stat--bad {
  border-bottom-color: #e11d48;
  background: linear-gradient(180deg, #fff 0%, #fff1f2 100%);
}
.stu-stat--bad .stu-stat-n { color: #be123c; }
.stu-stat--info {
  border-bottom-color: #0284c7;
  background: linear-gradient(180deg, #fff 0%, #f0f9ff 100%);
}
.stu-stat--info .stu-stat-n { color: #0369a1; }
.stu-stat--warn {
  border-bottom-color: #d97706;
  background: linear-gradient(180deg, #fff 0%, #fffbeb 100%);
}
.stu-stat--warn .stu-stat-n { color: #b45309; }

.stu-attn-table th {
  background: linear-gradient(90deg, #ecfdf5 0%, #e0f2fe 100%);
  color: var(--stu-dark);
  font-weight: 700;
  white-space: nowrap;
}
.stu-attn-table td { vertical-align: middle; }
.stu-attn-ok { background: rgba(187, 247, 208, 0.4); }
.stu-attn-bad { background: rgba(254, 205, 211, 0.55); }
.stu-attn-off { color: #6b7280; background: rgba(243, 244, 246, 0.65); }

/* —— Announcements —— */
.stu-announce-list {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--stu-card-shadow);
  border: 0;
}
.stu-announce-item {
  border-color: rgba(27, 122, 74, 0.1) !important;
  background: linear-gradient(165deg, #ffffff 0%, #fff1f2 100%);
  border-left: 4px solid #e11d48 !important;
}
.stu-announce-item:hover { background: #fff; }
.stu-tile-soon--rose {
  color: #fff !important;
  background: #e11d48 !important;
}
.stu-announce-body {
  white-space: pre-wrap;
  line-height: 1.55;
  color: var(--stu-ink);
}

/* Form labels in student portal */
.stu-section-card .form-label {
  color: var(--stu-dark);
  font-weight: 700;
}

.stu-raja-alert-modal__head {
  background: linear-gradient(125deg, #7f1d1d 0%, #b91c1c 60%, #f87171 100%);
  color: #fff;
}
.stu-raja-alert-modal {
  border-radius: 16px;
  overflow: hidden;
}

/* dd/MM/yyyy text + calendar (Digi.Web gr-date-wrap pattern) */
.gr-date-wrap {
  position: relative;
  display: block;
  width: 100%;
}
.gr-date-wrap .form-control {
  padding-right: 44px;
}
.gr-date-wrap .gr-date-native {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  min-width: 34px;
  padding: 0;
  margin: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  box-sizing: border-box;
  color-scheme: light;
  pointer-events: none;
}
.gr-date-wrap .gr-date-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(11, 61, 46, 0.2);
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(236, 253, 245, 0.9));
  border-radius: 10px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--stu-green, #0b3d2e);
  cursor: pointer;
  z-index: 3;
  pointer-events: auto;
}
.gr-date-wrap .gr-date-btn:hover {
  border-color: rgba(27, 122, 74, 0.45);
  box-shadow: 0 8px 16px rgba(11, 61, 46, 0.12);
}
.gr-date-wrap .gr-date-btn svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}
.gr-date-wrap .gr-date-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.stu-entry-page .stu-section-card {
  width: 100%;
}

