:root {
    --school-navy: #102a43;
    --school-navy-dark: #071d33;
    --school-gold: #f2b705;
    --school-gold-soft: #fff3c4;
    --school-teal: #0f766e;
    --school-coral: #d65a31;
    --school-ink: #243447;
    --school-muted: #687789;
    --school-border: #dce5ef;
    --school-bg: #f6f8fb;
    --school-white: #ffffff;
    --shadow-sm: 0 8px 24px rgba(16, 42, 67, 0.08);
    --shadow-md: 0 16px 40px rgba(16, 42, 67, 0.14);
}

* {
    letter-spacing: 0;
}

body {
    margin: 0;
    color: var(--school-ink);
    background: var(--school-white);
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.65;
}

a {
    color: var(--school-navy);
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

a:hover {
    color: var(--school-teal);
}

img {
    max-width: 100%;
}

.section-padding {
    padding: 80px 0;
}

.section-padding-sm {
    padding: 56px 0;
}

.section-bg {
    background: var(--school-bg);
}

.section-title {
    max-width: 720px;
    margin: 0 auto 36px;
    text-align: center;
}

.section-title span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--school-teal);
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: uppercase;
}

.section-title h2 {
    margin: 0;
    color: var(--school-navy);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
}

.section-title p {
    margin: 12px 0 0;
    color: var(--school-muted);
}

.btn {
    border-radius: 6px;
    font-weight: 700;
    padding: 0.68rem 1.1rem;
}

.btn-sm {
    padding: 0.38rem 0.72rem;
}

.btn-primary {
    border-color: var(--school-navy);
    background: var(--school-navy);
}

.btn-primary:hover,
.btn-primary:focus {
    border-color: var(--school-teal);
    background: var(--school-teal);
}

.btn-success {
    border-color: var(--school-teal);
    background: var(--school-teal);
}

.btn-success:hover,
.btn-success:focus {
    border-color: #0b5d56;
    background: #0b5d56;
}

.btn-warning {
    border-color: var(--school-gold);
    background: var(--school-gold);
    color: var(--school-navy-dark);
}

.btn-outline-primary {
    border-color: var(--school-navy);
    color: var(--school-navy);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    border-color: var(--school-navy);
    background: var(--school-navy);
}

.form-control,
.form-select {
    min-height: 46px;
    border-color: var(--school-border);
    border-radius: 6px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--school-teal);
    box-shadow: 0 0 0 0.18rem rgba(15, 118, 110, 0.16);
}

.card {
    border: 1px solid var(--school-border);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.badge {
    border-radius: 6px;
    font-weight: 700;
}

.site-header {
    position: relative;
    z-index: 100;
    background: var(--school-white);
}

.top-bar {
    background: var(--school-navy-dark);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.92rem;
}

.top-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 42px;
}

.top-contact,
.top-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.top-contact a,
.top-actions a,
.top-address {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, 0.88);
}

.top-contact a:hover,
.top-actions a:hover {
    color: var(--school-gold);
}

.top-address {
    max-width: 360px;
}

.main-navbar {
    min-height: 78px;
    background: var(--school-white);
    border-bottom: 1px solid rgba(220, 229, 239, 0.9);
    box-shadow: 0 8px 24px rgba(16, 42, 67, 0.06);
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: var(--school-navy);
}

.navbar-brand img,
.brand-mark {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 8px;
}

.navbar-brand img {
    object-fit: contain;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--school-navy);
    color: var(--school-gold);
    font-weight: 900;
    font-size: 1rem;
    border: 2px solid rgba(242, 183, 5, 0.55);
}

.brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.22;
}

.brand-text strong {
    color: var(--school-navy);
    font-size: 1.12rem;
    font-weight: 850;
    white-space: nowrap;
}

.brand-text small {
    color: var(--school-muted);
    font-size: 0.82rem;
    white-space: nowrap;
}

.navbar-toggler {
    border-color: var(--school-border);
    border-radius: 6px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.18rem rgba(15, 118, 110, 0.16);
}

