/* =====================================================
   GENERAL RESET
===================================================== */

* {
    box-sizing: border-box;
}

html {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

body {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;

    font-family:
        "Segoe UI",
        Arial,
        sans-serif;

    background: #f4f7fc;
    color: #1f2937;
}

button,
input,
select,
textarea {
    font: inherit;
}

img {
    max-width: 100%;
}


/* =====================================================
   LOGIN PAGE
===================================================== */

body.login-page-body {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 0;

    position: relative;

    overflow: hidden;

    background:
        url("image/bg2.png")
        center center / cover no-repeat;
}

/* =====================================================
   FULL LOGIN LAYOUT
===================================================== */

.login-page-layout {
    position: relative;
    z-index: 2;

    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 0;

    display: flex;
    flex-direction: column;

    overflow: hidden;
}


/* =====================================================
   MAIN LOGIN CONTENT
===================================================== */

.login-main-content {
    width: 100%;
    max-width: 650px;

    min-height: 0;
    margin: 0 auto;

    padding:
        clamp(7px, 1.8vh, 22px)
        clamp(12px, 3vw, 22px);

    flex: 1;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}


/* =====================================================
   SCHOOL BRAND
===================================================== */

.school-brand {
    width: 100%;

    margin:
        0 auto
        clamp(16px, 2.2vh, 30px);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    flex-shrink: 1;

    text-align: center;
}

.school-logo {
    display: block;

    width: clamp(80px, 18vh, 200px);
    height: clamp(80px, 18vh, 200px);

    max-width: 200px;
    max-height: 200px;

    margin:
        0 auto
        clamp(3px, 0.7vh, 8px);

    object-fit: contain;

    filter:
        drop-shadow(
            0 8px 15px rgba(0, 0, 0, 0.28)
        );
}

.school-brand h2 {
    margin: 0;

    color: #111827;

    font-size:
        clamp(16px, 2.7vh, 26px);

    font-weight: 800;
    line-height: 1.2;

    text-align: center;

    text-shadow: none;
}

/* =====================================================
   LOGIN CARD
===================================================== */

.login-card {
    width: 100%;
    max-width: 510px;

    margin: 0 auto;

    padding:
        clamp(11px, 2vh, 25px)
        clamp(15px, 4vw, 30px)
        clamp(13px, 2.2vh, 28px);

    flex-shrink: 1;

    background:
        rgba(255, 255, 255, 0.97);

    border:
        1px solid rgba(255, 255, 255, 0.78);

    border-radius:
        clamp(18px, 3vh, 27px);

    box-shadow:
        0 24px 55px rgba(0, 0, 0, 0.27);

    backdrop-filter: blur(10px);

    overflow: hidden;
}


/* =====================================================
   SSMIS LOGO
===================================================== */

.login-logo-box {
    width: 100%;

    margin:
        0 auto
        clamp(8px, 1.5vh, 20px);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.ssmis-login-logo {
    display: block;

    width: clamp(80px, 17vh, 200px);
    height: clamp(80px, 17vh, 200px);

    max-width: 200px;
    max-height: 200px;

    margin:
        0 auto
        clamp(4px, 0.8vh, 10px);

    object-fit: contain;
}

.login-logo-box h3 {
    width: 100%;
    max-width: 430px;

    margin: 0 auto;

    color: #1f2937;

    font-size:
        clamp(20px, 2vh, 26px);

    font-weight: 800;
    line-height: 1.3;

    text-align: center;
}


/* =====================================================
   LOGIN FORM
===================================================== */

.login-form {
    width: 100%;
    margin: 0;
}

.login-form-group {
    width: 100%;

    margin-bottom:
        clamp(7px, 1.2vh, 14px);
}

.login-form-group label {
    display: block;

    margin-bottom:
        clamp(3px, 0.6vh, 7px);

    color: #374151;

    font-size:
        clamp(16px, 1.7vh, 18px);

    font-weight: 700;
}

.login-input-box {
    width: 100%;

    height:
        clamp(41px, 6vh, 53px);

    padding: 0 14px;

    display: flex;
    align-items: center;

    background: #ffffff;

    border: 2px solid #d8dee9;
    border-radius: 14px;

    transition:
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.login-input-box:focus-within {
    border-color: #2563eb;

    box-shadow:
        0 0 0 4px rgba(37, 99, 235, 0.13);
}

.login-input-icon {
    margin-right: 10px;

    flex-shrink: 0;

    font-size:
        clamp(17px, 2.2vh, 20px);

    opacity: 0.75;
}

.login-input-box input {
    width: 100%;
    min-width: 0;
    height: 100%;

    padding: 0;

    border: none;
    outline: none;

    background: transparent;
    color: #1f2937;

    font-size:
        clamp(16px, 1.8vh, 18px);
}

.login-input-box input::placeholder {
    color: #9ca3af;
}


/* =====================================================
   PASSWORD TOGGLE
===================================================== */

.password-toggle {
    width: 36px;
    height: 36px;

    margin-left: 7px;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border: none;
    border-radius: 9px;

    background: transparent;

    font-size: 17px;

    cursor: pointer;
}

.password-toggle:hover {
    background: #f1f5f9;
}

.password-toggle:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.25);
}


/* =====================================================
   LOGIN BUTTON
===================================================== */

.login-button {
    width: 100%;

    margin-top:
        clamp(1px, 0.5vh, 5px);

    padding:
        clamp(10px, 1.7vh, 14px)
        18px;

    border: none;
    border-radius: 14px;

    background:
        linear-gradient(
            90deg,
            #005eff,
            #5b36e8
        );

    color: #ffffff;

    font-size:
        clamp(16px, 2vh, 18px);

    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 9px 20px rgba(37, 99, 235, 0.23);

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.login-button span {
    margin-left: 6px;
}

.login-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 13px 27px rgba(37, 99, 235, 0.32);
}

.login-button:active {
    transform: translateY(0);
}

.login-button:focus-visible {
    outline: 4px solid rgba(255, 255, 255, 0.4);
    outline-offset: 3px;
}


/* =====================================================
   LOGIN FOOTER
===================================================== */

.login-footer {
    width: 100%;

    margin-top: 0;

    padding:
        clamp(4px, 0.8vh, 10px)
        15px
        clamp(5px, 1vh, 14px);

    flex-shrink: 0;

    color:
        rgba(255, 255, 255, 0.94);

    font-size:
        clamp(13px, 1.45vh, 14px);

    line-height: 1.45;
    text-align: center;
}

.login-footer div {
    margin: 1px 0;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 768px) {

    .login-main-content {
        max-width: 580px;
    }

    .login-card {
        max-width: 500px;
    }
}


/* =====================================================
   PHONE
===================================================== */

@media (max-width: 600px) {

    .login-main-content {
        max-width: 100%;

        padding-left: 13px;
        padding-right: 13px;
    }

    .school-logo {
        width: clamp(75px, 15vh, 135px);
        height: clamp(75px, 15vh, 135px);
    }

    .ssmis-login-logo {
        width: clamp(75px, 14vh, 135px);
        height: clamp(75px, 14vh, 135px);
    }

    .login-card {
        width: 100%;
        max-width: 100%;

        border-radius: 21px;
    }

    .login-input-box {
        border-radius: 12px;
    }

    .login-button {
        border-radius: 12px;
    }
}


/* =====================================================
   SMALL PHONE
===================================================== */

@media (max-width: 380px) {

    .login-main-content {
        padding-left: 9px;
        padding-right: 9px;
    }

    .login-card {
        padding-left: 14px;
        padding-right: 14px;
    }

    .school-brand h2 {
        font-size: 16px;
    }

    .login-logo-box h3 {
        font-size: 13px;
    }
}


/* =====================================================
   SHORT LAPTOP / SHORT SCREEN
===================================================== */

@media (max-height: 750px) {

    .login-main-content {
        padding-top: 5px;
        padding-bottom: 4px;
    }

    .school-logo {
        width: clamp(70px, 14vh, 115px);
        height: clamp(70px, 14vh, 115px);
    }

    .ssmis-login-logo {
        width: clamp(70px, 13vh, 110px);
        height: clamp(70px, 13vh, 110px);
    }

    .school-brand {
        margin-bottom: 5px;
    }

    .login-card {
        padding-top: 9px;
        padding-bottom: 10px;
    }

    .login-logo-box {
        margin-bottom: 6px;
    }

    .login-form-group {
        margin-bottom: 6px;
    }

    .login-input-box {
        height: 40px;
    }

    .login-button {
        padding-top: 9px;
        padding-bottom: 9px;
    }
}


/* =====================================================
   LANDSCAPE PHONE
===================================================== */

@media (max-height: 500px) and (orientation: landscape) {

    body.login-page-body {
        overflow-y: auto;
    }

    .login-page-layout {
        min-height: 100dvh;
        height: auto;

        overflow: visible;
    }

    .login-main-content {
        min-height: auto;

        padding-top: 8px;
        padding-bottom: 8px;

        overflow: visible;
    }

    .school-brand {
        margin-bottom: 5px;
    }

    .school-logo {
        width: 65px;
        height: 65px;
    }

    .ssmis-login-logo {
        width: 65px;
        height: 65px;
    }

    .login-card {
        padding-top: 9px;
        padding-bottom: 10px;
    }

    .login-footer {
        padding-bottom: 7px;
    }
}


/* =====================================================
   ACCESSIBILITY
===================================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}

/* =====================================================
   RESPONSIVE COLLAPSIBLE SIDEBAR
===================================================== */

:root {
    --sidebar-width: 275px;
    --sidebar-duration: 0.3s;
}


/* =====================================================
   SIDEBAR CONTAINER
===================================================== */

.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1200;

    width: var(--sidebar-width);
    height: 100vh;
    height: 100dvh;

    display: flex;
    flex-direction: column;

    background:
        linear-gradient(
            180deg,
            #111d3e 0%,
            #172451 48%,
            #291d59 100%
        );

    color: #ffffff;

    box-shadow:
        10px 0 30px rgba(15, 23, 42, 0.20);

    overflow: hidden;

    transform: translateX(0);

    transition:
        transform var(--sidebar-duration) ease,
        box-shadow var(--sidebar-duration) ease;
}


/* =====================================================
   SIDEBAR HEADER
===================================================== */

.sidebar-header {
    position: relative;

    width: 100%;
    padding: 24px 20px 19px;

    flex-shrink: 0;

    text-align: center;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.10);
}

.sidebar-logo {
    display: block;

    width: 82px;
    height: 82px;

    margin: 0 auto 8px;

    object-fit: contain;

    filter:
        drop-shadow(
            0 7px 13px rgba(0, 0, 0, 0.24)
        );
}

.sidebar-header h2 {
    margin: 0;

    color: #ffffff;

    font-size: 27px;
    font-weight: 900;
    line-height: 1.2;
}

.sidebar-panel-name {
    display: block;

    margin-top: 4px;

    color: rgba(255, 255, 255, 0.68);

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}


/* =====================================================
   CLOSE SIDEBAR BUTTON
===================================================== */

.sidebar-close-button {
    position: absolute;
    top: 13px;
    right: 13px;
    z-index: 5;

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border:
        1px solid rgba(255, 255, 255, 0.15);
    border-radius: 11px;

    background: rgba(255, 255, 255, 0.09);
    color: #ffffff;

    font-family: Arial, sans-serif;
    font-size: 25px;
    line-height: 1;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.sidebar-close-button:hover {
    background: rgba(255, 255, 255, 0.19);
    transform: rotate(90deg);
}

.sidebar-close-button:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.35);
    outline-offset: 2px;
}


/* =====================================================
   SIDEBAR MENU
===================================================== */

.sidebar-menu {
    width: 100%;

    padding: 13px 12px 20px;

    flex: 1;
    min-height: 0;

    overflow-y: auto;
    overflow-x: hidden;

    scrollbar-width: thin;
    scrollbar-color:
        rgba(255, 255, 255, 0.25)
        transparent;
}

.sidebar-menu::-webkit-scrollbar {
    width: 5px;
}

.sidebar-menu::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.24);
    border-radius: 20px;
}

.sidebar-section-title {
    margin: 18px 10px 7px;

    color: rgba(255, 255, 255, 0.45);

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.sidebar-section-title:first-of-type {
    margin-top: 11px;
}

.sidebar-menu a {
    position: relative;

    width: 100%;
    min-height: 46px;

    margin-bottom: 5px;
    padding: 10px 12px;

    display: flex;
    align-items: center;
    gap: 12px;

    border: 1px solid transparent;
    border-radius: 12px;

    color: rgba(255, 255, 255, 0.82);

    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;

    transition:
        background 0.22s ease,
        color 0.22s ease,
        border-color 0.22s ease,
        transform 0.22s ease;
}

.sidebar-menu a:hover {
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;

    border-color:
        rgba(255, 255, 255, 0.08);

    transform: translateX(3px);
}

.sidebar-menu a.active {
    background:
        linear-gradient(
            135deg,
            #2563eb,
            #7c3aed
        );

    color: #ffffff;

    border-color:
        rgba(255, 255, 255, 0.14);

    box-shadow:
        0 8px 20px rgba(37, 99, 235, 0.25);
}

.sidebar-menu a.active::before {
    content: "";

    position: absolute;
    top: 10px;
    bottom: 10px;
    left: -12px;

    width: 4px;

    background: #ffffff;

    border-radius: 0 6px 6px 0;
}

.sidebar-menu-icon {
    width: 25px;

    flex-shrink: 0;

    font-size: 18px;
    line-height: 1;
    text-align: center;
}

.sidebar-menu-text {
    min-width: 0;

    overflow-wrap: anywhere;
}


/* =====================================================
   SIDEBAR FOOTER
===================================================== */

.sidebar-footer {
    width: 100%;
    padding: 14px 14px 17px;

    flex-shrink: 0;

    background: rgba(0, 0, 0, 0.13);

    border-top:
        1px solid rgba(255, 255, 255, 0.10);
}

.sidebar-user {
    width: 100%;
    margin-bottom: 11px;

    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-user-avatar,
.sidebar-user-image {
    width: 41px;
    height: 41px;

    flex-shrink: 0;

    border:
        2px solid rgba(255, 255, 255, 0.20);
    border-radius: 50%;
}

.sidebar-user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #38bdf8,
            #7c3aed
        );

    color: #ffffff;

    font-size: 16px;
    font-weight: 800;
}

.sidebar-user-image {
    display: block;

    object-fit: cover;
}

.sidebar-user-details {
    min-width: 0;

    display: flex;
    flex-direction: column;
}

