/* Shahriari School — Public (Parent) Front-end
   Colorful glassmorphism, RTL, mobile-first. Namespaced with "shs-" only. */

* { box-sizing: border-box; }

html, body.shs-body-tag {
	margin: 0;
	padding: 0;
	width: 100%;
	min-height: 100%;
	font-family: 'Vazirmatn', Tahoma, sans-serif;
	background: linear-gradient(135deg, #fdf2f8 0%, #f5f3ff 35%, #ecfeff 70%, #f0fdf4 100%);
	color: #312e42;
	direction: rtl;
	overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(139,92,246,.35); border-radius: 10px; }

/* ---------- Animated background blobs (shared) ---------- */
.shs-blob {
	position: fixed;
	border-radius: 50%;
	filter: blur(60px);
	opacity: .55;
	z-index: 0;
	animation: shs-float 14s ease-in-out infinite;
}
.shs-blob-1 { width: 380px; height: 380px; top: -100px; right: -80px; background: radial-gradient(circle, #f9a8d4, #c084fc); }
.shs-blob-2 { width: 320px; height: 320px; bottom: -100px; left: -80px; background: radial-gradient(circle, #67e8f9, #60a5fa); animation-delay: -4s; }
.shs-blob-3 { width: 260px; height: 260px; top: 40%; left: 20%; background: radial-gradient(circle, #fde68a, #fca5a5); animation-delay: -8s; }

@keyframes shs-float {
	0%, 100% { transform: translateY(0) scale(1); }
	50% { transform: translateY(-30px) scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
	.shs-blob, .shs-fade-in, * { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}

/* ---------- Login page ---------- */
.shs-login-page {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.shs-login-card {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 400px;
	background: rgba(255,255,255,.55);
	backdrop-filter: blur(22px);
	-webkit-backdrop-filter: blur(22px);
	border: 1px solid rgba(255,255,255,.6);
	border-radius: 28px;
	box-shadow: 0 20px 60px rgba(124,58,237,.18);
	padding: 40px 28px;
	text-align: center;
	animation: shs-pop .5s cubic-bezier(.2,.9,.3,1.2);
}

@keyframes shs-pop {
	from { opacity: 0; transform: translateY(24px) scale(.96); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

.shs-login-emoji { font-size: 52px; margin-bottom: 6px; }
.shs-login-logo { max-width: 90px; max-height: 90px; margin: 0 auto 10px; border-radius: 18px; }
.shs-login-title { font-size: 22px; font-weight: 800; margin: 4px 0 2px; background: linear-gradient(90deg, #a855f7, #ec4899); -webkit-background-clip: text; background-clip: text; color: transparent; }
.shs-login-subtitle { color: #7c7891; margin: 0 0 26px; font-size: 14px; }

.shs-login-form { text-align: right; }
.shs-field { margin-bottom: 16px; }
.shs-field label { display: block; font-size: 13px; margin-bottom: 6px; color: #5b5570; font-weight: 600; }
.shs-field input {
	width: 100%;
	padding: 13px 16px;
	border-radius: 16px;
	border: 1px solid rgba(139,92,246,.25);
	background: rgba(255,255,255,.75);
	font-family: inherit;
	font-size: 15px;
	outline: none;
	transition: border-color .2s, box-shadow .2s;
}
.shs-field input:focus { border-color: #a855f7; box-shadow: 0 0 0 4px rgba(168,85,247,.15); }

.shs-login-error {
	background: rgba(244,63,94,.1);
	color: #be123c;
	border: 1px solid rgba(244,63,94,.25);
	border-radius: 12px;
	padding: 10px 14px;
	font-size: 13px;
	margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.shs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: none;
	border-radius: 16px;
	padding: 13px 20px;
	font-size: 15px;
	font-weight: 700;
	transition: transform .15s ease, box-shadow .15s ease, opacity .15s;
}
.shs-btn:active { transform: scale(.97); }
.shs-btn-block { width: 100%; }
.shs-btn-primary {
	background: linear-gradient(90deg, #a855f7, #ec4899);
	color: #fff;
	box-shadow: 0 10px 24px rgba(168,85,247,.35);
}
.shs-btn-primary:hover { box-shadow: 0 14px 30px rgba(168,85,247,.45); }
.shs-btn-primary[disabled] { opacity: .7; pointer-events: none; }
.shs-btn-outline {
	background: rgba(255,255,255,.6);
	border: 1px solid rgba(139,92,246,.3);
	color: #7c3aed;
}
.shs-spinner {
	width: 16px; height: 16px;
	border: 2px solid rgba(255,255,255,.5);
	border-top-color: #fff;
	border-radius: 50%;
	animation: shs-spin .7s linear infinite;
}
@keyframes shs-spin { to { transform: rotate(360deg); } }

/* ---------- App shell ---------- */
.shs-app { position: relative; min-height: 100vh; z-index: 1; }
.shs-topbar {
	position: sticky; top: 0; z-index: 30;
	display: flex; align-items: center; gap: 14px;
	padding: 12px 20px;
	background: rgba(255,255,255,.65);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	border-bottom: 1px solid rgba(255,255,255,.5);
}
.shs-menu-toggle {
	display: none;
	flex-direction: column;
	gap: 4px;
	background: none; border: none; padding: 6px;
}
.shs-menu-toggle span { width: 22px; height: 2px; background: #7c3aed; border-radius: 2px; }

.shs-topbar-brand { display: flex; align-items: center; gap: 10px; flex: 1; }
.shs-topbar-logo { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; }
.shs-topbar-emoji { font-size: 26px; }
.shs-topbar-text { display: flex; flex-direction: column; line-height: 1.3; }
.shs-topbar-text strong { font-size: 14px; }
.shs-topbar-text small { color: #8a8499; font-size: 11px; }

.shs-topbar-user { display: flex; align-items: center; gap: 10px; }
.shs-topbar-username { font-size: 13px; font-weight: 600; color: #514c66; }

.shs-avatar {
	width: 34px; height: 34px; border-radius: 50%;
	background: linear-gradient(135deg, #a855f7, #ec4899);
	color: #fff; display: flex; align-items: center; justify-content: center;
	font-weight: 800; font-size: 14px;
}

/* Preset student avatar (emoji + gradient bubble) — see SHS_Student_Profile::avatar_html() */
.shs-avatar-bubble {
	width: var(--shs-av-size, 44px); height: var(--shs-av-size, 44px);
	border-radius: 50%; flex-shrink: 0;
	background: linear-gradient(135deg, var(--shs-av-from, #a855f7), var(--shs-av-to, #ec4899));
	display: inline-flex; align-items: center; justify-content: center;
	box-shadow: 0 4px 14px rgba(124,58,237,.22);
	line-height: 1;
}
.shs-avatar-lg { width: 56px; height: 56px; font-size: 22px; }
.shs-avatar-md { width: 44px; height: 44px; font-size: 17px; }
.shs-avatar-xl { width: 76px; height: 76px; font-size: 30px; margin: 0 auto 10px; }

/* ---------- Live clock (header) ---------- */
.shs-topbar-clock {
	display: flex; align-items: center; gap: 8px;
	font-size: 12.5px; font-weight: 700; color: #6b6480;
	background: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.6);
	border-radius: 999px; padding: 7px 14px; white-space: nowrap;
}
.shs-topbar-clock span:not(:last-child)::after { content: '·'; margin-inline-start: 8px; color: #c9c2e0; }
#shs-clock-time { font-variant-numeric: tabular-nums; color: #7c3aed; }

/* ---------- Notification bell + panel ---------- */
.shs-notif-bell-wrap { position: relative; }
.shs-notif-bell {
	position: relative; width: 38px; height: 38px; border-radius: 50%;
	border: 1px solid rgba(255,255,255,.6); background: rgba(255,255,255,.55);
	font-size: 17px; cursor: pointer; display: flex; align-items: center; justify-content: center;
	transition: transform .15s ease, background .15s ease;
}
.shs-notif-bell:hover { background: rgba(255,255,255,.85); transform: scale(1.06); }
.shs-notif-bell.has-unread { animation: shs-bell-ring 2.5s ease-in-out infinite; }
@keyframes shs-bell-ring { 0%, 92%, 100% { transform: rotate(0); } 94% { transform: rotate(-12deg); } 96% { transform: rotate(10deg); } 98% { transform: rotate(-6deg); } }

.shs-notif-badge {
	position: absolute; top: -2px; left: -2px;
	min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px;
	background: #ef4444; color: #fff; font-size: 10.5px; font-weight: 800;
	display: flex; align-items: center; justify-content: center; line-height: 1;
	box-shadow: 0 0 0 2px #fff;
}
/* The `hidden` attribute toggles this on/off from JS — without this rule,
   the `display: flex` above (an author style) overrides the browser's
   built-in `[hidden]{display:none}`, so the badge never actually hides. */
.shs-notif-badge[hidden] { display: none; }

.shs-notif-panel {
	position: absolute; top: calc(100% + 10px); left: 0;
	width: 340px; max-width: 90vw; max-height: 440px;
	background: #fff; border-radius: 20px; overflow: hidden;
	box-shadow: 0 20px 45px rgba(80,50,140,.22);
	border: 1px solid rgba(230,220,255,.8);
	display: flex; flex-direction: column;
	z-index: 60;
	animation: shs-panel-open .18s ease both;
}
/* Same reasoning as .shs-notif-badge above — this is what was actually
   causing the panel to stay stuck open (and permanently "loading") on
   every page load, since [hidden] had no effect without this override. */
.shs-notif-panel[hidden] { display: none; }
@keyframes shs-panel-open { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

.shs-notif-panel-head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 14px 16px; border-bottom: 1px solid #f1edfb;
}
.shs-notif-panel-head strong { font-size: 14px; color: #3b2f66; }
.shs-notif-panel-head button {
	border: none; background: none; color: #7c3aed; font-size: 11.5px; font-weight: 700; cursor: pointer;
}
.shs-notif-panel-head button:hover { text-decoration: underline; }

.shs-notif-panel-list { overflow-y: auto; flex: 1; }
.shs-notif-item {
	display: block; padding: 12px 16px; border-bottom: 1px solid #f6f3fc;
	text-align: right; cursor: pointer; transition: background .12s ease;
}
.shs-notif-item:hover { background: #faf8ff; }
.shs-notif-item.is-unread { background: #f7f2ff; }
.shs-notif-item.is-unread::before {
	content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
	background: #7c3aed; margin-inline-end: 6px;
}
.shs-notif-item-title { font-size: 13px; font-weight: 700; color: #3b2f66; margin-bottom: 3px; }
.shs-notif-item-body { font-size: 12px; color: #7c7891; line-height: 1.7; }
.shs-notif-item-meta { font-size: 10.5px; color: #a89fc4; margin-top: 4px; }

.shs-notif-state { padding: 28px 16px; text-align: center; font-size: 12.5px; color: #a89fc4; }

.shs-notif-panel-footer {
	display: block; text-align: center; padding: 11px; font-size: 12px; font-weight: 700;
	color: #7c3aed; border-top: 1px solid #f1edfb; background: #faf8ff;
}
.shs-notif-panel-footer:hover { background: #f3edff; }

@media (max-width: 640px) {
	.shs-topbar-clock { display: none; }
	.shs-notif-panel { position: fixed; top: 62px; left: 10px; right: 10px; width: auto; max-width: none; }
}

/* ---------- Notification center — dedicated page ---------- */
.shs-notif-page-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
.shs-notif-filter-btn {
	border: 1px solid rgba(168,85,247,.25); background: rgba(255,255,255,.6);
	color: #6b6480; font-size: 12.5px; font-weight: 700; padding: 8px 16px;
	border-radius: 999px; cursor: pointer; transition: all .15s ease;
}
.shs-notif-filter-btn:hover { background: rgba(168,85,247,.1); }
.shs-notif-filter-btn.is-active { background: linear-gradient(90deg, #a855f7, #ec4899); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(168,85,247,.3); }
.shs-notif-mark-all-page-btn {
	margin-inline-start: auto; border: none; background: none; color: #7c3aed;
	font-size: 12px; font-weight: 700; cursor: pointer; padding: 8px 4px;
}
.shs-notif-mark-all-page-btn:hover { text-decoration: underline; }

.shs-notif-page-list { display: flex; flex-direction: column; gap: 10px; }
.shs-notif-page-item {
	display: flex; gap: 14px; align-items: flex-start; cursor: pointer;
	transition: transform .12s ease, box-shadow .12s ease;
}
.shs-notif-page-item:hover { transform: translateY(-1px); }
.shs-notif-page-item.is-unread { border: 1px solid rgba(139,92,246,.35); border: 1px solid color-mix(in srgb, var(--shs-accent, #8b5cf6) 35%, transparent); box-shadow: rgba(0,0,0,.5) 0 0 0 0; }
.shs-notif-page-icon {
	width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
	background: rgba(168,85,247,.1); display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.shs-notif-page-content { flex: 1; min-width: 0; }
.shs-notif-page-title { font-size: 14px; font-weight: 800; color: #3b2f66; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.shs-notif-dot { width: 7px; height: 7px; border-radius: 50%; background: #ef4444; display: inline-block; flex-shrink: 0; }
.shs-notif-page-body { font-size: 13px; color: #6b6480; line-height: 1.8; margin-bottom: 6px; word-break: break-word; }
.shs-notif-page-meta { font-size: 11px; color: #a89fc4; }
.shs-notif-empty-state { padding: 50px 16px; font-size: 14px; }

@media (max-width: 480px) {
	.shs-notif-page-filters { gap: 6px; }
	.shs-notif-mark-all-page-btn { margin-inline-start: 0; flex-basis: 100%; text-align: center; }
	.shs-notif-page-item { gap: 10px; }
}

.shs-body { display: flex; min-height: calc(100vh - 62px); }

.shs-sidebar {
	width: 240px;
	flex-shrink: 0;
	padding: 20px 14px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	background: rgba(255,255,255,.45);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-left: 1px solid rgba(255,255,255,.5);
}
.shs-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.shs-nav-item {
	display: flex; align-items: center; gap: 12px;
	padding: 12px 14px; border-radius: 16px;
	font-size: 14px; font-weight: 600; color: #514c66;
	transition: background .18s, transform .15s;
}
.shs-nav-item:hover { background: rgba(168,85,247,.1); transform: translateX(-2px); }
.shs-nav-item.is-active {
	background: linear-gradient(90deg, #a855f7, #ec4899);
	color: #fff;
	box-shadow: 0 8px 20px rgba(168,85,247,.35);
}
.shs-nav-icon { font-size: 18px; }
.shs-nav-label { flex: 1; }
.shs-nav-badge {
	min-width: 20px; height: 20px; padding: 0 6px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 999px; font-size: 11px; font-weight: 800;
	background: #ef4444; color: #fff; line-height: 1;
}
.shs-nav-item.is-active .shs-nav-badge { background: rgba(255,255,255,.9); color: #be123c; }
.shs-logout-btn {
	display: flex; align-items: center; gap: 12px;
	padding: 12px 14px; border-radius: 16px;
	background: rgba(244,63,94,.08); color: #be123c;
	border: none; font-weight: 700; font-size: 14px;
}
.shs-logout-btn:hover { background: rgba(244,63,94,.16); }

.shs-sidebar-overlay { display: none; }

.shs-main { flex: 1; min-width: 0; }
.shs-main-inner { padding: 26px 24px 60px; max-width: 1100px; }

.shs-fade-in { animation: shs-fadeup .45s ease both; }
@keyframes shs-fadeup { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

.shs-page-title { font-size: 22px; font-weight: 800; margin: 0 0 4px; }
.shs-page-subtitle { color: #7c7891; margin: 0 0 22px; font-size: 14px; }

.shs-glass-card {
	background: rgba(255,255,255,.6);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(255,255,255,.6);
	border-radius: 22px;
	box-shadow: 0 10px 30px rgba(124,58,237,.10);
	padding: 20px;
	margin-bottom: 18px;
	transition: transform .2s ease, box-shadow .2s ease;
}
.shs-glass-card:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(124,58,237,.16); }

.shs-student-card { display: flex; align-items: center; gap: 16px; }
.shs-student-card-info h2 { margin: 0 0 4px; font-size: 17px; }
.shs-student-card-info p { margin: 0; color: #7c7891; font-size: 13px; }

.shs-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 8px; }
.shs-stat-grid-3 { grid-template-columns: repeat(3, 1fr); }
.shs-stat-card { display: flex; flex-direction: column; gap: 8px; }
.shs-stat-label { font-size: 12px; color: #7c7891; font-weight: 700; }
.shs-stat-value { font-size: 26px; font-weight: 800; }
.shs-stat-value-sm { font-size: 15px; }
.shs-stat-pink { background: linear-gradient(160deg, rgba(249,168,212,.35), rgba(255,255,255,.55)); }
.shs-stat-purple { background: linear-gradient(160deg, rgba(196,181,253,.35), rgba(255,255,255,.55)); }
.shs-stat-teal { background: linear-gradient(160deg, rgba(103,232,249,.35), rgba(255,255,255,.55)); }
.shs-stat-orange { background: linear-gradient(160deg, rgba(253,186,116,.35), rgba(255,255,255,.55)); }

.shs-table-card { overflow-x: auto; }
.shs-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.shs-table th, .shs-table td { padding: 12px 10px; text-align: right; }
.shs-table thead th { color: #7c7891; font-size: 12px; border-bottom: 1px solid rgba(139,92,246,.15); }
.shs-table tbody tr { border-bottom: 1px solid rgba(139,92,246,.08); }
.shs-table tbody tr:last-child { border-bottom: none; }
.shs-score-pill {
	display: inline-block; min-width: 40px; text-align: center;
	padding: 4px 10px; border-radius: 999px; font-weight: 800;
	background: linear-gradient(90deg, rgba(168,85,247,.15), rgba(236,72,153,.15));
	color: #7c3aed;
}
.shs-score-pill.shs-level-excellent { background: linear-gradient(90deg, rgba(168,85,247,.22), rgba(236,72,153,.22)); color: #7c3aed; }
.shs-score-pill.shs-level-good { background: rgba(6,182,212,.16); color: #0e7490; }
.shs-score-pill.shs-level-acceptable { background: rgba(251,146,60,.18); color: #c2410c; }
.shs-score-pill.shs-level-needs_effort { background: rgba(244,63,94,.14); color: #be123c; }
.shs-empty { color: #a39dae; text-align: center; padding: 20px; }

.shs-average-card { display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 700; }
.shs-average-card strong { font-size: 22px; color: #a855f7; }

.shs-calendar-card .shs-card-heading { margin: 0; font-size: 15px; }
.shs-calendar-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.shs-calendar-title { display: flex; align-items: center; gap: 10px; }
.shs-calendar-today-badge {
	font-size: 11px; font-weight: 700; color: #7c3aed;
	background: rgba(168,85,247,.12); border-radius: 999px; padding: 3px 10px;
}
.shs-month-nav {
	width: 34px; height: 34px; flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
	border-radius: 50%; font-size: 20px; font-weight: 800;
	background: rgba(168,85,247,.1); color: #7c3aed;
	transition: background .15s, transform .15s;
}
.shs-month-nav:hover { background: rgba(168,85,247,.2); transform: scale(1.06); }
.shs-calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.shs-day { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px; border-radius: 12px; font-size: 12px; }
.shs-day-present { background: rgba(34,197,94,.12); }
.shs-day-absent { background: rgba(244,63,94,.12); }
.shs-day-future { background: rgba(148,163,184,.08); color: #b6b2c0; }
.shs-day-icon { font-size: 10px; }
.shs-calendar-legend { display: flex; gap: 16px; margin-top: 14px; font-size: 13px; color: #7c7891; }

.shs-status-card h3 { margin: 0 0 14px; }
.shs-status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.shs-status-grid div { background: rgba(168,85,247,.08); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.shs-status-grid span { font-size: 12px; color: #7c7891; }
.shs-status-grid strong { font-size: 14px; }

.shs-progress-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; align-items: center; gap: 10px; padding: 12px 4px; border-bottom: 1px solid rgba(139,92,246,.08); font-size: 13px; }
.shs-progress-row:last-child { border-bottom: none; }
.shs-progress-name { font-weight: 700; }
.shs-progress-arrow { font-size: 18px; font-weight: 900; }
.shs-up { color: #16a34a; } .shs-down { color: #dc2626; } .shs-flat { color: #a39dae; }

.shs-chart-card canvas { width: 100% !important; }
.shs-card-heading { margin: 0 0 14px; font-size: 15px; }

.shs-classmates-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.shs-classmate-card { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-weight: 600; font-size: 13px; }

.shs-profile-card { max-width: 420px; margin: 0 auto; text-align: center; }
.shs-profile-card h2 { margin: 4px 0; font-size: 18px; }
.shs-profile-card > p { color: #7c7891; margin: 0 0 16px; }
.shs-profile-info { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.shs-profile-info div { display: flex; justify-content: space-between; background: rgba(168,85,247,.06); border-radius: 12px; padding: 10px 14px; font-size: 13px; }
.shs-profile-school { text-align: right; background: rgba(6,182,212,.08); border-radius: 14px; padding: 14px; margin-bottom: 18px; }
.shs-profile-school h3 { margin: 0 0 8px; font-size: 13px; }
.shs-profile-school p { margin: 4px 0; font-size: 13px; color: #5b5570; }

/* ---------- Announcements ---------- */
.shs-ann-banner, .shs-ann-card { position: relative; }
.shs-ann-close {
	position: absolute; top: 14px; left: 14px;
	width: 28px; height: 28px; border-radius: 50%;
	border: none; background: rgba(0,0,0,.06); color: #7c7891;
	font-size: 13px; display: flex; align-items: center; justify-content: center;
	transition: background .15s, transform .15s;
}
.shs-ann-close:hover { background: rgba(0,0,0,.12); transform: scale(1.08); }
.shs-ann-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.shs-ann-date { font-size: 11px; color: #a39dae; }
.shs-ann-badge {
	display: inline-block; font-size: 11px; font-weight: 700;
	padding: 4px 12px; border-radius: 999px;
}
.shs-ann-badge-normal { background: rgba(6,182,212,.14); color: #0e7490; }
.shs-ann-badge-important { background: rgba(251,146,60,.16); color: #c2410c; }
.shs-ann-badge-critical { background: rgba(244,63,94,.16); color: #be123c; }
.shs-ann-important { border: 1px solid rgba(251,146,60,.35); }
.shs-ann-critical { border: 1px solid rgba(244,63,94,.4); box-shadow: 0 10px 30px rgba(244,63,94,.12); }
.shs-ann-title { margin: 4px 0 6px; font-size: 16px; }
.shs-ann-body { margin: 0 0 8px; font-size: 13.5px; color: #514c66; line-height: 1.8; }
.shs-ann-image { width: 100%; border-radius: 14px; margin-bottom: 10px; max-height: 220px; object-fit: cover; }
.shs-ann-more { font-size: 12.5px; font-weight: 700; color: #7c3aed; }
.shs-ann-banner { animation: shs-fadeup .5s ease both; }
.shs-ann-banner.shs-ann-dismissing { animation: shs-ann-dismiss .3s ease forwards; }
@keyframes shs-ann-dismiss { to { opacity: 0; transform: scale(.96) translateY(-8px); max-height: 0; margin: 0; padding: 0; overflow: hidden; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.shs-stat-grid { grid-template-columns: repeat(2, 1fr); }
	.shs-progress-row { grid-template-columns: 1fr 1fr; row-gap: 4px; }
}

@media (max-width: 720px) {
	.shs-menu-toggle { display: flex; }
	.shs-topbar-username { display: none; }
	.shs-sidebar {
		position: fixed; top: 0; right: 0; bottom: 0; z-index: 50;
		transform: translateX(100%);
		transition: transform .3s ease;
		width: 78vw; max-width: 300px;
		box-shadow: -10px 0 30px rgba(0,0,0,.15);
	}
	.shs-sidebar.is-open { transform: translateX(0); }
	.shs-sidebar-overlay {
		display: none; position: fixed; inset: 0; background: rgba(20,10,40,.35);
		z-index: 40; backdrop-filter: blur(2px);
	}
	.shs-sidebar-overlay.is-open { display: block; }
	.shs-main-inner { padding: 18px 14px 50px; }
	.shs-stat-grid, .shs-stat-grid-3 { grid-template-columns: 1fr 1fr; }
	.shs-student-card { flex-direction: column; text-align: center; }
	.shs-table { min-width: 380px; }
}