.main-navbar .nav-link {
    position: relative;
    color: var(--school-ink);
    font-size: 0.96rem;
    font-weight: 700;
    padding: 0.85rem 0.68rem;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: var(--school-teal);
}

.main-navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 0.68rem;
    right: 0.68rem;
    bottom: 0.42rem;
    height: 3px;
    border-radius: 3px;
    background: var(--school-gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.main-navbar .nav-link:hover::after,
.main-navbar .nav-link.active::after {
    transform: scaleX(1);
}

.page-banner {
    position: relative;
    overflow: hidden;
    padding: 72px 0;
    color: var(--school-white);
    background: var(--school-navy);
}

.page-banner h1 {
    margin: 0 0 8px;
    font-size: 2.4rem;
    font-weight: 850;
}

.page-banner p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
}

.breadcrumb {
    margin-bottom: 0;
}

.breadcrumb a,
.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.88);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.62);
}

.hero-slider .carousel-item {
    min-height: 560px;
    background-color: var(--school-navy);
    background-position: center;
    background-size: cover;
}

.hero-slider .carousel-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(7, 29, 51, 0.58);
}

.hero-slider .carousel-caption {
    right: auto;
    bottom: auto;
    left: 0;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    text-align: left;
}

.hero-content {
    max-width: 700px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 6px;
    color: var(--school-gold);
    background: rgba(7, 29, 51, 0.38);
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-content h1 {
    margin-bottom: 16px;
    color: var(--school-white);
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.12;
}

.hero-content p {
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.12rem;
}

.feature-card,
.notice-card,
.teacher-card,
.gallery-card,
.event-card,
.achievement-card,
.testimonial-card,
.info-card {
    height: 100%;
    border: 1px solid var(--school-border);
    border-radius: 8px;
    background: var(--school-white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover,
.notice-card:hover,
.teacher-card:hover,
.gallery-card:hover,
.event-card:hover,
.achievement-card:hover,
.testimonial-card:hover,
.info-card:hover {
    border-color: rgba(15, 118, 110, 0.35);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.feature-card,
.notice-card,
.testimonial-card,
.info-card {
    padding: 26px;
}

.feature-icon,
.info-icon {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 8px;
    background: var(--school-gold-soft);
    color: var(--school-navy);
    font-size: 1.55rem;
}

.feature-card h4,
.notice-card h4,
.info-card h4 {
    margin-bottom: 10px;
    color: var(--school-navy);
    font-size: 1.18rem;
    font-weight: 800;
}

.feature-card p,
.notice-card p,
.info-card p {
    margin-bottom: 0;
    color: var(--school-muted);
}

.welcome-visual,
.about-visual {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.welcome-visual img,
.about-visual img {
    width: 100%;
    min-height: 380px;
    object-fit: cover;
}

.welcome-note {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 8px;
    color: var(--school-white);
    background: rgba(7, 29, 51, 0.84);
    font-weight: 800;
}

.welcome-note i {
    color: var(--school-gold);
    font-size: 1.4rem;
}

.mini-stat {
    height: 100%;
    padding: 18px;
    border: 1px solid var(--school-border);
    border-radius: 8px;
    background: var(--school-white);
    box-shadow: var(--shadow-sm);
}

.mini-stat strong {
    display: block;
    color: var(--school-teal);
    font-size: 1.55rem;
    font-weight: 900;
    line-height: 1.1;
}

.mini-stat span {
    display: block;
    margin-top: 4px;
    color: var(--school-muted);
    font-weight: 700;
}

.gallery-card,
.teacher-card,
.event-card,
.achievement-card {
    overflow: hidden;
}

.gallery-button {
    position: relative;
    width: 100%;
    padding: 0;
    border: 1px solid var(--school-border);
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.gallery-button .card-body-clean {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.gallery-button strong {
    color: var(--school-navy);
    font-size: 1.05rem;
}

.gallery-button small {
    color: var(--school-muted);
    font-weight: 700;
}

.gallery-overlay {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--school-navy-dark);
    background: var(--school-gold);
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.gallery-button:hover .gallery-overlay,
.gallery-button:focus .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.gallery-modal .modal-body {
    padding: 0;
}

.gallery-modal img {
    width: 100%;
    max-height: 76vh;
    object-fit: contain;
    background: var(--school-navy-dark);
}

.gallery-card img,
.teacher-card img,
.event-card img,
.achievement-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.teacher-card img {
    height: 270px;
    object-position: top center;
}

.card-body-clean {
    padding: 20px;
}

.card-body-clean h4,
.card-body-clean h5 {
    color: var(--school-navy);
    font-weight: 800;
}

.card-body-clean p {
    color: var(--school-muted);
}

.notice-meta,
.event-meta,
.achievement-meta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
    color: var(--school-teal);
    font-size: 0.9rem;
    font-weight: 700;
}

.notice-list-card {
    min-height: 100%;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.testimonial-author img {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 8px;
    object-fit: cover;
}

.testimonial-author strong,
.testimonial-author span {
    display: block;
}

.testimonial-author strong {
    color: var(--school-navy);
    font-weight: 850;
}

.testimonial-author span {
    color: var(--school-muted);
    font-size: 0.9rem;
}

.class-card {
    height: 100%;
    padding: 24px;
    border: 1px solid var(--school-border);
    border-radius: 8px;
    background: var(--school-white);
    box-shadow: var(--shadow-sm);
}

.class-card i {
    color: var(--school-coral);
    font-size: 2rem;
}

.class-card h4 {
    margin: 14px 0 4px;
    color: var(--school-navy);
    font-weight: 850;
}

.class-card p {
    margin: 0;
    color: var(--school-muted);
    font-weight: 700;
}

.academic-timeline {
    display: grid;
    gap: 16px;
}

.timeline-item {
    position: relative;
    padding: 20px 20px 20px 54px;
    border: 1px solid var(--school-border);
    border-radius: 8px;
    background: var(--school-white);
    box-shadow: var(--shadow-sm);
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: 22px;
    top: 24px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--school-gold);
    box-shadow: 0 0 0 6px var(--school-gold-soft);
}

.timeline-item strong,
.timeline-item span {
    display: block;
}

.timeline-item strong {
    color: var(--school-navy);
    font-weight: 850;
}

.timeline-item span {
    margin-top: 4px;
    color: var(--school-muted);
}

.principal-card {
    height: 100%;
    padding: 34px;
    border-radius: 8px;
    color: var(--school-white);
    background: var(--school-teal);
    box-shadow: var(--shadow-md);
}

.principal-card i {
    color: var(--school-gold);
    font-size: 2.4rem;
}

.principal-card h3 {
    margin: 18px 0 0;
    font-weight: 850;
}

.form-panel {
    padding: 30px;
    border: 1px solid var(--school-border);
    border-radius: 8px;
    background: var(--school-white);
    box-shadow: var(--shadow-md);
}

.form-label {
    color: var(--school-navy);
    font-weight: 800;
}

.admission-steps {
    display: grid;
    gap: 14px;
}

.admission-steps div {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--school-border);
    border-radius: 8px;
    background: var(--school-white);
    box-shadow: var(--shadow-sm);
}

.admission-steps strong {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    border-radius: 8px;
    color: var(--school-navy-dark);
    background: var(--school-gold);
    font-weight: 900;
}

.admission-steps span {
    color: var(--school-ink);
    font-weight: 800;
}

.contact-stack {
    display: grid;
    gap: 16px;
}

.contact-stack .info-card {
    padding: 22px;
}

.map-placeholder {
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 36px;
    border: 1px solid var(--school-border);
    border-radius: 8px;
    color: var(--school-white);
    text-align: center;
    background: linear-gradient(135deg, var(--school-navy), var(--school-teal));
}

.map-placeholder i {
    margin-bottom: 12px;
    color: var(--school-gold);
    font-size: 2.4rem;
}

.map-placeholder h4 {
    margin-bottom: 6px;
    font-weight: 850;
}

.map-placeholder p {
    max-width: 560px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
}

.staff-details {
    margin: 0;
    padding: 0;
    list-style: none;
}

.staff-details li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--school-muted);
    font-weight: 700;
}

.staff-details li + li {
    margin-top: 7px;
}

.staff-details i {
    color: var(--school-teal);
}

.result-response {
    margin-top: 18px;
}

.result-card {
    padding: 24px;
    border: 1px solid var(--school-border);
    border-radius: 8px;
    background: var(--school-white);
    box-shadow: var(--shadow-sm);
}

.result-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--school-border);
}

.result-card-header span {
    display: inline-flex;
    margin-bottom: 4px;
    color: var(--school-teal);
    font-size: 0.86rem;
    font-weight: 800;
    text-transform: uppercase;
}

.result-card-header h3 {
    margin: 0;
    color: var(--school-navy);
    font-size: 1.45rem;
    font-weight: 850;
}

.result-student-grid,
.result-summary-grid {
    display: grid;
    gap: 14px;
}

.result-student-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 22px;
}