.sidebar-user-details strong {
    color: #ffffff;

    font-size: 16px;
    line-height: 1.3;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-details span {
    margin-top: 2px;

    color: rgba(255, 255, 255, 0.58);

    font-size: 14px;
}

.sidebar-logout-button {
    width: 100%;
    padding: 10px 12px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    background: rgba(239, 68, 68, 0.13);
    color: #fecaca;

    border:
        1px solid rgba(239, 68, 68, 0.22);
    border-radius: 11px;

    font-size: 16px;
    font-weight: 700;
    text-decoration: none;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.sidebar-logout-button:hover {
    background: #dc2626;
    color: #ffffff;

    transform: translateY(-1px);
}


/* =====================================================
   OPEN SIDEBAR BUTTON
===================================================== */

.sidebar-open-button {
    position: fixed;
    top: 17px;
    left: 17px;
    z-index: 1100;

    width: 46px;
    height: 46px;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: none;
    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #7c3aed
        );

    color: #ffffff;

    font-size: 24px;
    font-weight: 700;
    line-height: 1;

    cursor: pointer;

    box-shadow:
        0 9px 24px rgba(37, 99, 235, 0.30);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.sidebar-open-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 13px 28px rgba(37, 99, 235, 0.38);
}

.sidebar-open-button:focus-visible {
    outline: 4px solid rgba(37, 99, 235, 0.25);
    outline-offset: 3px;
}


/* =====================================================
   MAIN PAGE CONTENT
===================================================== */

.main-content {
    width:
        calc(100% - var(--sidebar-width));

    min-height: 100vh;
    min-height: 100dvh;

    margin-left: var(--sidebar-width);

    transition:
        width var(--sidebar-duration) ease,
        margin-left var(--sidebar-duration) ease;
}

/* =====================================================
   DESKTOP SIDEBAR CLOSED STATE
===================================================== */

body.sidebar-closed .sidebar {
    transform: translateX(-100%);
}

body.sidebar-closed .main-content {
    width: 100%;
    margin-left: 0;
}

body.sidebar-closed .sidebar-open-button {
    display: flex;
}

/* =====================================================
   SIDEBAR OVERLAY
===================================================== */

.sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 1150;

    background: rgba(15, 23, 42, 0.62);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity var(--sidebar-duration) ease,
        visibility var(--sidebar-duration) ease;
}

/* =====================================================
   TABLET AND MOBILE
===================================================== */