.result-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 20px;
}

.result-student-grid div,
.result-summary-grid div,
.result-remarks {
    padding: 14px;
    border: 1px solid var(--school-border);
    border-radius: 8px;
    background: var(--school-bg);
}

.result-student-grid small,
.result-summary-grid small,
.result-remarks small {
    display: block;
    margin-bottom: 3px;
    color: var(--school-muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.result-student-grid strong,
.result-summary-grid strong {
    color: var(--school-navy);
    font-weight: 850;
}

.result-remarks {
    margin-top: 16px;
}

.result-remarks p {
    margin: 0;
    color: var(--school-ink);
}

.cta-band {
    padding: 56px 0;
    color: var(--school-white);
    background: var(--school-navy);
}

.cta-band h2 {
    margin-bottom: 8px;
    font-size: 2rem;
    font-weight: 850;
}

.cta-band p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.82);
}

.table {
    vertical-align: middle;
}

.table thead th {
    color: var(--school-navy);
    background: var(--school-bg);
    border-bottom: 1px solid var(--school-border);
}

.empty-state {
    padding: 34px;
    border: 1px dashed var(--school-border);
    border-radius: 8px;
    color: var(--school-muted);
    text-align: center;
    background: var(--school-bg);
}

.site-footer {
    color: rgba(255, 255, 255, 0.82);
    background: var(--school-navy-dark);
}

.footer-main {
    padding: 64px 0 48px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-mark {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
}

.footer-brand h5 {
    margin: 0;
    color: var(--school-white);
    font-weight: 850;
}

.footer-brand p,
.footer-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
}

.footer-text {
    margin-bottom: 18px;
}

.site-footer h6 {
    margin-bottom: 18px;
    color: var(--school-white);
    font-weight: 850;
}

.footer-links,
.footer-contact {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links li + li,
.footer-contact li + li {
    margin-top: 10px;
}

.footer-links a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.78);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--school-gold);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact i {
    margin-top: 3px;
    color: var(--school-gold);
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    color: var(--school-white);
}

.footer-social a:hover {
    border-color: var(--school-gold);
    color: var(--school-navy-dark);
    background: var(--school-gold);
}

.footer-bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.66);
    text-align: center;
}

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999;
    width: 44px;
    height: 44px;
    display: none;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    color: var(--school-navy-dark);
    background: var(--school-gold);
    box-shadow: var(--shadow-md);
}

.back-to-top.show {
    display: inline-flex;
}

.back-to-top:hover {
    background: #ffd044;
}

.ajax-message {
    min-height: 0;
}

.admin-login-body,
.admin-body {
    min-height: 100vh;
    background: var(--school-bg);
}

.admin-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    background-position: center;
    background-size: cover;
}

.admin-login-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(7, 29, 51, 0.68);
}

.admin-login-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 460px);
    padding: 34px;
    border-radius: 8px;
    background: var(--school-white);
    box-shadow: var(--shadow-md);
}

.admin-login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
}

.admin-login-brand img,
.admin-sidebar-brand img {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    border-radius: 8px;
    object-fit: contain;
}