@media (max-width: 768px) {

    .sidebar {
        width: min(84vw, 285px);

        transform: translateX(-100%);

        box-shadow:
            14px 0 36px rgba(0, 0, 0, 0.28);
    }

    .main-content {
        width: 100%;
        min-height: 100vh;
        min-height: 100dvh;

        margin-left: 0;

        padding-top: 74px;
    }

    .sidebar-open-button {
        display: flex;

        top: 15px;
        left: 15px;
    }

    body.sidebar-mobile-open {
        overflow: hidden;
    }

    body.sidebar-mobile-open .sidebar {
        transform: translateX(0);
    }

    body.sidebar-mobile-open .sidebar-open-button {
        display: none;
    }

    body.sidebar-mobile-open .sidebar-overlay {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}


/* =====================================================
   SMALL MOBILE SCREEN
===================================================== */

@media (max-width: 480px) {

    .sidebar {
        width: min(89vw, 280px);
    }

    .sidebar-header {
        padding:
            21px 17px 17px;
    }

    .sidebar-logo {
        width: 70px;
        height: 70px;
    }

    .sidebar-header h2 {
        font-size: 24px;
    }

    .sidebar-close-button {
        width: 34px;
        height: 34px;

        font-size: 23px;
    }

    .sidebar-open-button {
        width: 43px;
        height: 43px;

        font-size: 22px;
    }

    .main-content {
        padding-top: 68px;
    }

    .sidebar-menu {
        padding-left: 10px;
        padding-right: 10px;
    }
}


/* =====================================================
   SHORT SCREEN
===================================================== */

@media (max-height: 720px) and (min-width: 769px) {

    .sidebar-header {
        padding-top: 15px;
        padding-bottom: 13px;
    }

    .sidebar-logo {
        width: 55px;
        height: 55px;
    }

    .sidebar-header h2 {
        font-size: 22px;
    }

    .sidebar-panel-name {
        font-size: 12px;
    }

    .sidebar-menu {
        padding-top: 8px;
        padding-bottom: 10px;
    }

    .sidebar-section-title {
        margin-top: 11px;
    }

    .sidebar-menu a {
        min-height: 39px;
        margin-bottom: 3px;
        padding-top: 7px;
        padding-bottom: 7px;
    }

    .sidebar-footer {
        padding-top: 9px;
        padding-bottom: 10px;
    }

    .sidebar-user {
        margin-bottom: 7px;
    }
}

/* =====================================================
   ACCESSIBILITY
===================================================== */

@media (prefers-reduced-motion: reduce) {

    .sidebar,
    .main-content,
    .sidebar-overlay,
    .sidebar-open-button,
    .sidebar-close-button,
    .sidebar-menu a {
        transition: none;
    }
}

/* =====================================================
   TEACHER DASHBOARD
   Main styling for the teacher dashboard page.
===================================================== */

body.dashboard-page {
    min-height: 100vh;
    min-height: 100dvh;

    background: 
		linear-gradient(
            135deg,
            #c7ddf5 0%,
            #c8c7f5 68%,
            #dfc7f5 100%
        );

    color: #111827;

    overflow-x: hidden;
    overflow-y: auto;
}

/* =====================================================
   DASHBOARD CONTAINER
   Controls the maximum page width and outer spacing.
===================================================== */

.dashboard-container {
    width: 100%;
    max-width: 1600px;

    margin: 0 auto;

    padding:
        clamp(20px, 3vw, 38px);
}


/* =====================================================
   DASHBOARD HEADER
   Displays the welcome message and current date.
===================================================== */

.dashboard-header {
    width: 100%;

    margin-bottom: 25px;
    padding:
        clamp(22px, 3vw, 34px);

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;

    background:
        linear-gradient(
            135deg,
            #1d4ed8,
            #5b35d5
        );

    border-radius: 24px;

    box-shadow:
        0 18px 40px rgba(54, 70, 170, 0.20);

    color: #ffffff;
}

.dashboard-header > div:first-child {
    min-width: 0;
}

/* Small dashboard label */
.dashboard-eyebrow {
    display: inline-block;

    margin-bottom: 8px;
    padding: 6px 11px;

    background: rgba(255, 255, 255, 0.14);

    border:
        1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;

    color: rgba(255, 255, 255, 0.92);

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.dashboard-header h1 {
    margin: 0;

    color: #ffffff;

    font-size:
        clamp(26px, 3.2vw, 40px);

    font-weight: 900;
    line-height: 1.2;

    overflow-wrap: anywhere;
}

.dashboard-header p {
    max-width: 660px;

    margin: 9px 0 0;

    color: rgba(255, 255, 255, 0.84);

    font-size:
        clamp(14px, 1.5vw, 15px);

    line-height: 1.6;
}


/* =====================================================
   DASHBOARD DATE
   Displays the current date inside the header.
===================================================== */

.dashboard-date {
    min-width: 230px;
    padding: 14px 17px;

    display: flex;
    align-items: center;
    gap: 11px;

    background: rgba(255, 255, 255, 0.13);

    border:
        1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;

    backdrop-filter: blur(5px);
}

.dashboard-date > span {
    font-size: 24px;

    flex-shrink: 0;
}

.dashboard-date div {
    min-width: 0;

    display: flex;
    flex-direction: column;
}

.dashboard-date small {
    color: rgba(255, 255, 255, 0.72);

    font-size: 12px;
    font-weight: 700;

    text-transform: uppercase;
}

.dashboard-date strong {
    margin-top: 3px;

    color: #ffffff;

    font-size: 16px;
    line-height: 1.4;
}


/* =====================================================
   SUMMARY CARDS
   Displays dashboard statistics such as students,
   classes and gender totals.
===================================================== */

.dashboard-stat-grid {
    width: 100%;

    margin-bottom: 24px;

    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;
}

.dashboard-stat-card {
    position: relative;

    min-width: 0;
    min-height: 145px;

    padding: 21px;

    display: flex;
    align-items: center;
    gap: 17px;

    background: #ffffff;

    border: 1px solid #d9e0ef;
    border-radius: 20px;

    box-shadow:
        0 10px 24px rgba(15, 23, 42, 0.10),
        0 18px 36px rgba(59, 72, 120, 0.12);

    overflow: hidden;

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

/* Decorative circle displayed inside each summary card */
.dashboard-stat-card::after {
    content: "";

    position: absolute;
    top: -35px;
    right: -35px;

    width: 110px;
    height: 110px;

    border-radius: 50%;

    opacity: 0.10;
}

.dashboard-stat-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 16px 30px rgba(15, 23, 42, 0.12),
        0 24px 42px rgba(59, 72, 120, 0.18);
}

.dashboard-stat-card.blue::after {
    background: #3b82f6;
    opacity: 0.45;
}

.dashboard-stat-card.purple::after {
    background: #8b5cf6;
    opacity: 0.45;
}

.dashboard-stat-card.cyan::after {
    background: #06b6d4;
    opacity: 0.45;
}

.dashboard-stat-card.pink::after {
    background: #ec4899;
    opacity: 0.45;
}


/* Summary card icon */
.dashboard-stat-icon {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 17px;

    font-size: 27px;
}

.dashboard-stat-card.blue .dashboard-stat-icon {
    background: #eaf1ff;
}

.dashboard-stat-card.purple .dashboard-stat-icon {
    background: #f1eaff;
}

.dashboard-stat-card.cyan .dashboard-stat-icon {
    background: #e5f8fb;
}

.dashboard-stat-card.pink .dashboard-stat-icon {
    background: #fdebf4;
}

.dashboard-stat-card > div:last-child {
    min-width: 0;

    display: flex;
    flex-direction: column;
}

.dashboard-stat-card span {
    color: #111827;

    font-size: 16px;
    font-weight: 800;
}

.dashboard-stat-card strong {
    margin: 4px 0 2px;

    color: #111827;

    font-size: 31px;
    font-weight: 900;
    line-height: 1.1;
}

.dashboard-stat-card small {
    color: #374151;

    font-size: 15px;
    line-height: 1.4;
}


/* =====================================================
   MAIN DASHBOARD PANELS
   Used for class distribution and student status.
===================================================== */

.dashboard-panel-grid {
    width: 100%;

    margin-bottom: 24px;

    display: grid;
    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(320px, 0.85fr);

    gap: 20px;
}

.dashboard-panel {
    width: 100%;
    min-width: 0;

    margin-bottom: 24px;
    padding: clamp(19px, 2.4vw, 27px);

    background: #ffffff;

    border: 1px solid #d9e0ef;
    border-radius: 22px;

    box-shadow:
        0 10px 24px rgba(15, 23, 42, 0.08),
        0 18px 38px rgba(59, 72, 120, 0.12);
}

.dashboard-panel-grid .dashboard-panel {
    margin-bottom: 0;
}


/* Dashboard panel heading */
.dashboard-panel-header {
    width: 100%;

    margin-bottom: 20px;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.dashboard-panel-header > div {
    min-width: 0;
}

.dashboard-panel-header h2 {
    margin: 0;

    color: #111827;

    font-size: clamp(19px, 2vw, 23px);

    font-weight: 900;
    line-height: 1.3;
}

.dashboard-panel-header p {
    margin: 5px 0 0;

    color: #374151;

    font-size: 14px;
    line-height: 1.5;
}

/* =====================================================
   DASHBOARD LINKS
   Text links and primary action buttons.
===================================================== */

.dashboard-text-link,
.dashboard-primary-link {
    flex-shrink: 0;

    font-size: 16px;
    font-weight: 800;
    text-decoration: none;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.dashboard-text-link {
    padding: 7px 0;

    color: #111827;

    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
}

.dashboard-text-link:hover {
    color: #111827;
    opacity: 0.75;

    transform: translateX(2px);
}

.dashboard-primary-link {
    padding: 10px 15px;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #6d42dc
        );

    color: #ffffff;

    border-radius: 11px;

    box-shadow:
        0 8px 17px rgba(37, 99, 235, 0.20);
}

.dashboard-primary-link:hover {
    transform: translateY(-2px);

    box-shadow:
        0 11px 21px rgba(37, 99, 235, 0.28);
}


/* =====================================================
   CLASS DISTRIBUTION
   Displays the total number of students by class.
===================================================== */

.class-distribution-list {
    width: 100%;

    display: flex;
    flex-direction: column;
    gap: 16px;
}

.class-distribution-item {
    width: 100%;

    padding: 16px;

    background: #f5f7ff;

    border: 1px solid #cfd8ee;
    border-radius: 15px;

    box-shadow:
        0 8px 18px rgba(59, 72, 120, 0.08);
}

.class-distribution-info {
    width: 100%;

    margin-bottom: 11px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.class-distribution-info > div {
    min-width: 0;

    display: flex;
    flex-direction: column;
}

.class-distribution-info strong {
    color: #111827;

    font-size: 18px;
    font-weight: 900;
}

.class-distribution-info span {
    margin-top: 3px;

    color: #374151;

    font-size: 14px;
}

.class-distribution-info b {
    flex-shrink: 0;

    color: #111827;

    font-size: 14px;
    font-weight: 800;
}


/* Class distribution progress bar */
.class-progress {
    width: 100%;
    height: 12px;

    background: #dbe4f5;

    border-radius: 20px;

    overflow: hidden;
}

.class-progress span {
    display: block;

    min-width: 0;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            #2563eb,
            #7c3aed
        );

    border-radius: inherit;
}


/* =====================================================
   STUDENT STATUS SUMMARY
   Displays Low, Medium, High and Pending status totals.
===================================================== */

.status-summary-list {
    width: 100%;

    display: flex;
    flex-direction: column;
    gap: 12px;
}

.status-summary-item {
    width: 100%;

    padding: 14px;

    display: grid;
    grid-template-columns:
        43px minmax(0, 1fr) auto;

    align-items: center;
    gap: 12px;

    border-radius: 14px;
}

.status-summary-item.low {
    background: #dff7e8;
    border: 1px solid #8fe0aa;
}

.status-summary-item.medium {
    background: #fff4cf;
    border: 1px solid #f2cb5b;
}

.status-summary-item.high {
    background: #ffe1e6;
    border: 1px solid #f4a4b2;
}

.status-summary-item.pending {
    background: #e7edf5;
    border: 1px solid #bfcada;
}


/* Student status icon */
.status-summary-icon {
    width: 43px;
    height: 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    font-size: 20px;
    font-weight: 900;
}

.status-summary-item.low .status-summary-icon {
    background: #d1fae5;
    color: #047857;
}

.status-summary-item.medium .status-summary-icon {
    background: #fef3c7;
    color: #b45309;
}

.status-summary-item.high .status-summary-icon {
    background: #ffe4e6;
    color: #be123c;
}

.status-summary-item.pending .status-summary-icon {
    background: #e2e8f0;
    color: #475569;
}

.status-summary-item > div:nth-child(2) {
    min-width: 0;

    display: flex;
    flex-direction: column;
}

.status-summary-item span {
    color: #111827;

    font-size: 15px;
    font-weight: 900;
}

.status-summary-item small {
    margin-top: 2px;

    color: #374151;

    font-size: 13px;
}

.status-summary-item > strong {
    font-size: 23px;
    font-weight: 900;
}

.status-summary-item.low > strong {
    color: #047857;
}

.status-summary-item.medium > strong {
    color: #b45309;
}

.status-summary-item.high > strong {
    color: #be123c;
}

.status-summary-item.pending > strong {
    color: #475569;
}


/* =====================================================
   DASHBOARD TABLE
   Displays recently registered students.
===================================================== */

.dashboard-table-wrapper {
    width: 100%;

    overflow-x: auto;
    overflow-y: hidden;

    border: 1px solid #e7ebf3;
    border-radius: 16px;

    -webkit-overflow-scrolling: touch;
}

.dashboard-table {
    width: 100%;
    min-width: 850px;

    border-collapse: collapse;

    background: #ffffff;
}

.dashboard-table th,
.dashboard-table td {
    padding: 14px 15px;

    border-bottom: 1px solid #edf0f5;

    text-align: left;
    vertical-align: middle;

    white-space: nowrap;
}

.dashboard-table th {
    background:
        linear-gradient(
            180deg,
            #f7f8fc,
            #f2f4f8
        );

    color: #111827;

    font-size: 14px;
    font-weight: 850;
    letter-spacing: 0.4px;

    text-transform: uppercase;
}

.dashboard-table td {
    color: #111827;

    font-size: 14px;
}

.dashboard-table tbody tr {
    transition: background 0.18s ease;
}

.dashboard-table tbody tr:hover {
    background: #f3f6ff;
}

.dashboard-table tbody tr:last-child td {
    border-bottom: none;
}


/* Student information displayed inside the table */
.dashboard-student {
    display: flex;
    align-items: center;
    gap: 11px;
}

.dashboard-student-avatar {
    width: 41px;
    height: 41px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #7c3aed
        );

    color: #ffffff;

    border-radius: 12px;

    font-size: 15px;
    font-weight: 850;
}

.dashboard-student > div:last-child {
    min-width: 0;

    display: flex;
    flex-direction: column;
}

.dashboard-student strong {
    color: #1f2937;

    font-size: 14px;
    font-weight: 800;

    white-space: nowrap;
}

.dashboard-student small {
    margin-top: 2px;

    color: #4b5563;

    font-size: 12px;
}


/* =====================================================
   STUDENT RECORD STATUS
===================================================== */

.student-record-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 6px 10px;

    border-radius: 20px;

    font-size: 14px;
    font-weight: 800;
}

.student-record-status.active {
    background: #dcfce7;
    color: #15803d;
}

.student-record-status.inactive {
    background: #f1f5f9;
    color: #64748b;
}

.student-record-status.transferred {
    background: #fef3c7;
    color: #b45309;
}

.student-record-status.graduated {
    background: #ede9fe;
    color: #6d28d9;
}


/* View student button */
.dashboard-view-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 8px 12px;

    background: #eef2ff;
    color: #4f46e5;

    border: 1px solid #dfe3ff;
    border-radius: 9px;

    font-size: 14px;
    font-weight: 800;
    text-decoration: none;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.dashboard-view-button:hover {
    background: #4f46e5;
    color: #ffffff;

    transform: translateY(-1px);
}


/* Message displayed when the table has no student records */
.dashboard-empty-table {
    padding: 35px !important;

    color: #94a3b8 !important;

    text-align: center !important;
}


/* =====================================================
   QUICK ACTIONS
   Provides shortcuts to important teacher modules.
===================================================== */

.dashboard-quick-actions {
    width: 100%;

    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 14px;
}

.dashboard-quick-actions a {
    min-width: 0;
    min-height: 105px;

    padding: 17px;

    display: flex;
    align-items: center;
    gap: 13px;

    background:
        linear-gradient(
            135deg,
            #f8faff,
            #f6f3ff
        );

    color: #1f2937;

    border: 1px solid #e4e7f2;
    border-radius: 16px;

    text-decoration: none;

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.dashboard-quick-actions a:hover {
    transform: translateY(-3px);

    border-color: #c9cdf4;

    box-shadow:
        0 13px 25px rgba(72, 74, 155, 0.12);
}


/* Quick action icon */
.dashboard-quick-actions a > span {
    width: 47px;
    height: 47px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background:
        linear-gradient(
            135deg,
            #dce8ff,
            #ebe1ff
        );

    border-radius: 13px;

    font-size: 22px;
}

.dashboard-quick-actions a > div {
    min-width: 0;

    display: flex;
    flex-direction: column;
}

.dashboard-quick-actions strong {
    color: #263044;

    font-size: 15px;
    font-weight: 850;
}

.dashboard-quick-actions small {
    margin-top: 4px;

    color: #8792a6;

    font-size: 14px;
    line-height: 1.4;
}


/* =====================================================
   EMPTY STATE
   Used when dashboard data is not available.
===================================================== */

.dashboard-empty-state {
    width: 100%;
    min-height: 130px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    color: #94a3b8;

    text-align: center;
}

.dashboard-empty-state span {
    font-size: 32px;
}

.dashboard-empty-state p {
    margin: 8px 0 0;

    font-size: 12px;
}


/* =====================================================
   LARGE TABLET / SMALL LAPTOP
===================================================== */

@media (max-width: 1200px) {

    .dashboard-stat-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .dashboard-panel-grid {
        grid-template-columns:
            minmax(0, 1fr);
    }

    .dashboard-quick-actions {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 900px) {

    .dashboard-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-date {
        width: 100%;
        min-width: 0;
    }
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

    .dashboard-container {
        padding:
            12px 12px 25px;
    }

    .dashboard-header {
        margin-bottom: 16px;
        padding: 20px 17px;

        border-radius: 19px;
    }

    .dashboard-header h1 {
        font-size: 25px;
    }

    .dashboard-date {
        padding: 12px 13px;
    }

    .dashboard-stat-grid {
        margin-bottom: 16px;

        grid-template-columns: 1fr;

        gap: 12px;
    }

    .dashboard-stat-card {
        min-height: 112px;
        padding: 17px;
    }

    .dashboard-stat-icon {
        width: 52px;
        height: 52px;

        font-size: 24px;
    }

    .dashboard-stat-card strong {
        font-size: 27px;
    }

    .dashboard-panel-grid {
        margin-bottom: 16px;

        gap: 16px;
    }

    .dashboard-panel {
        margin-bottom: 16px;
        padding: 17px;

        border-radius: 18px;
    }

    .dashboard-panel-header {
        margin-bottom: 16px;

        flex-direction: column;
        align-items: flex-start;

        gap: 10px;
    }

    .dashboard-text-link,
    .dashboard-primary-link {
        align-self: flex-start;
    }

    .class-distribution-info {
        align-items: flex-start;
        flex-direction: column;

        gap: 7px;
    }

    .status-summary-item {
        grid-template-columns:
            40px minmax(0, 1fr) auto;

        padding: 12px;
    }

    .status-summary-icon {
        width: 40px;
        height: 40px;
    }

    .dashboard-quick-actions {
        grid-template-columns: 1fr;

        gap: 11px;
    }

    .dashboard-quick-actions a {
        min-height: 88px;
        padding: 14px;
    }

    .dashboard-table {
        min-width: 760px;
    }
}


/* =====================================================
   SMALL MOBILE SCREEN
===================================================== */

@media (max-width: 380px) {

    .dashboard-container {
        padding-left: 9px;
        padding-right: 9px;
    }

    .dashboard-header {
        padding-left: 14px;
        padding-right: 14px;
    }

    .dashboard-panel {
        padding-left: 14px;
        padding-right: 14px;
    }

    .dashboard-header h1 {
        font-size: 22px;
    }
}


/* =====================================================
   PRINT STYLES
   Removes navigation elements when printing.
===================================================== */

@media print {

    .sidebar,
    .sidebar-open-button,
    .sidebar-overlay,
    .dashboard-quick-actions,
    .dashboard-primary-link,
    .dashboard-text-link,
    .dashboard-view-button {
        display: none !important;
    }

    .main-content {
        width: 100% !important;

        margin-left: 0 !important;
        padding: 0 !important;
    }

    .dashboard-container {
        max-width: none;

        padding: 0;
    }

    .dashboard-header,
    .dashboard-panel,
    .dashboard-stat-card {
        box-shadow: none;
    }

    .dashboard-table-wrapper {
        overflow: visible;
    }

    .dashboard-table {
        min-width: 0;
    }
}

/* =====================================================
   STUDENT MANAGEMENT PAGE
   Main styling for managing student records.
===================================================== */

body.students-page {
    min-height: 100vh;
    min-height: 100dvh;

    background: 
		linear-gradient(
            135deg,
            #c7ddf5 0%,
            #c8c7f5 68%,
            #dfc7f5 100%
        );

    color: #1f2937;

    overflow-x: hidden;
    overflow-y: auto;
}


/* =====================================================
   STUDENT PAGE CONTAINER
   Controls the page width and outer spacing.
===================================================== */

.students-container {
    width: 100%;
    max-width: 1600px;

    margin: 0 auto;

    padding:
        clamp(20px, 3vw, 38px);
}


/* =====================================================
   PAGE HEADER
   Displays the Student Management title and
   Add Student button.
===================================================== */

.students-header {
    width: 100%;

    margin-bottom: 22px;
    padding:
        clamp(22px, 3vw, 34px);

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    background:
        linear-gradient(
            135deg,
            #1d4ed8,
            #6635d8
        );

    color: #ffffff;

    border-radius: 24px;

    box-shadow:
        0 18px 40px rgba(54, 70, 170, 0.20);
}

.students-header > div {
    min-width: 0;
}


/* Small label displayed above the page title */
.students-eyebrow {
    display: inline-block;

    margin-bottom: 8px;
    padding: 6px 11px;

    background: rgba(255, 255, 255, 0.14);

    border:
        1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;

    color: rgba(255, 255, 255, 0.92);

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.8px;

    text-transform: uppercase;
}

.students-header h1 {
    margin: 0;

    color: #ffffff;

    font-size:
        clamp(26px, 3.2vw, 40px);

    font-weight: 900;
    line-height: 1.2;
}

.students-header p {
    max-width: 680px;

    margin: 9px 0 0;

    color: rgba(255, 255, 255, 0.84);

    font-size:
        clamp(14px, 1.5vw, 15px);

    line-height: 1.6;
}

/* =====================================================
   PAGE HEADER ACTION BUTTON
   Shared primary action used across management pages.
===================================================== */

.students-add-button,
.page-header-action {
    min-width: 145px;

    padding: 13px 17px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    flex-shrink: 0;

    background: rgba(255, 255, 255, 0.96);
    color: #4338ca;

    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 14px;

    font-size: 15px;
    font-weight: 850;

    text-decoration: none;
    white-space: nowrap;

    box-shadow:
        0 10px 24px rgba(24, 32, 90, 0.18);

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.students-add-button span,
.page-header-action span {
    font-size: 19px;
    line-height: 1;
}

.students-add-button:hover,
.page-header-action:hover {
    color: #4338ca;

    transform: translateY(-2px);

    box-shadow:
        0 14px 28px rgba(24, 32, 90, 0.25);
}

/* =====================================================
   STUDENT PANEL
   Main card used for the student form and records.
===================================================== */

.students-panel {
    width: 100%;
    min-width: 0;

    margin-bottom: 24px;
    padding:
        clamp(19px, 2.5vw, 28px);

    background: rgba(255, 255, 255, 0.97);

    border: 1px solid #e6eaf3;
    border-radius: 22px;

    box-shadow:
        0 12px 30px rgba(57, 68, 109, 0.08);
}

.students-panel-header {
    width: 100%;

    margin-bottom: 20px;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.students-panel-header > div {
    min-width: 0;
}

.students-panel-header h2 {
    margin: 0;

    color: #172033;

    font-size:
        clamp(20px, 2vw, 24px);

    font-weight: 850;
    line-height: 1.3;
}

.students-panel-header p {
    margin: 5px 0 0;

    color: #7b879c;

    font-size: 15px;
    line-height: 1.5;
}


/* Close button used to hide the Add/Edit Student form */
.students-close-form {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: #f1f5f9;
    color: #64748b;

    border: 1px solid #dce3ec;
    border-radius: 11px;

    font-family: Arial, sans-serif;
    font-size: 24px;
    line-height: 1;

    text-decoration: none;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.students-close-form:hover {
    background: #fee2e2;
    color: #dc2626;

    transform: rotate(90deg);
}


/* =====================================================
   STUDENT FORM
   Contains personal, academic and account information.
===================================================== */

.student-form {
    width: 100%;
}


/* Individual section inside the student form */
.student-form-section {
    width: 100%;

    margin-bottom: 22px;
    padding: 20px;

    background:
        linear-gradient(
            135deg,
            #fafbff,
            #f8f6ff
        );

    border: 1px solid #e8eaf4;
    border-radius: 17px;
}

.student-form-section:last-of-type {
    margin-bottom: 20px;
}


/* =====================================================
   FORM SECTION HEADER
===================================================== */

.student-form-section-title {
    width: 100%;

    margin-bottom: 19px;

    display: flex;
    align-items: center;
    gap: 12px;
}

.student-form-section-title > span {
    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background:
        linear-gradient(
            135deg,
            #e0eaff,
            #ede4ff
        );

    border-radius: 13px;

    font-size: 21px;
}

.student-form-section-title > div {
    min-width: 0;
}

.student-form-section-title h3 {
    margin: 0;

    color: #273247;

    font-size: 18px;
    font-weight: 850;
    line-height: 1.35;
}

.student-form-section-title p {
    margin: 3px 0 0;

    color: #8792a6;

    font-size: 14px;
    line-height: 1.4;
}


/* =====================================================
   FORM GRID
   Displays student fields in two columns on
   larger screens.
===================================================== */

.student-form-grid {
    width: 100%;

    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 17px;
}

.student-field {
    min-width: 0;

    display: flex;
    flex-direction: column;
}

.student-field.full-width {
    grid-column: 1 / -1;
}


/* =====================================================
   FORM LABELS
===================================================== */

.student-field label {
    margin-bottom: 7px;

    color: #384357;

    font-size: 16px;
    font-weight: 750;
    line-height: 1.4;
}

/* Required field indicator */
.student-field label b {
    color: #dc2626;
}


/* =====================================================
   FORM INPUTS
   Shared styling for text fields, selections
   and text areas.
===================================================== */

.student-field input,
.student-field select,
.student-field textarea {
    width: 100%;

    padding: 12px 13px;

    background: #ffffff;
    color: #1f2937;

    border: 2px solid #dce2eb;
    border-radius: 12px;

    font-family: inherit;
    font-size: 15px;

    outline: none;

    transition:
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        background 0.22s ease;
}

.student-field input,
.student-field select {
    min-height: 48px;
}

.student-field textarea {
    min-height: 100px;

    line-height: 1.5;

    resize: vertical;
}

.student-field input::placeholder,
.student-field textarea::placeholder {
    color: #a1a9b7;
}


/* Focus state for form controls */
.student-field input:focus,
.student-field select:focus,
.student-field textarea:focus {
    background: #ffffff;

    border-color: #4f46e5;

    box-shadow:
        0 0 0 4px rgba(79, 70, 229, 0.12);
}

.student-field select {
    cursor: pointer;
}


/* Helper text displayed below student form fields */
.student-field small {
    margin-top: 5px;

    color: #8a94a6;

    font-size: 12px;
    line-height: 1.4;
}


/* =====================================================
   PASSWORD INFORMATION
   Displays the password requirement notice.
===================================================== */

.student-password-note {
    width: 100%;

    margin-bottom: 16px;
    padding: 11px 13px;

    background: #eff6ff;
    color: #1d4ed8;

    border: 1px solid #bfdbfe;
    border-radius: 11px;

    font-size: 13px;
    font-weight: 650;
    line-height: 1.5;
}


/* =====================================================
   FORM ACTIONS
   Save and Cancel buttons for the student form.
===================================================== */

.student-form-actions {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 11px;
}

.student-save-button,
.student-cancel-button {
    min-height: 45px;
    padding: 11px 17px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    border-radius: 12px;

    font-size: 14px;
    font-weight: 850;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


/* Save Student button */
.student-save-button {
    border: none;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #6d3bd9
        );

    color: #ffffff;

    box-shadow:
        0 9px 19px rgba(37, 99, 235, 0.22);
}

.student-save-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 13px 24px rgba(37, 99, 235, 0.30);
}


/* Cancel Student button */
.student-cancel-button {
    background: #f1f5f9;
    color: #475569;

    border: 1px solid #dce3eb;

    text-decoration: none;
}

.student-cancel-button:hover {
    background: #e2e8f0;

    transform: translateY(-1px);
}

/* =====================================================
   SEARCH AND FILTER
   Provides search, status filtering and reset actions.
===================================================== */

.students-filter-form {
    width: 100%;

    margin-bottom: 20px;
    padding: 15px;

    display: grid;
    grid-template-columns:
        minmax(220px, 1fr)
        minmax(170px, 230px)
        auto
        auto;

    align-items: center;
    gap: 10px;

    background:
        linear-gradient(
            135deg,
            #f8faff,
            #f6f4ff
        );

    border: 1px solid #e4e7f1;
    border-radius: 15px;
}


/* =====================================================
   SEARCH FIELD
===================================================== */

.students-search-box {
    width: 100%;
    min-width: 0;
    min-height: 46px;

    padding: 0 13px;

    display: flex;
    align-items: center;
    gap: 9px;

    background: #ffffff;

    border: 2px solid #dce2eb;
    border-radius: 11px;

    transition:
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.students-search-box:focus-within {
    border-color: #4f46e5;

    box-shadow:
        0 0 0 4px rgba(79, 70, 229, 0.11);
}

.students-search-box > span {
    flex-shrink: 0;

    font-size: 16px;
}

.students-search-box input {
    width: 100%;
    min-width: 0;
    height: 42px;

    padding: 0;

    background: transparent;
    color: #1f2937;

    border: none;
    outline: none;

    font-size: 15px;
}


/* =====================================================
   STATUS FILTER
===================================================== */

.students-filter-form > select {
    width: 100%;
    min-height: 46px;

    padding: 0 12px;

    background: #ffffff;
    color: #344054;

    border: 2px solid #dce2eb;
    border-radius: 11px;

    font-size: 15px;

    outline: none;
    cursor: pointer;
}

.students-filter-form > select:focus {
    border-color: #4f46e5;

    box-shadow:
        0 0 0 4px rgba(79, 70, 229, 0.11);
}


/* =====================================================
   FILTER AND RESET BUTTONS
===================================================== */

.students-filter-button,
.students-reset-button {
    min-height: 46px;

    padding: 10px 16px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    font-size: 14px;
    font-weight: 800;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


/* Apply Filter button */
.students-filter-button {
    border: none;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #6540d8
        );

    color: #ffffff;

    cursor: pointer;

    box-shadow:
        0 7px 16px rgba(37, 99, 235, 0.20);
}

.students-filter-button:hover {
    transform: translateY(-1px);

    box-shadow:
        0 10px 20px rgba(37, 99, 235, 0.28);
}


/* Reset Filter button */
.students-reset-button {
    background: #ffffff;
    color: #64748b;

    border: 1px solid #dce3eb;

    text-decoration: none;
}

.students-reset-button:hover {
    background: #f1f5f9;
    color: #334155;

    transform: translateY(-1px);
}


/* =====================================================
   STUDENT TABLE
   Displays all student records.
===================================================== */

.students-table-wrapper {
    width: 100%;

    overflow-x: auto;
    overflow-y: hidden;

    border: 1px solid #e4e8f0;
    border-radius: 16px;

    -webkit-overflow-scrolling: touch;
}

.students-table {
    width: 100%;
    min-width: 1050px;

    border-collapse: collapse;

    background: #ffffff;
}

.students-table th,
.students-table td {
    padding: 14px 15px;

    border-bottom: 1px solid #edf0f5;

    text-align: left;
    vertical-align: middle;

    white-space: nowrap;
}


/* Table header */
.students-table th {
    background:
        linear-gradient(
            180deg,
            #f7f8fc,
            #f2f4f8
        );

    color: #64748b;

    font-size: 15px;
    font-weight: 850;
    letter-spacing: 0.45px;

    text-transform: uppercase;
}


/* Table content */
.students-table td {
    color: #4b5563;

    font-size: 14px;
}

.students-table tbody tr {
    transition: background 0.18s ease;
}

.students-table tbody tr:hover {
    background: #fafbff;
}

.students-table tbody tr:last-child td {
    border-bottom: none;
}


/* =====================================================
   STUDENT INFORMATION
   Displays student initials, name and supporting details.
===================================================== */

.students-person {
    display: flex;
    align-items: center;
    gap: 11px;
}

.students-avatar {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #7c3aed
        );

    color: #ffffff;

    border-radius: 12px;

    font-size: 15px;
    font-weight: 850;
}

.students-person > div:last-child {
    min-width: 0;

    display: flex;
    flex-direction: column;
}

.students-person strong {
    max-width: 210px;

    color: #1f2937;

    font-size: 15px;

    overflow: hidden;
    text-overflow: ellipsis;
}

.students-person small {
    margin-top: 2px;

    color: #94a3b8;

    font-size: 12px;
}


/* Secondary text inside the table */
.students-table-subtext {
    display: block;

    margin-top: 3px;

    color: #94a3b8;

    font-size: 14px;
}


/* =====================================================
   STUDENT STATUS BADGES
   Provides visual indicators for student status.
===================================================== */

.student-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 6px 10px;

    border-radius: 20px;

    font-size: 13px;
    font-weight: 850;
}

.student-status-badge.active {
    background: #dcfce7;
    color: #15803d;
}

.student-status-badge.inactive {
    background: #f1f5f9;
    color: #64748b;
}

.student-status-badge.transferred {
    background: #fef3c7;
    color: #b45309;
}

.student-status-badge.graduated {
    background: #ede9fe;
    color: #6d28d9;
}


/* =====================================================
   TABLE ACTIONS
   View, Edit and Delete buttons for student records.
===================================================== */

.students-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.students-delete-form {
    display: inline-flex;

    margin: 0;
}

.students-action-button {
    min-height: 34px;

    padding: 7px 10px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    font-size: 13px;
    font-weight: 850;

    text-decoration: none;

    cursor: pointer;

    transition:
        transform 0.18s ease,
        background 0.18s ease,
        color 0.18s ease;
}


/* View Student button */
.students-action-button.view {
    background: #eef2ff;
    color: #4f46e5;

    border: 1px solid #dfe3ff;
}

.students-action-button.view:hover {
    background: #4f46e5;
    color: #ffffff;

    transform: translateY(-1px);
}


/* Edit Student button */
.students-action-button.edit {
    background: #ecfeff;
    color: #0e7490;

    border: 1px solid #bae6fd;
}

.students-action-button.edit:hover {
    background: #0891b2;
    color: #ffffff;

    transform: translateY(-1px);
}


/* Delete Student button */
.students-action-button.delete {
    background: #fff1f2;
    color: #be123c;

    border: 1px solid #fecdd3;
}

.students-action-button.delete:hover {
    background: #e11d48;
    color: #ffffff;

    transform: translateY(-1px);
}


/* =====================================================
   EMPTY TABLE
   Displayed when there are no student records.
===================================================== */

.students-empty-table {
    height: 230px;

    text-align: center !important;
}

.students-empty-table > span,
.students-empty-table > strong,
.students-empty-table > small {
    display: block;
}

.students-empty-table > span {
    margin-bottom: 8px;

    font-size: 38px;
}

.students-empty-table > strong {
    color: #475569;

    font-size: 14px;
}

.students-empty-table > small {
    margin-top: 5px;

    color: #94a3b8;

    font-size: 12px;
}


/* =====================================================
   TABLET / SMALL LAPTOP
===================================================== */

@media (max-width: 1000px) {

    .students-filter-form {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(170px, 220px);

        gap: 10px;
    }

    .students-filter-button,
    .students-reset-button {
        width: 100%;
    }
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 768px) {

    .students-container {
        padding:
            14px 14px 28px;
    }

    .students-header {
        align-items: flex-start;
        flex-direction: column;

        gap: 17px;
    }

    .students-add-button,
	.page-header-action {
		width: 100%;
	}

    .student-form-grid {
        grid-template-columns: 1fr;
    }

    .student-field.full-width {
        grid-column: auto;
    }

    .students-filter-form {
        grid-template-columns: 1fr;
    }

    .students-search-box,
    .students-filter-form > select,
    .students-filter-button,
    .students-reset-button {
        width: 100%;
    }
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

    .students-container {
        padding:
            11px 11px 25px;
    }

    .students-header {
        margin-bottom: 16px;

        padding: 20px 17px;

        border-radius: 19px;
    }

    .students-header h1 {
        font-size: 26px;
    }

    .students-panel {
        margin-bottom: 16px;

        padding: 16px;

        border-radius: 18px;
    }

    .students-panel-header {
        margin-bottom: 16px;
    }

    .student-form-section {
        margin-bottom: 15px;

        padding: 15px;

        border-radius: 14px;
    }

    .student-form-section-title {
        align-items: flex-start;

        margin-bottom: 15px;
    }

    .student-form-section-title > span {
        width: 40px;
        height: 40px;

        font-size: 19px;
    }

    .student-form-grid {
        gap: 13px;
    }

    .student-field input,
    .student-field select {
        min-height: 46px;
    }

    .student-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .student-save-button,
    .student-cancel-button {
        width: 100%;
    }

    .students-filter-form {
        padding: 12px;
    }

    .students-table {
        min-width: 940px;
    }

    .students-action-button {
        min-height: 36px;

        padding: 8px 11px;
    }
}


/* =====================================================
   SMALL MOBILE SCREEN
===================================================== */

@media (max-width: 380px) {

    .students-container {
        padding-left: 8px;
        padding-right: 8px;
    }

    .students-header,
    .students-panel {
        padding-left: 13px;
        padding-right: 13px;
    }

    .students-header h1 {
        font-size: 23px;
    }

    .student-form-section {
        padding-left: 12px;
        padding-right: 12px;
    }
}


/* =====================================================
   LANDSCAPE MOBILE
===================================================== */

@media (max-height: 500px) and (orientation: landscape) {

    .students-header {
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .student-form-section {
        padding-top: 14px;
        padding-bottom: 14px;
    }
}


/* =====================================================
   PRINT STYLES
   Removes controls that are unnecessary when printing.
===================================================== */

@media print {

    body.students-page {
        background: #ffffff;
    }

    .sidebar,
    .sidebar-open-button,
    .sidebar-overlay,
    .students-add-button,
    .students-filter-form,
    .student-form-panel,
    .students-actions {
        display: none !important;
    }

    .main-content {
        width: 100% !important;

        margin-left: 0 !important;
        padding: 0 !important;
    }

    .students-container {
        max-width: none;

        padding: 0;
    }

    .students-header,
    .students-panel {
        box-shadow: none;
    }

    .students-table-wrapper {
        overflow: visible;
    }

    .students-table {
        min-width: 0;
    }
}

/* =====================================================
   STUDENT PROFILE PAGE
===================================================== */

body.student-profile-page {
    min-height: 100vh;
    min-height: 100dvh;

    margin: 0;

    background: 
		linear-gradient(
            135deg,
            #c7ddf5 0%,
            #c8c7f5 68%,
            #dfc7f5 100%
        );

    color: #1f2937;

    overflow-x: hidden;
    overflow-y: auto;
}


/* =====================================================
   STUDENT PORTAL TOP BAR
   Displayed when a student is logged into the system.
===================================================== */

.student-profile-topbar {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;
    min-height: 72px;

    padding:
        12px
        clamp(15px, 4vw, 42px);

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    background:
        rgba(255, 255, 255, 0.96);

    border-bottom:
        1px solid #e4e8f1;

    box-shadow:
        0 5px 20px rgba(50, 63, 110, 0.08);

    backdrop-filter: blur(12px);
}

.student-profile-brand {
    min-width: 0;

    display: flex;
    align-items: center;
    gap: 11px;

    color: #1f2937;
    text-decoration: none;
}

.student-profile-brand img {
    display: block;

    width: 48px;
    height: 48px;

    flex-shrink: 0;

    object-fit: contain;
}

.student-profile-brand > div {
    min-width: 0;

    display: flex;
    flex-direction: column;
}

.student-profile-brand strong {
    color: #27356b;

    font-size: 22px;
    font-weight: 900;
    line-height: 1.1;
}

.student-profile-brand span {
    margin-top: 3px;

    color: #8490a5;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.student-profile-account {
    min-width: 0;

    display: flex;
    align-items: center;
    gap: 15px;
}

.student-profile-account > div {
    min-width: 0;

    display: flex;
    flex-direction: column;

    text-align: right;
}

.student-profile-account strong {
    max-width: none;

    color: #273247;

    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;

    white-space: nowrap;

    overflow: visible;
    text-overflow: clip;
}

.student-profile-account span {
    margin-top: 2px;

    color: #94a3b8;

    font-size: 12px;
}

.student-profile-logout {
    min-height: 40px;
    padding: 9px 15px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: #fff1f2;
    color: #be123c;

    border: 1px solid #fecdd3;
    border-radius: 11px;

    font-size: 13px;
    font-weight: 850;
    text-decoration: none;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.student-profile-logout:hover {
    background: #e11d48;
    color: #ffffff;

    transform: translateY(-1px);
}


/* =====================================================
   STUDENT PROFILE MAIN
===================================================== */

.student-profile-main {
    width: 100%;
    min-height: calc(100vh - 72px);
    min-height: calc(100dvh - 72px);
}

.student-profile-container {
    width: 100%;
    max-width: 1600px;

    margin: 0 auto;

    padding:
        clamp(20px, 3vw, 38px);
}


/* =====================================================
   PROFILE HEADER
===================================================== */

.student-profile-header {
    width: 100%;

    margin-bottom: 22px;
    padding:
        clamp(22px, 3vw, 34px);

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;

    background:
        linear-gradient(
            135deg,
            #1d4ed8 0%,
            #5b35d5 68%,
            #7540d7 100%
        );

    color: #ffffff;

    border-radius: 24px;

    box-shadow:
        0 18px 40px rgba(54, 70, 170, 0.20);
}

.student-profile-header-left {
    min-width: 0;

    display: flex;
    align-items: center;
    gap: 19px;
}

.student-profile-avatar,
.student-profile-photo {
    width: 92px;
    height: 92px;

    flex-shrink: 0;

    border:
        4px solid rgba(255, 255, 255, 0.30);

    border-radius: 22px;

    box-shadow:
        0 12px 25px rgba(17, 24, 80, 0.24);
}

.student-profile-avatar {
    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.30),
            rgba(255, 255, 255, 0.13)
        );

    color: #ffffff;

    font-size: 34px;
    font-weight: 900;
}

.student-profile-photo {
    display: block;

    background: #ffffff;

    object-fit: cover;
}

.student-profile-heading {
    min-width: 0;
}

.student-profile-eyebrow {
    display: inline-block;

    margin-bottom: 7px;
    padding: 5px 10px;

    background: rgba(255, 255, 255, 0.14);

    border:
        1px solid rgba(255, 255, 255, 0.19);
    border-radius: 20px;

    color: rgba(255, 255, 255, 0.91);

    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.student-profile-heading h1 {
    margin: 0;

    color: #ffffff;

    font-size:
        clamp(25px, 3vw, 39px);

    font-weight: 900;
    line-height: 1.2;

    overflow-wrap: anywhere;
}

.student-profile-heading-meta {
    margin-top: 10px;

    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.student-profile-heading-meta span {
    padding: 7px 10px;

    display: inline-flex;
    align-items: center;
    gap: 5px;

    background: rgba(255, 255, 255, 0.12);

    border:
        1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;

    color: rgba(255, 255, 255, 0.91);

    font-size: 13px;
    font-weight: 650;
}

.student-profile-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 9px;

    flex-shrink: 0;
}


/* =====================================================
   PROFILE HEADER BUTTONS
===================================================== */

.profile-student-status,
.profile-edit-button,
.profile-back-button {
    min-height: 40px;
    padding: 9px 13px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    font-size: 12px;
    font-weight: 850;
    text-decoration: none;
}

.profile-student-status.active {
    background: #dcfce7;
    color: #15803d;

    border: 1px solid #bbf7d0;
}

.profile-student-status.inactive {
    background: #f1f5f9;
    color: #64748b;

    border: 1px solid #dbe3ec;
}

.profile-student-status.transferred {
    background: #fef3c7;
    color: #b45309;

    border: 1px solid #fde68a;
}

.profile-student-status.graduated {
    background: #ede9fe;
    color: #6d28d9;

    border: 1px solid #ddd6fe;
}

.profile-edit-button {
    background: rgba(255, 255, 255, 0.96);
    color: #4338ca;

    border:
        1px solid rgba(255, 255, 255, 0.70);

    box-shadow:
        0 8px 18px rgba(22, 32, 95, 0.18);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.profile-edit-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 23px rgba(22, 32, 95, 0.25);
}

.profile-back-button {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;

    border:
        1px solid rgba(255, 255, 255, 0.22);

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.profile-back-button:hover {
    background: rgba(255, 255, 255, 0.20);

    transform: translateY(-1px);
}


/* =====================================================
   PROFILE SUMMARY CARDS
===================================================== */

.student-profile-summary-grid {
    width: 100%;

    margin-bottom: 22px;

    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 17px;
}

.student-profile-summary-card {
    position: relative;

    min-width: 0;
    min-height: 135px;

    padding: 20px;

    display: flex;
    align-items: center;
    gap: 15px;

    background: #ffffff;

    border: 1px solid #d7deed;
    border-radius: 19px;

    box-shadow:
        0 10px 24px rgba(15, 23, 42, 0.10),
        0 18px 36px rgba(59, 72, 120, 0.10);

    overflow: hidden;

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.student-profile-summary-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 15px 30px rgba(15, 23, 42, 0.13),
        0 22px 40px rgba(59, 72, 120, 0.14);
}

.student-profile-summary-card::after {
    content: "";

    position: absolute;
    top: -35px;
    right: -35px;

    width: 105px;
    height: 105px;

    border-radius: 50%;

    opacity: 0.45;
}

.student-profile-summary-card.blue::after {
    background: #2563eb;
}

.student-profile-summary-card.purple::after {
    background: #7c3aed;
}

.student-profile-summary-card.cyan::after {
    background: #0891b2;
}

.student-profile-summary-card.status-card::after {
    background: #f59e0b;
}

.student-profile-summary-card > span {
    width: 54px;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 16px;

    font-size: 25px;
}

.student-profile-summary-card.blue > span {
    background: #eaf1ff;
}

.student-profile-summary-card.purple > span {
    background: #f1eaff;
}

.student-profile-summary-card.cyan > span {
    background: #e5f8fb;
}

.student-profile-summary-card.status-card > span {
    background: #fff7df;
}

.student-profile-summary-card > div {
    min-width: 0;

    display: flex;
    flex-direction: column;
}

.student-profile-summary-card small {
    color: #778398;

    font-size: 13px;
    font-weight: 750;
}

.student-profile-summary-card strong {
    margin-top: 4px;

    color: #1f2937;

    font-size: 20px;
    font-weight: 900;
    line-height: 1.25;

    overflow-wrap: anywhere;
}

.student-profile-summary-card strong.low {
    color: #15803d;
}

.student-profile-summary-card strong.medium {
    color: #b45309;
}

.student-profile-summary-card strong.high {
    color: #be123c;
}

.student-profile-summary-card strong.not-assessed {
    color: #64748b;
}

.student-profile-summary-card p {
    margin: 3px 0 0;

    color: #94a3b8;

    font-size: 12px;
    line-height: 1.4;
}


/* =====================================================
   TWO COLUMN PROFILE SECTIONS
===================================================== */

.student-profile-two-column {
    width: 100%;

    margin-bottom: 22px;

    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    align-items: start;
    gap: 20px;
}


/* =====================================================
   PROFILE PANELS
===================================================== */

.student-profile-panel {
    width: 100%;
    min-width: 0;

    margin-bottom: 22px;
    padding:
        clamp(19px, 2.4vw, 27px);

    background: #ffffff;

	border: 1px solid #d7deed;

	box-shadow:
		0 10px 25px rgba(15, 23, 42, 0.09),
		0 18px 38px rgba(59, 72, 120, 0.08);
		
    border-radius: 21px;
}

.student-profile-two-column .student-profile-panel {
    margin-bottom: 0;
}

.student-profile-panel-header {
    width: 100%;

    margin-bottom: 19px;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.student-profile-panel-header > div {
    min-width: 0;
}

.student-profile-panel-header h2 {
    margin: 0;

    color: #172033;

    font-size:
        clamp(20px, 2vw, 23px);

    font-weight: 850;
    line-height: 1.3;
}

.student-profile-panel-header p {
    margin: 5px 0 0;

    color: #7f8a9d;

    font-size: 13px;
    line-height: 1.5;
}

.student-profile-panel-header > span {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background:
        linear-gradient(
            135deg,
            #e5edff,
            #eee5ff
        );

    border-radius: 13px;

    font-size: 21px;
}


/* =====================================================
   PROFILE INFORMATION GRID
===================================================== */

.student-profile-info-grid {
    width: 100%;

    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;
}

.student-profile-info-grid > div {
    min-width: 0;
    min-height: 79px;

    padding: 13px;

    display: flex;
    flex-direction: column;

    background:
        linear-gradient(
            135deg,
            #fafbff,
            #f8f7ff
        );

    border: 1px solid #e7eaf3;
    border-radius: 13px;
}

.student-profile-info-grid > div.full-width {
    grid-column: 1 / -1;
}

.student-profile-info-grid small {
    color: #8a95a8;

    font-size: 12px;
    font-weight: 750;
    text-transform: uppercase;
}

.student-profile-info-grid strong {
    margin-top: 7px;

    color: #2d374b;

    font-size: 14px;
    font-weight: 750;
    line-height: 1.55;

    overflow-wrap: anywhere;
}


/* =====================================================
   SUBJECT PERFORMANCE
===================================================== */

.subject-performance-grid {
    width: 100%;

    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 15px;
}

.subject-performance-card {
    min-width: 0;
    padding: 16px;

    background:
        linear-gradient(
            135deg,
            #f8faff,
            #f7f4ff
        );

    border: 1px solid #e4e8f2;
    border-radius: 15px;
}

.subject-performance-top {
    width: 100%;

    margin-bottom: 12px;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.subject-performance-top > div {
    min-width: 0;

    display: flex;
    flex-direction: column;
}

.subject-performance-top strong {
    color: #263247;

    font-size: 15px;
    font-weight: 850;
    line-height: 1.4;

    overflow-wrap: anywhere;
}

.subject-performance-top small {
    margin-top: 3px;

    color: #8a95a8;

    font-size: 14px;
}

.subject-performance-top b {
    flex-shrink: 0;

    color: #4f46e5;

    font-size: 18px;
    font-weight: 900;
}

.subject-performance-bar {
    width: 100%;
    height: 9px;

    margin-bottom: 9px;

    background: #e2e7f1;

    border-radius: 20px;

    overflow: hidden;
}

.subject-performance-bar span {
    display: block;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            #2563eb,
            #7c3aed
        );

    border-radius: inherit;
}

.subject-latest-date {
    color: #8a95a8;

    font-size: 12px;
}


/* =====================================================
   PROFILE TABLE
===================================================== */

.student-profile-table-wrapper {
    width: 100%;

    overflow-x: auto;
    overflow-y: hidden;

    border: 1px solid #e5e9f1;
    border-radius: 15px;

    -webkit-overflow-scrolling: touch;
}

.student-profile-table {
    width: 100%;
    min-width: 920px;

    border-collapse: collapse;

    background: #ffffff;
}

.student-profile-table th,
.student-profile-table td {
    padding: 13px 14px;

    border-bottom: 1px solid #edf0f5;

    text-align: left;
    vertical-align: middle;

    white-space: nowrap;
}

.student-profile-table th {
    background:
        linear-gradient(
            180deg,
            #f7f8fc,
            #f2f4f8
        );

    color: #64748b;

    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.student-profile-table td {
    color: #4b5563;

    font-size: 14px;
}

.student-profile-table td strong {
    color: #253044;

    font-size: 14px;
}

.student-profile-table tbody tr:hover {
    background: #fafbff;
}

.student-profile-table tbody tr:last-child td {
    border-bottom: none;
}

.assessment-percentage {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 6px 9px;

    background: #eef2ff;
    color: #4f46e5;

    border-radius: 20px;

    font-size: 13px;
    font-weight: 850;
}

.profile-empty-table {
    height: 130px;

    color: #94a3b8 !important;

    text-align: center !important;
}


/* =====================================================
   CURRENT STUDENT STATUS
===================================================== */

.profile-current-status {
    width: 100%;
    padding: 17px;

    border-radius: 16px;
}

.profile-current-status.low {
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
}

.profile-current-status.medium {
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.profile-current-status.high {
    background: #fff1f2;
    border: 1px solid #fecdd3;
}

.profile-status-level {
    width: 100%;

    margin-bottom: 15px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.profile-status-level span {
    color: #64748b;

    font-size: 12px;
    font-weight: 750;
}

.profile-status-level strong {
    padding: 7px 12px;

    border-radius: 20px;

    font-size: 13px;
    font-weight: 900;
}

.profile-current-status.low
.profile-status-level strong {
    background: #dcfce7;
    color: #15803d;
}

.profile-current-status.medium
.profile-status-level strong {
    background: #fef3c7;
    color: #b45309;
}

.profile-current-status.high
.profile-status-level strong {
    background: #ffe4e6;
    color: #be123c;
}

.profile-status-score-grid {
    width: 100%;

    margin-bottom: 14px;

    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 9px;
}

.profile-status-score-grid > div {
    min-width: 0;
    padding: 12px;

    display: flex;
    flex-direction: column;

    background:
        rgba(255, 255, 255, 0.72);

    border-radius: 11px;
}

.profile-status-score-grid small {
    color: #7b879c;

    font-size: 12px;
    font-weight: 750;
}

.profile-status-score-grid strong {
    margin-top: 4px;

    color: #263247;

    font-size: 19px;
    font-weight: 900;
}

.profile-status-recommendation {
    padding: 12px;

    background:
        rgba(255, 255, 255, 0.72);

    border-radius: 11px;
}

.profile-status-recommendation small {
    color: #7b879c;

    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.profile-status-recommendation p {
    margin: 6px 0 0;

    color: #364152;

    font-size: 13px;
    line-height: 1.6;
}

.profile-status-footer {
    margin-top: 12px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 7px;

    color: #7b879c;

    font-size: 12px;
}


/* =====================================================
   BEHAVIOUR RECORDS
===================================================== */

.profile-behaviour-list {
    width: 100%;

    display: flex;
    flex-direction: column;
    gap: 11px;
}

.profile-behaviour-item {
    width: 100%;
    padding: 14px;

    background:
        linear-gradient(
            135deg,
            #fafbff,
            #f8f7ff
        );

    border: 1px solid #e5e9f2;
    border-radius: 14px;
}

.profile-behaviour-top {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.profile-behaviour-type {
    padding: 6px 9px;

    display: inline-flex;
    align-items: center;

    border-radius: 20px;

    font-size: 12px;
    font-weight: 850;
}

.profile-behaviour-type.active {
    background: #dcfce7;
    color: #15803d;
}

.profile-behaviour-type.passive {
    background: #e0f2fe;
    color: #0369a1;
}

.profile-behaviour-type.does-not-focus {
    background: #fef3c7;
    color: #b45309;
}

.profile-behaviour-type.needs-attention {
    background: #ffedd5;
    color: #c2410c;
}

.profile-behaviour-type.disruptive {
    background: #ffe4e6;
    color: #be123c;
}

.profile-behaviour-top time {
    flex-shrink: 0;

    color: #94a3b8;

    font-size: 12px;
}

.profile-behaviour-item > p {
    margin: 10px 0;

    color: #3c4658;

    font-size: 12px;
    line-height: 1.55;
}

.profile-behaviour-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;

    color: #8a95a8;

    font-size: 12px;
}


/* =====================================================
   REPORTS
===================================================== */

.profile-report-list {
    width: 100%;

    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-report-item {
    width: 100%;
    padding: 13px;

    display: flex;
    align-items: center;
    gap: 12px;

    background:
        linear-gradient(
            135deg,
            #fafbff,
            #f8f7ff
        );

    border: 1px solid #e5e9f2;
    border-radius: 14px;
}

.profile-report-icon {
    width: 43px;
    height: 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background:
        linear-gradient(
            135deg,
            #e0eaff,
            #ede4ff
        );

    border-radius: 12px;

    font-size: 20px;
}

.profile-report-info {
    min-width: 0;

    display: flex;
    flex-direction: column;

    flex: 1;
}

.profile-report-info strong {
    color: #283348;

    font-size: 14px;
    font-weight: 850;
    line-height: 1.4;

    overflow-wrap: anywhere;
}

.profile-report-info span {
    margin-top: 3px;

    color: #8a95a8;

    font-size: 12px;
}

.profile-report-button,
.profile-report-unavailable {
    min-height: 35px;
    padding: 7px 11px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 9px;

    font-size: 14px;
    font-weight: 850;
}

.profile-report-button {
    background: #eef2ff;
    color: #4f46e5;

    border: 1px solid #dfe3ff;

    text-decoration: none;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.profile-report-button:hover {
    background: #4f46e5;
    color: #ffffff;

    transform: translateY(-1px);
}

.profile-report-unavailable {
    background: #f1f5f9;
    color: #94a3b8;

    border: 1px solid #e2e8f0;
}


/* =====================================================
   EMPTY STATES
===================================================== */

.student-profile-empty-state {
    width: 100%;
    min-height: 160px;
    padding: 20px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    grid-column: 1 / -1;

    color: #94a3b8;

    text-align: center;
}

.student-profile-empty-state.small {
    min-height: 180px;
}

.student-profile-empty-state > span {
    font-size: 34px;
}

.student-profile-empty-state > strong {
    margin-top: 8px;

    color: #64748b;

    font-size: 13px;
}

.student-profile-empty-state > p {
    max-width: 350px;

    margin: 5px 0 0;

    color: #94a3b8;

    font-size: 12px;
    line-height: 1.5;
}


/* =====================================================
   MEDIUM LAPTOP
===================================================== */

@media (max-width: 1250px) {

    .student-profile-summary-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .subject-performance-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 900px) {

    .student-profile-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .student-profile-header-actions {
        width: 100%;

        justify-content: flex-start;
    }

    .student-profile-two-column {
        grid-template-columns: 1fr;
    }
}


/* =====================================================
   SMALL TABLET
===================================================== */

@media (max-width: 768px) {

    .student-profile-container {
        padding:
            14px 14px 28px;
    }

    .student-profile-topbar {
        min-height: 66px;

        padding-left: 14px;
        padding-right: 14px;
    }

    .student-profile-brand img {
        width: 43px;
        height: 43px;
    }

    .student-profile-brand strong {
        font-size: 18px;
    }

    .student-profile-main {
        min-height: calc(100dvh - 66px);
    }

    .subject-performance-grid {
        grid-template-columns: 1fr;
    }
}


/* =====================================================
   PHONE
===================================================== */

@media (max-width: 600px) {

    .student-profile-container {
        padding:
            11px 11px 25px;
    }

    .student-profile-topbar {
        gap: 10px;
    }

    .student-profile-account > div {
        display: none;
    }

    .student-profile-logout {
        min-height: 38px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .student-profile-header {
        margin-bottom: 16px;
        padding: 19px 16px;

        border-radius: 19px;
    }

    .student-profile-header-left {
        width: 100%;

        align-items: flex-start;
        flex-direction: column;

        gap: 13px;
    }

    .student-profile-avatar,
    .student-profile-photo {
        width: 76px;
        height: 76px;

        border-radius: 18px;
    }

    .student-profile-avatar {
        font-size: 28px;
    }

    .student-profile-heading h1 {
        font-size: 25px;
    }

    .student-profile-heading-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .student-profile-heading-meta span {
        width: 100%;

        overflow-wrap: anywhere;
    }

    .student-profile-header-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .profile-student-status,
    .profile-edit-button,
    .profile-back-button {
        width: 100%;
    }

    .student-profile-summary-grid {
        margin-bottom: 16px;

        grid-template-columns: 1fr;

        gap: 11px;
    }

    .student-profile-summary-card {
        min-height: 108px;
        padding: 16px;
    }

    .student-profile-summary-card > span {
        width: 49px;
        height: 49px;

        font-size: 22px;
    }

    .student-profile-two-column {
        margin-bottom: 16px;

        gap: 16px;
    }

    .student-profile-panel {
        margin-bottom: 16px;
        padding: 16px;

        border-radius: 18px;
    }

    .student-profile-panel-header {
        margin-bottom: 15px;
    }

    .student-profile-panel-header > span {
        width: 39px;
        height: 39px;

        font-size: 18px;
    }

    .student-profile-info-grid {
        grid-template-columns: 1fr;
    }

    .student-profile-info-grid > div.full-width {
        grid-column: auto;
    }

    .student-profile-table {
        min-width: 830px;
    }

    .profile-status-score-grid {
        grid-template-columns: 1fr;
    }

    .profile-status-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-report-item {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .profile-report-info {
        width: calc(100% - 58px);
    }

    .profile-report-button,
    .profile-report-unavailable {
        width: 100%;
    }
}


/* =====================================================
   VERY SMALL PHONE
===================================================== */

@media (max-width: 380px) {

    .student-profile-container {
        padding-left: 8px;
        padding-right: 8px;
    }

    .student-profile-topbar {
        padding-left: 10px;
        padding-right: 10px;
    }

    .student-profile-brand span {
        display: none;
    }

    .student-profile-header,
    .student-profile-panel {
        padding-left: 13px;
        padding-right: 13px;
    }

    .student-profile-heading h1 {
        font-size: 22px;
    }

    .student-profile-info-grid > div {
        padding-left: 11px;
        padding-right: 11px;
    }
}


/* =====================================================
   LANDSCAPE PHONE
===================================================== */

@media (max-height: 500px) and (orientation: landscape) {

    .student-profile-topbar {
        position: relative;
    }

    .student-profile-header {
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .student-profile-avatar,
    .student-profile-photo {
        width: 68px;
        height: 68px;
    }
}


/* =====================================================
   PRINT
===================================================== */

@media print {

    body.student-profile-page {
        background: #ffffff;
    }

    .sidebar,
    .sidebar-open-button,
    .sidebar-overlay,
    .student-profile-topbar,
    .student-profile-header-actions {
        display: none !important;
    }

    .main-content,
    .student-profile-main {
        width: 100% !important;
        min-height: auto !important;

        margin-left: 0 !important;
        padding: 0 !important;
    }

    .student-profile-container {
        max-width: none;
        padding: 0;
    }

    .student-profile-header,
    .student-profile-panel,
    .student-profile-summary-card {
        break-inside: avoid;

        box-shadow: none;
    }

    .student-profile-table-wrapper {
        overflow: visible;
    }

    .student-profile-table {
        min-width: 0;
        font-size: 12px;
    }
}

/* =========================================================
   TEACHER MANAGEMENT
========================================================= */

/* Main container used by the Teacher Management page */
.students-container {
    width: 100%;
    max-width: 1600px;

    margin: 0 auto;

    padding:
        clamp(20px, 3vw, 38px);
}

/* =========================================================
   HEADER
========================================================= */

.students-header {
    width: 100%;
    margin-bottom: 24px;
    padding: clamp(22px, 3vw, 34px);

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;

    background: linear-gradient(
        135deg,
        #1d4ed8,
        #6d42dc
    );

    border-radius: 24px;

    color: #ffffff;

    box-shadow:
        0 18px 40px rgba(54, 70, 170, 0.20);
}

.students-header-label {
    display: inline-block;

    margin-bottom: 8px;
    padding: 6px 11px;

    background: rgba(255, 255, 255, 0.14);

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;

    color: rgba(255, 255, 255, 0.92);

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.students-header h1 {
    margin: 0;

    color: #ffffff;

    font-size: clamp(26px, 3.2vw, 40px);
    font-weight: 900;
    line-height: 1.2;
}

.students-header p {
    max-width: 650px;

    margin: 8px 0 0;

    color: rgba(255, 255, 255, 0.85);

    font-size: clamp(14px, 1.5vw, 15px);
    line-height: 1.6;
}

/* =========================================================
   SUMMARY CARDS
========================================================= */

.student-summary-grid {
    width: 100%;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;

    margin-bottom: 24px;
}

.student-summary-card {
    position: relative;

    min-width: 0;
    min-height: 135px;

    padding: 21px;

    display: flex;
    align-items: center;
    gap: 16px;

    background: #ffffff;

    border: 1px solid #e8ecf5;
    border-radius: 20px;

    box-shadow:
        0 12px 28px rgba(59, 72, 120, 0.09);

    overflow: hidden;

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.student-summary-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 18px 34px rgba(59, 72, 120, 0.14);
}

.summary-icon {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: #edf2ff;

    border-radius: 17px;

    font-size: 27px;
}

.student-summary-card span {
    display: block;

    color: #64748b;

    font-size: 14px;
    font-weight: 700;
}

.student-summary-card h2 {
    margin: 4px 0 2px;

    color: #172033;

    font-size: 31px;
    font-weight: 900;
}

.student-summary-card p {
    margin: 0;

    color: #94a3b8;

    font-size: 13px;
}

/* =========================================================
   PANEL
========================================================= */

.student-panel {
    width: 100%;

    margin-bottom: 24px;

    padding: clamp(19px, 2.4vw, 27px);

    background: #ffffff;

    border: 1px solid #e7ebf4;
    border-radius: 22px;

    box-shadow:
        0 12px 30px rgba(57, 68, 109, 0.08);
}

.student-panel-header {
    width: 100%;

    margin-bottom: 20px;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 16px;
}

.student-panel-header h2 {
    margin: 0;

    color: #172033;

    font-size: clamp(19px, 2vw, 23px);
    font-weight: 850;
}

.student-panel-header p {
    margin: 5px 0 0;

    color: #7b879c;

    font-size: 14px;
    line-height: 1.5;
}

/* =========================================================
   FORM
========================================================= */

.student-form {
    width: 100%;
}

.student-form-grid {
    width: 100%;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 17px;
}

.form-group {
    min-width: 0;

    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 7px;

    color: #475569;

    font-size: 15px;
    font-weight: 700;
}

.form-group input,
.form-group select {
    width: 100%;
    min-height: 48px;

    padding: 11px 13px;

    background: #ffffff;
    color: #1f2937;

    border: 1px solid #dfe4ee;
    border-radius: 12px;

    outline: none;

    font-family: inherit;
    font-size: 15px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #4f46e5;

    box-shadow:
        0 0 0 4px rgba(79, 70, 229, 0.11);
}

/* =========================================================
   FORM BUTTONS
========================================================= */

.student-form-actions {
    margin-top: 20px;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 10px;
}

.primary-button,
.secondary-button,
.edit-button,
.delete-button {
    min-height: 40px;

    padding: 9px 14px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    font-size: 13px;
    font-weight: 800;

    text-decoration: none;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.primary-button {
    border: none;

    background: linear-gradient(
        135deg,
        #2563eb,
        #6d42dc
    );

    color: #ffffff;

    box-shadow:
        0 8px 18px rgba(37, 99, 235, 0.20);
}

.primary-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 11px 22px rgba(37, 99, 235, 0.28);
}

.secondary-button {
    background: #ffffff;
    color: #475569;

    border: 1px solid #dfe4ee;
}

.secondary-button:hover {
    background: #f8faff;
}

.edit-button {
    border: none;

    background: #ede9fe;
    color: #6d28d9;
}

.edit-button:hover {
    background: #ddd6fe;
}

.delete-button {
    border: none;

    background: #fee2e2;
    color: #dc2626;
}

.delete-button:hover {
    background: #fecaca;
}

/* =========================================================
   TABLE
========================================================= */

.students-table-wrapper {
    width: 100%;

    overflow-x: auto;

    background: #ffffff;

    border: 1px solid #e5e9f2;
    border-radius: 15px;

    -webkit-overflow-scrolling: touch;
}

.students-table {
    width: 100%;
    min-width: 1050px;

    border-collapse: collapse;
}

.students-table thead {
    background: #f5f7fb;
}

.students-table th,
.students-table td {
    padding: 14px 13px;

    border-bottom: 1px solid #edf0f5;

    text-align: left;
    vertical-align: middle;
}

.students-table th {
    color: #475569;

    font-size: 14px;
    font-weight: 800;

    white-space: nowrap;
}

.students-table td {
    color: #64748b;

    font-size: 13px;
    line-height: 1.45;
}

.students-table td strong {
    color: #1f2937;

    font-weight: 800;
}

.students-table tbody tr {
    transition: background 0.2s ease;
}

.students-table tbody tr:hover {
    background: #f9faff;
}

/* =========================================================
   ACTION COLUMN
========================================================= */

.students-table td:last-child {
    white-space: nowrap;
}

.students-table td:last-child form {
    display: inline-flex !important;

    margin: 2px;
}

.students-table td:last-child > a {
    margin: 2px;
}

/* =========================================================
   ACCOUNT STATUS
========================================================= */

.status {
    min-width: 72px;

    padding: 6px 10px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 20px;

    font-size: 12px;
    font-weight: 800;
}

.status.active {
    background: #dcfce7;
    color: #15803d;
}

.status.inactive {
    background: #fee2e2;
    color: #b91c1c;
}

/* =========================================================
   RESPONSIVE TABLET
========================================================= */

@media (max-width: 1000px) {

    .student-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================================================
   RESPONSIVE PHONE
========================================================= */

@media (max-width: 700px) {

    .students-container {
        padding: 16px 12px 28px;
    }

    .students-header {
        padding: 22px 18px;

        border-radius: 19px;
    }

    .students-header h1 {
        font-size: 26px;
    }

    .student-summary-grid {
        grid-template-columns: 1fr;
    }

    .student-summary-card {
        min-height: 110px;

        padding: 17px;
    }

    .summary-icon {
        width: 50px;
        height: 50px;

        font-size: 23px;
    }

    .student-summary-card h2 {
        font-size: 27px;
    }

    .student-panel {
        padding: 17px 14px;

        border-radius: 17px;
    }

    .student-panel-header {
        flex-direction: column;
    }

    .student-form-grid {
        grid-template-columns: 1fr;
    }

    .student-form-actions {
        flex-direction: column;
    }

    .student-form-actions .primary-button,
    .student-form-actions .secondary-button {
        width: 100%;
    }

    .students-table th {
        font-size: 13px;
    }

    .students-table td {
        font-size: 12px;
    }
}

/* =========================================================
   SMALL PHONE
========================================================= */

@media (max-width: 380px) {

    .students-container {
        padding-left: 9px;
        padding-right: 9px;
    }

    .students-header {
        padding: 19px 15px;
    }

    .primary-button,
    .secondary-button,
    .edit-button,
    .delete-button {
        font-size: 12px;
    }
}

/* =========================================================
   TEACHER SEARCH & FILTER
========================================================= */

.teacher-filter-form {
    width: 100%;

    margin-bottom: 18px;

    display: grid;
    grid-template-columns:
        minmax(250px, 1fr)
        minmax(150px, 200px)
        auto
        auto;

    gap: 10px;

    align-items: center;
}

.teacher-search-box,
.teacher-status-filter {
    width: 100%;
}

.teacher-search-box input,
.teacher-status-filter select {
    width: 100%;
    min-height: 44px;

    padding: 10px 13px;

    background: #ffffff;
    color: #1f2937;

    border: 1px solid #dfe4ee;
    border-radius: 11px;

    outline: none;

    font-family: inherit;
    font-size: 14px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.teacher-search-box input:focus,
.teacher-status-filter select:focus {
    border-color: #4f46e5;

    box-shadow:
        0 0 0 4px
        rgba(79, 70, 229, 0.10);
}

/* Tablet */

@media (max-width: 850px) {

    .teacher-filter-form {
        grid-template-columns:
            1fr 1fr;
    }

    .teacher-filter-form .primary-button,
    .teacher-filter-form .secondary-button {
        width: 100%;
    }
}

/* Phone */

@media (max-width: 550px) {

    .teacher-filter-form {
        grid-template-columns: 1fr;
    }

    .teacher-filter-form .primary-button,
    .teacher-filter-form .secondary-button {
        width: 100%;
    }
}

.current-user-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 7px 11px;

    background: #eef2ff;
    color: #4f46e5;

    border-radius: 20px;

    font-size: 12px;
    font-weight: 800;
}

/* =====================================================
   SSMIS GLOBAL POPUP
   Shared popup styling for success and error messages
   throughout the system.
===================================================== */

/* Dark overlay behind the popup */
.system-popup-overlay {
    position: fixed;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(15, 23, 42, 0.60);

    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);

    z-index: 99999;

    animation: systemPopupFade 0.2s ease;
}


/* Main popup container */
.system-popup {
    width: 100%;
    max-width: 430px;

    padding: 30px 28px;

    background: #ffffff;

    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 20px;

    text-align: center;

    box-shadow:
        0 25px 70px rgba(15, 23, 42, 0.28);

    animation: systemPopupShow 0.25s ease;
}


/* Popup status icon */
.system-popup-icon {
    width: 62px;
    height: 62px;

    margin: 0 auto 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-size: 30px;
    font-weight: 800;
}


/* =====================================================
   ERROR POPUP
===================================================== */

.system-popup.error {
    border-top: 5px solid #dc2626;
}

.system-popup.error .system-popup-icon {
    background: #fee2e2;
    color: #dc2626;
}


/* =====================================================
   SUCCESS POPUP
===================================================== */

.system-popup.success {
    border-top: 5px solid #16a34a;
}

.system-popup.success .system-popup-icon {
    background: #dcfce7;
    color: #16a34a;
}


/* =====================================================
   POPUP TEXT
===================================================== */

.system-popup h3 {
    margin: 0 0 10px;

    color: #111827;

    font-size: 22px;
    font-weight: 800;
}

.system-popup p {
    margin: 0 0 24px;

    color: #4b5563;

    font-size: 14px;
    line-height: 1.6;

    overflow-wrap: anywhere;
}


/* =====================================================
   POPUP BUTTON
===================================================== */

.system-popup-button {
    min-width: 120px;

    padding: 11px 24px;

    border: none;
    border-radius: 10px;

    color: #ffffff;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


/* Error popup button */
.system-popup.error .system-popup-button {
    background: #dc2626;
}

.system-popup.error .system-popup-button:hover {
    background: #b91c1c;
}


/* Success popup button */
.system-popup.success .system-popup-button {
    background: #16a34a;
}

.system-popup.success .system-popup-button:hover {
    background: #15803d;
}

.system-popup-button:hover {
    transform: translateY(-1px);
}


/* =====================================================
   POPUP ANIMATIONS
===================================================== */

@keyframes systemPopupFade {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes systemPopupShow {

    from {
        opacity: 0;

        transform:
            translateY(12px)
            scale(0.97);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}


/* =====================================================
   POPUP RESPONSIVE DESIGN
   Adjusts popup size for mobile devices.
===================================================== */

@media (max-width: 600px) {

    .system-popup-overlay {
        padding: 16px;
    }

    .system-popup {
        max-width: 94vw;

        padding: 24px 20px;

        border-radius: 17px;
    }

    .system-popup-icon {
        width: 56px;
        height: 56px;

        font-size: 27px;
    }

    .system-popup h3 {
        font-size: 20px;
    }

    .system-popup p,
    .system-popup-button {
        font-size: 14px;
    }
}

/* =====================================================
   MANAGEMENT PAGE VISUAL EMPHASIS
   Improves contrast, card depth and text readability
   for Student and Teacher Management.
===================================================== */

/* Page background */
body.students-page {
    background: 
		linear-gradient(
            135deg,
            #c7ddf5 0%,
            #c8c7f5 68%,
            #dfc7f5 100%
        );
    color: #111827;
}


/* =====================================================
   MAIN PANELS
===================================================== */

.students-panel,
.student-panel {
    background: #ffffff;

    border: 1px solid #d9e0ef;

    box-shadow:
        0 10px 24px rgba(15, 23, 42, 0.08),
        0 18px 38px rgba(59, 72, 120, 0.12);
}


/* Panel headings */
.students-panel-header h2,
.student-panel-header h2 {
    color: #111827;
    font-weight: 900;
}

.students-panel-header p,
.student-panel-header p {
    color: #374151;
}


/* =====================================================
   TEACHER SUMMARY CARDS
===================================================== */

.student-summary-card {
    background: #ffffff;

    border: 1px solid #d9e0ef;

    box-shadow:
        0 10px 24px rgba(15, 23, 42, 0.10),
        0 18px 36px rgba(59, 72, 120, 0.12);
}

.student-summary-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 16px 30px rgba(15, 23, 42, 0.12),
        0 24px 42px rgba(59, 72, 120, 0.18);
}

.student-summary-card span {
    color: #111827;
}

.student-summary-card h2 {
    color: #111827;
}

.student-summary-card p {
    color: #374151;
}


/* Summary card icon */
.summary-icon {
    background: #dfe7ff;
}


/* =====================================================
   FORMS
===================================================== */

.student-form-section-title h3 {
    color: #111827;
}

.student-form-section-title p {
    color: #374151;
}

.student-field label,
.form-group label {
    color: #111827;
}

.student-field small {
    color: #4b5563;
}


/* =====================================================
   SEARCH AND FILTER
===================================================== */

.students-search-box,
.teacher-search-box,
.teacher-status-filter {
    background: #ffffff;
}

.students-search-box input,
.teacher-search-box input,
.teacher-status-filter select,
.students-filter-form > select {
    color: #111827;
}


/* =====================================================
   TABLES
===================================================== */

.students-table-wrapper {
    background: #ffffff;

    border-color: #d9e0ef;

    box-shadow:
        0 8px 20px rgba(15, 23, 42, 0.06);
}

.students-table th {
    color: #111827;
    font-weight: 850;
}

.students-table td {
    color: #111827;
}

.students-person strong,
.students-table td strong {
    color: #111827;
}

.students-person small,
.students-table-subtext {
    color: #4b5563;
}

.students-table tbody tr:hover {
    background: #f3f6ff;
}

/* =====================================================
   FULL NAME DISPLAY
===================================================== */

/* Full student name in Dashboard */
.dashboard-student strong {
    max-width: none;

    white-space: normal;

    overflow: visible;
    text-overflow: clip;

    overflow-wrap: anywhere;
}


/* Full student/teacher name in management tables */
.students-person strong {
    max-width: none;

    white-space: nowrap;

    overflow: visible;
    text-overflow: clip;

    overflow-wrap: normal;

    color: #111827;

    font-size: 14px;
    font-weight: 800;
}


/* Allow long table content to wrap when required */
.dashboard-student,
.students-person {
    min-width: 180px;
}


/* Keep the last row border visible */
.dashboard-table tbody tr:last-child td,
.students-table tbody tr:last-child td,
.student-profile-table tbody tr:last-child td {
    border-bottom: 1px solid #d6deeb;
}

/* Kekalkan saiz table supaya column tidak berhimpit */
.students-table {
    width: 100%;
    min-width: 950px;
    border-collapse: collapse;
}

/* Table content */
.students-table td {
    font-size: 14px !important;
}

/* Student name sentiasa satu baris */
.students-person strong {
    max-width: none;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: normal;

    color: #111827;
    font-size: 15px;
    font-weight: 800;
}

.dashboard-table .status-badge,
.dashboard-table .action-btn,
.dashboard-table .btn {
    font-size: 13px !important;
}

.student-status-page .dashboard-stat-card.yellow::after {
    background: rgba(245, 158, 11, 0.18);
}

.student-status-page .dashboard-stat-card.yellow .dashboard-stat-icon {
    background: #fff3cd;
}

/* =========================================================
   TEACHER MANAGEMENT
========================================================= */


/* 3 summary cards */
.teacher-page .teacher-dashboard-stats {
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
}


/* =========================================================
   TEACHER FILTER
========================================================= */

.teacher-page .teacher-filter-form {
    grid-template-columns:
        minmax(260px, 1fr)
        190px
        auto
        auto;

    gap: 10px;
}


.teacher-page .teacher-search-box input,
.teacher-page .teacher-status-filter select {
    min-height: 46px;

    font-size: 14px;
}


.teacher-page .teacher-filter-form .primary-button,
.teacher-page .teacher-filter-form .secondary-button {
    min-height: 46px;

    font-size: 13px;

    white-space: nowrap;
}


/* =========================================================
   TEACHER TABLE
========================================================= */

/* Horizontal scroll */
.teacher-page .students-table-wrapper {
    width: 100%;

    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}


/* Table width */
.teacher-page .students-table {
    width: 100%;
    min-width: 1150px;

    border-collapse: collapse;
}


/* Header */
.teacher-page .students-table th {
    padding: 14px 13px;

    font-size: 14px !important;
    font-weight: 850;

    white-space: nowrap;

    vertical-align: middle;
}


/* Main table content */
.teacher-page .students-table td {
    padding: 14px 13px;

    color: #111827;

    font-size: 14px !important;
    line-height: 1.45;

    vertical-align: middle;
}


/* No. IC */
.teacher-page .students-table td:nth-child(2) {
    white-space: nowrap;
}


/* Teacher Name */
.teacher-page .students-table td:nth-child(3),
.teacher-page .students-table td:nth-child(3) strong {
    color: #111827;

    font-size: 14px !important;
    font-weight: 800;

    white-space: nowrap !important;

    overflow: visible;
    text-overflow: clip;

    overflow-wrap: normal !important;
}


/* Email */
.teacher-page .students-table td:nth-child(4) {
    white-space: nowrap;
}


/* Phone */
.teacher-page .students-table td:nth-child(5) {
    white-space: nowrap;
}


/* Status */
.teacher-page .students-table td:nth-child(6) {
    white-space: nowrap;
}


/* Action */
.teacher-page .students-table td:nth-child(7) {
    white-space: nowrap;
}


/* Status badge */
.teacher-page .student-status-badge {
    font-size: 13px !important;
    font-weight: 800;
}


/* Current user badge */
.teacher-page .current-user-label {
    font-size: 13px !important;
}


/* Actions */
.teacher-page .teacher-action-buttons {
    display: flex;
    align-items: center;

    gap: 6px;

    flex-wrap: nowrap;
}


.teacher-page .teacher-action-buttons form {
    margin: 0;

    display: inline-flex !important;
}


.teacher-page .teacher-action-buttons .edit-button,
.teacher-page .teacher-action-buttons .delete-button {
    min-height: 34px;

    padding: 7px 10px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 13px !important;
    font-weight: 800;

    white-space: nowrap;
}


/* Row hover - same as Students */
.teacher-page .students-table tbody tr {
    transition: background 0.18s ease;
}


.teacher-page .students-table tbody tr:hover {
    background: #f3f6ff;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media screen and (max-width: 1000px) {

    .teacher-page .teacher-dashboard-stats {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media screen and (max-width: 850px) {

    .teacher-page .teacher-filter-form {
        grid-template-columns:
            1fr 1fr;
    }

}


@media screen and (max-width: 600px) {

    .teacher-page .teacher-dashboard-stats {
        grid-template-columns: 1fr;
    }


    .teacher-page .teacher-filter-form {
        grid-template-columns: 1fr;
    }

}

/* =========================================================
   SIDEBAR USER PROFILE LINK
========================================================= */

.sidebar-user-link {
    padding: 8px 9px;

    color: inherit;
    text-decoration: none;

    border-radius: 12px;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.sidebar-user-link:hover {
    background: rgba(255, 255, 255, 0.10);

    transform: translateY(-1px);
}


/* Bila sedang berada di User Profile */
.sidebar-user-link.active {
    background: rgba(99, 102, 241, 0.22);

    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

@media screen and (max-width: 700px) {

    .student-profile-account strong {
        max-width: 180px;

        white-space: normal;
        text-align: right;
    }

}

/* =========================================================
   STUDENT PORTAL - ACADEMIC PERFORMANCE
========================================================= */

.student-self-profile .subject-performance-grid {
    gap: 16px;
}


.student-self-profile .subject-performance-card {
    min-width: 0;

    padding: 17px;

    background:
		linear-gradient(
            135deg,
            #f3e8ff,
            #ede9fe
        );

    border: 1px solid #d7deed;
    border-radius: 15px;

    box-shadow:
        0 7px 18px rgba(15, 23, 42, 0.07);

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}


.student-self-profile .subject-performance-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 11px 24px rgba(15, 23, 42, 0.11);
}


/* Subject name */
.student-self-profile .subject-performance-top strong {
    color: #111827;

    font-size: 15px;
    font-weight: 850;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Number of assessments */
.student-self-profile .subject-performance-top small {
    color: #64748b;

    font-size: 13px;
}


/* Average */
.student-self-profile .subject-performance-top b {
    color: #4f46e5;

    font-size: 19px;
    font-weight: 900;
}


/* Progress bar */
.student-self-profile .subject-performance-bar {
    height: 9px;

    background: #e7ebf3;
}


/* Latest date */
.student-self-profile .subject-latest-date {
    color: #64748b;

    font-size: 12px;
}

/* =========================================================
   STUDENT PORTAL - ASSESSMENT TABLE
========================================================= */

/* Horizontal scroll */
.student-self-profile .student-profile-table-wrapper {
    width: 100%;

    overflow-x: auto;
    overflow-y: hidden;

    -webkit-overflow-scrolling: touch;

    background: #ffffff;

    border: 1px solid #d7deed;
    border-radius: 15px;

    box-shadow:
        0 7px 18px rgba(15, 23, 42, 0.06);
}


/* Table */
.student-self-profile .student-profile-table {
    width: 100%;
    min-width: 1000px;

    border-collapse: collapse;

    background: #ffffff;
}


/* Header + content */
.student-self-profile .student-profile-table th,
.student-self-profile .student-profile-table td {
    padding: 14px 13px;

    border: 1px solid #d6deeb;

    vertical-align: middle;
}


/* Header */
.student-self-profile .student-profile-table th {
    background: #f5f7fb;

    color: #111827;

    font-size: 14px !important;
    font-weight: 850;

    text-align: center;

    white-space: nowrap;
}


/* Content */
.student-self-profile .student-profile-table td {
    color: #111827;

    font-size: 14px !important;
    line-height: 1.45;
}


/* Assessment title */
.student-self-profile .student-profile-table td:nth-child(1),
.student-self-profile .student-profile-table td:nth-child(1) strong {
    color: #111827;

    font-size: 14px !important;
    font-weight: 800;

    white-space: nowrap;
}


/* Subject */
.student-self-profile .student-profile-table td:nth-child(2) {
    white-space: nowrap;
}


/* Type */
.student-self-profile .student-profile-table td:nth-child(3) {
    white-space: nowrap;
}


/* Date */
.student-self-profile .student-profile-table td:nth-child(4) {
    white-space: nowrap;
}


/* Mark */
.student-self-profile .student-profile-table td:nth-child(5) {
    white-space: nowrap;

    text-align: center;
}


/* Percentage */
.student-self-profile .student-profile-table td:nth-child(6) {
    white-space: nowrap;

    text-align: center;
}


/* Remarks boleh wrap */
.student-self-profile .student-profile-table td:nth-child(7) {
    min-width: 180px;

    white-space: normal;
    overflow-wrap: anywhere;
}


/* Percentage badge */
.student-self-profile .assessment-percentage {
    padding: 6px 10px;

    background: #eef2ff;

    color: #4f46e5;

    border-radius: 20px;

    font-size: 13px !important;
    font-weight: 850;

    white-space: nowrap;
}


/* Hover sama macam page lain */
.student-self-profile .student-profile-table tbody tr {
    transition: background 0.18s ease;
}


.student-self-profile .student-profile-table tbody tr:hover {
    background: #f3f6ff;
}

/* =========================================================
   STUDENT PORTAL - CURRENT STUDENT STATUS
========================================================= */

.student-self-profile .profile-current-status {
    width: 100%;

    padding: 18px;

    border-radius: 16px;

    box-shadow:
        0 7px 18px rgba(15, 23, 42, 0.06);
}


/* LOW */
.student-self-profile .profile-current-status.low {
    background: #ecfdf3;

    border: 1px solid #bbf7d0;
}


/* MEDIUM */
.student-self-profile .profile-current-status.medium {
    background: #fffbeb;

    border: 1px solid #fde68a;
}


/* HIGH */
.student-self-profile .profile-current-status.high {
    background: #fff1f2;

    border: 1px solid #fecdd3;
}


/* Status label */
.student-self-profile .profile-status-level span {
    color: #64748b;

    font-size: 13px;
    font-weight: 750;
}


/* Status badge */
.student-self-profile .profile-status-level strong {
    padding: 7px 12px;

    border-radius: 20px;

    font-size: 13px !important;
    font-weight: 900;

    white-space: nowrap;
}


/* Correct badge colours */
.student-self-profile
.profile-current-status.low
.profile-status-level strong {
    background: #dcfce7;

    color: #15803d;
}


.student-self-profile
.profile-current-status.medium
.profile-status-level strong {
    background: #fef3c7;

    color: #b45309;
}


.student-self-profile
.profile-current-status.high
.profile-status-level strong {
    background: #ffe4e6;

    color: #be123c;
}


/* Score cards */
.student-self-profile .profile-status-score-grid {
    gap: 10px;
}


.student-self-profile .profile-status-score-grid > div {
    padding: 13px;

    background: rgba(255, 255, 255, 0.86);

    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 12px;
}


.student-self-profile .profile-status-score-grid small {
    color: #64748b;

    font-size: 12px;
    font-weight: 750;
}


.student-self-profile .profile-status-score-grid strong {
    margin-top: 4px;

    color: #172033;

    font-size: 20px;
    font-weight: 900;
}


/* Recommendation */
.student-self-profile .profile-status-recommendation {
    padding: 13px;

    background: rgba(255, 255, 255, 0.86);

    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 12px;
}


.student-self-profile .profile-status-recommendation small {
    color: #64748b;

    font-size: 12px;
    font-weight: 800;
}


.student-self-profile .profile-status-recommendation p {
    margin: 6px 0 0;

    color: #374151;

    font-size: 14px;
    line-height: 1.55;
}


/* Date + generated by */
.student-self-profile .profile-status-footer {
    margin-top: 13px;

    color: #64748b;

    font-size: 12px;
}

/* =========================================================
   STUDENT PORTAL - BEHAVIOUR RECORDS
========================================================= */

.student-self-profile .profile-behaviour-list {
    gap: 12px;
}


.student-self-profile .profile-behaviour-item {
    width: 100%;

    padding: 15px;

    background: #ffffff;

    border: 1px solid #dfe5f0;
    border-radius: 14px;

    box-shadow:
        0 5px 14px rgba(15, 23, 42, 0.05);

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}


.student-self-profile .profile-behaviour-item:hover {
    transform: translateY(-2px);

    border-color: #cfd8ec;

    box-shadow:
        0 9px 20px rgba(15, 23, 42, 0.09);
}


/* Behaviour type */
.student-self-profile .profile-behaviour-type {
    padding: 6px 10px;

    font-size: 13px !important;
    font-weight: 850;

    white-space: nowrap;
}


/* Date */
.student-self-profile .profile-behaviour-top time {
    color: #64748b;

    font-size: 12px;

    white-space: nowrap;
}


/* Behaviour note */
.student-self-profile .profile-behaviour-item > p {
    margin: 11px 0;

    color: #374151;

    font-size: 14px;
    line-height: 1.55;
}


/* Subject + Teacher */
.student-self-profile .profile-behaviour-footer {
    color: #64748b;

    font-size: 12px;
}


.student-self-profile .profile-behaviour-footer span {
    white-space: nowrap;
}

.student-self-profile .student-profile-two-column {
    align-items: stretch;
}


.student-self-profile .student-profile-two-column
.student-profile-panel {
    height: 100%;
}

/* =========================================================
   STUDENT PORTAL - REPORTS
========================================================= */

.student-self-profile .profile-report-list {
    gap: 12px;
}


/* Report item */
.student-self-profile .profile-report-item {
    width: 100%;

    padding: 15px;

    display: flex;
    align-items: center;

    gap: 13px;

    background: #ffffff;

    border: 1px solid #d7deed;
    border-radius: 14px;

    box-shadow:
        0 6px 16px rgba(15, 23, 42, 0.06);

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}


.student-self-profile .profile-report-item:hover {
    transform: translateY(-2px);

    border-color: #ccd5e8;

    box-shadow:
        0 10px 22px rgba(15, 23, 42, 0.10);
}


/* Report icon */
.student-self-profile .profile-report-icon {
    width: 46px;
    height: 46px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #e0eaff,
            #ede4ff
        );

    border-radius: 13px;

    font-size: 21px;
}


/* Report info */
.student-self-profile .profile-report-info {
    min-width: 0;

    flex: 1;
}


/* Report title */
.student-self-profile .profile-report-info strong {
    color: #111827;

    font-size: 14px;
    font-weight: 850;

    white-space: nowrap;

    overflow: hidden;
    text-overflow: ellipsis;
}


/* Type + date */
.student-self-profile .profile-report-info span {
    margin-top: 4px;

    color: #64748b;

    font-size: 12px;
}


/* Open + No File */
.student-self-profile .profile-report-button,
.student-self-profile .profile-report-unavailable {
    min-height: 35px;

    padding: 7px 11px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 9px;

    font-size: 13px !important;
    font-weight: 850;

    white-space: nowrap;
}


/* Open button */
.student-self-profile .profile-report-button {
    background: #eef2ff;

    color: #4f46e5;

    border: 1px solid #dfe3ff;

    text-decoration: none;

    transition:
        background 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}


.student-self-profile .profile-report-button:hover {
    background: #4f46e5;

    color: #ffffff;

    transform: translateY(-1px);
}


/* No file */
.student-self-profile .profile-report-unavailable {
    background: #f1f5f9;

    color: #64748b;

    border: 1px solid #e2e8f0;
}


/* Mobile */
@media screen and (max-width: 550px) {

    .student-self-profile .profile-report-item {
        align-items: flex-start;

        flex-wrap: wrap;
    }


    .student-self-profile .profile-report-button,
    .student-self-profile .profile-report-unavailable {
        margin-left: 59px;
    }

}

/* =========================================================
   LOGIN PAGE FINAL OVERRIDE
========================================================= */

.login-page-body .school-brand {
    margin-bottom: 24px !important;
}

/* =========================================================
   STUDENT PORTAL - PROFILE PHOTO
========================================================= */

.student-self-profile .student-profile-header-left {
    position: relative;
}

/* Change profile photo button */
.student-self-profile .student-change-photo-button {
    position: absolute;

    left: 78px;
    top: 78px;

    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(
        135deg,
        #2563eb,
        #7c3aed
    );

    color: #ffffff;

    border: 3px solid #ffffff;
    border-radius: 50%;

    box-shadow:
        0 5px 14px rgba(15, 23, 42, 0.25);

    font-size: 14px;

    text-decoration: none;

    cursor: pointer;

    z-index: 5;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.student-self-profile .student-change-photo-button:hover {
    transform: scale(1.10);

    box-shadow:
        0 7px 18px rgba(15, 23, 42, 0.32);
}

.student-self-profile .student-change-photo-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 18px rgba(15, 23, 42, 0.18);
}


/* Upload panel */
.student-self-profile .student-photo-upload {
    padding: 18px;

    display: flex;
    align-items: center;

    gap: 20px;

    background: #f8f9ff;

    border: 1px solid #dfe4f2;
    border-radius: 15px;
}


.student-self-profile .student-photo-preview img,
.student-self-profile .student-photo-preview-avatar {
    width: 105px;
    height: 105px;

    border-radius: 50%;
}


.student-self-profile .student-photo-preview img {
    display: block;

    object-fit: cover;

    border: 3px solid #ffffff;

    box-shadow:
        0 6px 16px rgba(15, 23, 42, 0.12);
}


.student-self-profile .student-photo-preview-avatar {
    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #303dc4,
            #8055d9
        );

    color: #ffffff;

    font-size: 32px;
    font-weight: 900;
}


.student-self-profile .student-photo-field {
    min-width: 0;

    flex: 1;
}


.student-self-profile .student-photo-field label {
    display: block;

    margin-bottom: 8px;

    color: #111827;

    font-size: 14px;
    font-weight: 800;
}


.student-self-profile
.student-photo-field
input[type="file"] {
    width: 100%;

    padding: 11px;

    background: #ffffff;

    border: 1px solid #cfd7e6;
    border-radius: 10px;

    color: #111827;

    font-size: 13px;
}


.student-self-profile .student-photo-field small {
    display: block;

    margin-top: 8px;

    color: #111827;

    font-size: 12px;
}


/* Buttons */
.student-self-profile .student-photo-actions {
    margin-top: 14px;

    display: flex;

    gap: 9px;
}


.student-self-profile .student-photo-save,
.student-self-profile .student-photo-cancel,
.student-self-profile .student-remove-photo-button {
    min-height: 38px;

    padding: 8px 13px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    font-size: 13px;
    font-weight: 800;

    text-decoration: none;
}


.student-self-profile .student-photo-save {
    background: #303dc4;

    color: #ffffff;

    border: 1px solid #303dc4;

    cursor: pointer;
}


.student-self-profile .student-photo-cancel {
    background: #ffffff;

    color: #111827;

    border: 1px solid #d7deed;
}


.student-self-profile .student-remove-photo-form {
    margin-top: 10px;
}


.student-self-profile .student-remove-photo-button {
    background: #fff1f2;

    color: #be123c;

    border: 1px solid #fecdd3;

    cursor: pointer;
}


/* Success / error */
.student-self-profile .student-photo-message {
    margin-bottom: 14px;

    padding: 12px 14px;

    border-radius: 10px;

    color: #111827;

    font-size: 13px;
    font-weight: 700;
}


.student-self-profile .student-photo-message.success {
    background: #ecfdf3;

    border: 1px solid #bbf7d0;
}


.student-self-profile .student-photo-message.error {
    background: #fff1f2;

    border: 1px solid #fecdd3;
}

/* =========================================
   LOGIN SESSION TIMEOUT MESSAGE
========================================= */

.login-timeout-message {
    margin-bottom: 14px;

    padding: 11px 13px;

    background: #fff7ed;

    color: #111827;

    border: 1px solid #fed7aa;
    border-radius: 10px;

    font-size: 12px;
    font-weight: 700;

    text-align: center;
}

/* =========================================================
   STUDENT PORTAL - FINAL MOBILE FIX
========================================================= */

@media screen and (max-width: 600px) {

    /* =========================================
       PROFILE CAMERA BUTTON
    ========================================= */

    body.student-self-profile
    .student-profile-header-left {
        position: relative;
    }

    body.student-self-profile
    .student-change-photo-button {
        position: absolute !important;

        top: 54px !important;
        left: 54px !important;

        width: 32px !important;
        height: 32px !important;

        margin: 0 !important;

        display: flex !important;
        align-items: center;
        justify-content: center;

        background:
            linear-gradient(
                135deg,
                #2563eb,
                #7c3aed
            );

        color: #ffffff;

        border: 3px solid #ffffff;
        border-radius: 50%;

        font-size: 14px;

        text-decoration: none;

        box-shadow:
            0 5px 14px
            rgba(15, 23, 42, 0.25);

        transform: none !important;

        z-index: 10;
    }


    /* =========================================
       STUDENT REPORT CARD
    ========================================= */

    body.student-self-profile
    .profile-report-item {
        display: grid !important;

        grid-template-columns:
            46px minmax(0, 1fr);

        align-items: center !important;

        gap: 10px 12px;

        padding: 13px;

        flex-wrap: unset !important;
    }


    body.student-self-profile
    .profile-report-icon {
        grid-column: 1;
        grid-row: 1;
    }


    body.student-self-profile
    .profile-report-info {
        grid-column: 2;
        grid-row: 1;

        width: 100% !important;
        min-width: 0;
    }


    body.student-self-profile
    .profile-report-info strong {
        display: block;

        white-space: normal !important;

        overflow: visible !important;
        text-overflow: clip !important;

        word-break: normal !important;
        overflow-wrap: break-word !important;
    }


    body.student-self-profile
    .profile-report-info span {
        display: block;

        white-space: normal !important;

        line-height: 1.5;
    }


    body.student-self-profile
    .profile-report-button,
    body.student-self-profile
    .profile-report-unavailable {
        grid-column: 1 / -1;

        width: 100% !important;

        margin-left: 0 !important;
        margin-top: 2px;
    }
}