.admin-login-brand h1 {
    margin: 0;
    color: var(--school-navy);
    font-size: 1.22rem;
    font-weight: 850;
}

.admin-login-brand p {
    margin: 2px 0 0;
    color: var(--school-muted);
    font-size: 0.9rem;
}

.admin-login-heading {
    margin-bottom: 22px;
}

.admin-login-heading span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
    color: var(--school-teal);
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-login-heading h2 {
    margin: 0;
    color: var(--school-navy);
    font-size: 1.65rem;
    font-weight: 850;
    line-height: 1.2;
}

.admin-login-panel .input-group-text {
    border-color: var(--school-border);
    border-radius: 6px 0 0 6px;
    color: var(--school-teal);
    background: var(--school-bg);
}

.admin-login-links {
    margin-top: 20px;
    text-align: center;
}

.admin-login-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--school-muted);
    font-weight: 800;
}

.admin-layout {
    min-height: 100vh;
}

.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1040;
    width: 286px;
    display: flex;
    flex-direction: column;
    color: rgba(255, 255, 255, 0.84);
    background: var(--school-navy-dark);
    box-shadow: 12px 0 32px rgba(7, 29, 51, 0.18);
}

.admin-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 82px;
    padding: 18px 20px;
    color: var(--school-white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar-brand:hover {
    color: var(--school-white);
}

.admin-sidebar-brand span {
    min-width: 0;
}

.admin-sidebar-brand strong,
.admin-sidebar-brand small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-sidebar-brand strong {
    font-weight: 850;
}

.admin-sidebar-brand small {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.82rem;
}

.admin-nav {
    flex: 1;
    overflow-y: auto;
    padding: 14px 12px;
}

.admin-nav a,
.admin-sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 12px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 750;
}

.admin-nav a + a {
    margin-top: 4px;
}

.admin-nav a i,
.admin-sidebar-footer a i {
    width: 20px;
    flex: 0 0 20px;
    color: var(--school-gold);
    text-align: center;
}

.admin-nav a:hover,
.admin-nav a.active,
.admin-sidebar-footer a:hover {
    color: var(--school-white);
    background: rgba(255, 255, 255, 0.1);
}

.admin-sidebar-footer {
    padding: 14px 12px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-main {
    min-height: 100vh;
    margin-left: 286px;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 900;
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 28px;
    border-bottom: 1px solid var(--school-border);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 24px rgba(16, 42, 67, 0.06);
}

.admin-topbar-title {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.admin-topbar-title h1 {
    margin: 0;
    color: var(--school-navy);
    font-size: 1.45rem;
    font-weight: 850;
}

.admin-topbar-title p {
    margin: 2px 0 0;
    color: var(--school-muted);
    font-size: 0.9rem;
}

.admin-menu-toggle {
    width: 42px;
    height: 42px;
    display: none;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--school-border);
    border-radius: 8px;
    color: var(--school-navy);
    background: var(--school-white);
}

.admin-menu-toggle i {
    font-size: 1.4rem;
}

.admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 220px;
    padding: 7px 11px;
    border: 1px solid var(--school-border);
    border-radius: 8px;
    color: var(--school-navy);
    background: var(--school-bg);
    font-weight: 800;
}

.admin-user-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-user-chip i {
    color: var(--school-teal);
}

.student-avatar-chip img {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--school-white);
}

.student-profile-hero h2 {
    margin: 4px 0 0;
    color: var(--school-navy);
    font-size: 1.75rem;
    font-weight: 900;
}

.student-panel-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--school-teal);
    font-size: 0.86rem;
    font-weight: 850;
    text-transform: uppercase;
}

.student-profile-photo {
    width: 118px;
    height: 118px;
    display: block;
    border: 4px solid var(--school-white);
    border-radius: 50%;
    object-fit: cover;
    background: var(--school-bg);
    box-shadow: var(--shadow-sm);
}

.student-profile-card {
    padding: 22px;
    border: 1px solid var(--school-border);
    border-radius: 8px;
    text-align: center;
    background: var(--school-bg);
}

.student-profile-card .student-profile-photo {
    margin: 0 auto 14px;
}

.student-profile-card h3 {
    margin: 0 0 8px;
    color: var(--school-navy);
    font-size: 1.18rem;
    font-weight: 850;
}

.admin-content {
    padding: 28px;
}

.admin-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.admin-page-header span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 4px;
    color: var(--school-teal);
    font-size: 0.82rem;
    font-weight: 850;
    text-transform: uppercase;
}

.admin-page-header h2 {
    margin: 0;
    color: var(--school-navy);
    font-size: 1.55rem;
    font-weight: 900;
}

.admin-page-header p {
    margin: 4px 0 0;
    color: var(--school-muted);
}

.admin-form-panel {
    padding: 24px;
    border: 1px solid var(--school-border);
    border-radius: 8px;
    background: var(--school-white);
    box-shadow: var(--shadow-sm);
}

.admin-stat-card {
    min-height: 124px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
    border: 1px solid var(--school-border);
    border-radius: 8px;
    color: var(--school-ink);
    background: var(--school-white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.admin-stat-card:hover {
    color: var(--school-ink);
    border-color: rgba(15, 118, 110, 0.35);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.admin-stat-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 56px;
    border-radius: 8px;
    color: var(--school-white);
    font-size: 1.55rem;
    background: var(--school-navy);
}

.admin-stat-students .admin-stat-icon,
.admin-stat-gallery .admin-stat-icon {
    background: var(--school-teal);
}

.admin-stat-teachers .admin-stat-icon,
.admin-stat-notices .admin-stat-icon {
    color: var(--school-navy-dark);
    background: var(--school-gold);
}

.admin-stat-classes .admin-stat-icon,
.admin-stat-messages .admin-stat-icon {
    background: var(--school-coral);
}

.admin-stat-content {
    min-width: 0;
}

.admin-stat-content strong {
    display: block;
    color: var(--school-navy);
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.admin-stat-content small {
    display: block;
    margin-top: 7px;
    color: var(--school-muted);
    font-weight: 800;
}

.admin-panel {
    height: 100%;
    border: 1px solid var(--school-border);
    border-radius: 8px;
    background: var(--school-white);
    box-shadow: var(--shadow-sm);
}

.admin-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--school-border);
}

.admin-panel-header span {
    display: inline-flex;
    margin-bottom: 4px;
    color: var(--school-teal);
    font-size: 0.82rem;
    font-weight: 850;
    text-transform: uppercase;
}

.admin-panel-header h2 {
    margin: 0;
    color: var(--school-navy);
    font-size: 1.18rem;
    font-weight: 850;
}

.admin-table {
    margin-bottom: 0;
}

.admin-table th {
    white-space: nowrap;
}

.admin-table td {
    color: var(--school-ink);
}

.admin-table td strong,
.admin-table td small {
    display: block;
}

.admin-table td strong {
    color: var(--school-navy);
    font-weight: 850;
}

.admin-table td small {
    color: var(--school-muted);
    font-size: 0.83rem;
}

.admin-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.admin-actions .btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.admin-thumb {
    width: 72px;
    height: 54px;
    display: block;
    border: 1px solid var(--school-border);
    border-radius: 8px;
    object-fit: cover;
    background: var(--school-bg);
}

.admin-thumb-user {
    width: 54px;
    border-radius: 50%;
}

.admin-image-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 86px;
    padding: 10px;
    border: 1px solid var(--school-border);
    border-radius: 8px;
    background: var(--school-bg);
}

.admin-image-preview img {
    width: 92px;
    height: 64px;
    flex: 0 0 92px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--school-white);
}

.admin-user-preview img {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
    border-radius: 50%;
}

.admin-image-preview span {
    color: var(--school-muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.admin-file-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--school-teal);
    font-weight: 800;
}

.admin-overlay {
    display: none;
}

@media print {
    .top-bar,
    .main-navbar,
    .site-footer,
    .back-to-top,
    .btn,
    .no-print {
        display: none !important;
    }

    body {
        color: #000000;
        background: #ffffff;
    }

    .card {
        box-shadow: none;
    }
}
