:root {
    --kist-green: #187957;
    --kist-dark-green: #0c503d;
    --kist-blue: #123b63;
    --kist-dark-blue: #092742;
    --kist-gold: #d5a629;
    --kist-light-gold: #f4d66f;
    --white: #ffffff;
    --background: #f2f7f5;
    --text-dark: #17212b;
    --text-muted: #65717d;
    --border: #dfe8e4;
    --danger: #b42318;
    --danger-background: #fef3f2;
    --success: #067647;
    --success-background: #ecfdf3;
    --shadow: 0 24px 70px rgba(9, 39, 66, 0.18);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;
    color: var(--text-dark);
    background: var(--background);
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

.login-page {
    position: relative;
    overflow-x: hidden;
    background:
        linear-gradient(
            135deg,
            var(--kist-dark-blue) 0%,
            var(--kist-blue) 45%,
            var(--kist-green) 100%
        );
}

.login-background {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.16;
    filter: blur(2px);
    animation: floatShape 10s ease-in-out infinite;
}

.shape-one {
    width: 420px;
    height: 420px;
    top: -160px;
    left: -130px;
    background: var(--kist-gold);
}

.shape-two {
    width: 360px;
    height: 360px;
    right: -120px;
    bottom: -100px;
    background: var(--white);
    animation-delay: 2s;
}

.shape-three {
    width: 160px;
    height: 160px;
    right: 38%;
    top: 10%;
    background: var(--kist-light-gold);
    animation-delay: 4s;
}

@keyframes floatShape {
    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    50% {
        transform: translateY(22px) translateX(14px);
    }
}

.login-wrapper {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    min-height: 100vh;
}

.login-brand-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 70px 9%;
    color: var(--white);
}

.brand-badge {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    margin-bottom: 24px;
    border: 3px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    background:
        linear-gradient(
            145deg,
            var(--kist-green),
            var(--kist-dark-green)
        );
    color: var(--white);
    font-size: 25px;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow:
        0 0 0 8px rgba(213, 166, 41, 0.24),
        0 18px 40px rgba(0, 0, 0, 0.18);
}

.brand-small-title {
    margin-bottom: 12px;
    color: var(--kist-light-gold);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.login-brand-panel h1 {
    max-width: 700px;
    margin-bottom: 22px;
    font-size: clamp(38px, 5vw, 66px);
    line-height: 1.05;
}

.login-brand-panel h1 span {
    display: block;
    color: var(--kist-light-gold);
}

.brand-description {
    max-width: 610px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 17px;
    line-height: 1.8;
}

.brand-feature-list {
    display: grid;
    gap: 13px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
}

.login-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(244, 247, 246, 0.92);
    backdrop-filter: blur(16px);
}

.login-card {
    width: 100%;
    max-width: 480px;
    padding: 42px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
}

.mobile-brand {
    display: none;
}

.login-heading {
    margin-bottom: 28px;
}

.login-heading p {
    margin-bottom: 7px;
    color: var(--kist-green);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.login-heading h2 {
    margin-bottom: 10px;
    color: var(--kist-dark-blue);
    font-size: 29px;
}

.login-heading span {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 700;
}

.form-group input {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    outline: none;
    background: var(--white);
    color: var(--text-dark);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-group input:focus {
    border-color: var(--kist-green);
    box-shadow: 0 0 0 4px rgba(24, 121, 87, 0.12);
}

.password-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.password-label a {
    margin-bottom: 8px;
    color: var(--kist-green);
    font-size: 13px;
    font-weight: 700;
}

.password-input {
    position: relative;
}

.password-input input {
    padding-right: 74px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    border: 0;
    background: transparent;
    color: var(--kist-green);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transform: translateY(-50%);
}

.login-button {
    width: 100%;
    min-height: 54px;
    margin-top: 4px;
    border: 0;
    border-radius: 12px;
    background:
        linear-gradient(
            135deg,
            var(--kist-green),
            var(--kist-dark-green)
        );
    color: var(--white);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(24, 121, 87, 0.26);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(24, 121, 87, 0.32);
}

.alert {
    margin-bottom: 20px;
    padding: 13px 15px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.alert-error {
    border: 1px solid #fecdca;
    background: var(--danger-background);
    color: var(--danger);
}

.alert-success {
    border: 1px solid #abefc6;
    background: var(--success-background);
    color: var(--success);
}

.login-footer {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.login-footer p {
    margin-bottom: 9px;
    color: var(--text-muted);
    font-size: 13px;
}

.login-footer p strong {
    color: var(--kist-green);
}

.login-footer span {
    color: #89949d;
    font-size: 12px;
}

@media (max-width: 980px) {
    .login-wrapper {
        grid-template-columns: 1fr;
    }

    .login-brand-panel {
        display: none;
    }

    .login-form-panel {
        min-height: 100vh;
        padding: 24px;
        background:
            linear-gradient(
                145deg,
                var(--kist-dark-blue),
                var(--kist-green)
            );
    }

    .mobile-brand {
        display: grid;
        place-items: center;
        width: 74px;
        height: 74px;
        margin: 0 auto 26px;
        border-radius: 50%;
        background:
            linear-gradient(
                145deg,
                var(--kist-green),
                var(--kist-dark-green)
            );
        color: var(--white);
        font-size: 20px;
        font-weight: 800;
        box-shadow:
            0 0 0 7px rgba(213, 166, 41, 0.2);
    }
}

@media (max-width: 520px) {
    .login-form-panel {
        padding: 16px;
    }

    .login-card {
        padding: 29px 22px;
        border-radius: 19px;
    }

    .login-heading h2 {
        font-size: 24px;
    }
}
/* ==========================================================
   LECTURER / HOD / ACADEMIC OFFICE PORTAL LAYOUT
========================================================== */

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f7fb;
    color: #172033;
}

a {
    text-decoration: none;
}

.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background: linear-gradient(
        180deg,
        #0c2d4a 0%,
        #0f4d50 100%
    );
    color: #ffffff;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
}

.sidebar-logo {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #ffffff;
    color: #0d5d47;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.sidebar-brand-text strong {
    display: block;
    font-size: 18px;
}

.sidebar-brand-text span {
    display: block;
    margin-top: 3px;
    color: rgba(255,255,255,0.7);
    font-size: 12px;
}

.sidebar-close {
    display: none;
}

.sidebar-navigation {
    flex: 1;
    padding: 20px 14px;
}

.sidebar-section-title {
    margin: 18px 12px 8px;
    color: rgba(255,255,255,0.5);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    margin-bottom: 4px;
    border-radius: 10px;
    color: rgba(255,255,255,0.82);
    font-size: 14px;
    transition: 0.2s ease;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(255,255,255,0.14);
    color: #ffffff;
}

.sidebar-icon {
    width: 22px;
    text-align: center;
}

.sidebar-footer {
    padding: 18px;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.sidebar-user-avatar {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    background: #f1c232;
    color: #10233a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.sidebar-user-details strong,
.sidebar-user-details span {
    display: block;
}

.sidebar-user-details strong {
    font-size: 13px;
}

.sidebar-user-details span {
    margin-top: 3px;
    font-size: 11px;
    color: rgba(255,255,255,0.65);
}

.sidebar-logout {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 9px;
    text-align: center;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.18);
}

.admin-main {
    margin-left: 260px;
    min-height: 100vh;
}

.admin-topbar {
    min-height: 88px;
    padding: 0 32px;
    background: #ffffff;
    border-bottom: 1px solid #e5eaf0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: sticky;
    top: 0;
    z-index: 900;
}

.topbar-left,
.topbar-right,
.topbar-user,
.topbar-user-link {
    display: flex;
    align-items: center;
}

.topbar-left {
    gap: 14px;
}

.topbar-right {
    gap: 18px;
}

.sidebar-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid #dde5ec;
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
}

.topbar-page-title p {
    margin: 0 0 4px;
    color: #7b8794;
    font-size: 12px;
}

.topbar-page-title h1 {
    margin: 0;
    color: #0d2b45;
    font-size: 22px;
}

.topbar-user-link {
    gap: 10px;
    color: #172033;
}

.topbar-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #0d7555;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    overflow: hidden;
}

.topbar-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.topbar-user-details strong,
.topbar-user-details span {
    display: block;
}

.topbar-user-details strong {
    font-size: 13px;
}

.topbar-user-details span {
    margin-top: 3px;
    color: #7b8794;
    font-size: 11px;
}

.topbar-notification {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid #dde5ec;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #14334d;
    background: #ffffff;
}

.topbar-notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: #e63946;
    color: #ffffff;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-content {
    padding: 32px;
}

.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 28px;
}

.page-heading h2 {
    margin: 4px 0 6px;
    color: #0d2b45;
    font-size: 30px;
}

.page-heading p {
    margin: 0;
    color: #667485;
}

.page-eyebrow {
    color: #0d7555 !important;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.management-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.management-stat-card {
    display: block;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e2e8ef;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 37, 56, 0.05);
    color: #172033;
}

.management-stat-card span {
    display: block;
    color: #6b7888;
    font-size: 13px;
}

.management-stat-card strong {
    display: block;
    margin: 8px 0 5px;
    color: #0d2b45;
    font-size: 28px;
}

.management-stat-card small {
    color: #8793a1;
}

.dashboard-panel {
    margin-bottom: 24px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e2e8ef;
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(15, 37, 56, 0.05);
}

.table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.table-toolbar h3 {
    margin: 4px 0 0;
    color: #0d2b45;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.management-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.management-table th,
.management-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #edf0f4;
    text-align: left;
    vertical-align: top;
    font-size: 13px;
}

.management-table th {
    background: #f8fafc;
    color: #536171;
    font-weight: 700;
}

.management-table td {
    color: #263445;
}

.management-table tbody tr:hover {
    background: #f8fbfd;
}

.primary-button,
.secondary-button,
.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

.primary-button {
    border: none;
    background: #0d7555;
    color: #ffffff;
}

.primary-button:hover {
    background: #096044;
}

.secondary-button,
.pagination-link {
    border: 1px solid #dce4ea;
    background: #ffffff;
    color: #14334d;
}

.secondary-button:hover,
.pagination-link:hover {
    background: #f4f7fa;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.status-warning {
    background: #fff3d3;
    color: #9d6500;
}

.status-info {
    background: #e8f3ff;
    color: #1267a8;
}

.status-primary {
    background: #ecebff;
    color: #4a48a8;
}

.status-success {
    background: #e7f7ed;
    color: #18743c;
}

.status-danger {
    background: #fdeaea;
    color: #b72c2c;
}

.status-default {
    background: #eef1f4;
    color: #667485;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    color: #27384a;
    font-size: 13px;
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 13px;
    border: 1px solid #d7e0e7;
    border-radius: 10px;
    background: #ffffff;
    font-size: 14px;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #0d7555;
    box-shadow: 0 0 0 3px rgba(13,117,85,0.08);
}

.payments-filter-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: end;
}

.payments-filter-button {
    padding-bottom: 18px;
}

.payment-action-summary,
.registration-period-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.payment-action-summary > div {
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e7edf2;
    border-radius: 12px;
}

.payment-action-summary span {
    display: block;
    margin-bottom: 6px;
    color: #788696;
    font-size: 12px;
}

.payment-action-summary strong {
    color: #172033;
}

.payment-final-message {
    margin-top: 18px;
    padding: 18px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e7edf2;
}

.alert {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
}

.alert-success {
    background: #e7f7ed;
    color: #16673a;
    border: 1px solid #ccebd8;
}

.alert-error {
    background: #fdecec;
    color: #a32626;
    border: 1px solid #f3cece;
}

.empty-state {
    padding: 50px 20px;
    text-align: center;
    color: #748293;
}

.empty-state span {
    display: block;
    margin-bottom: 10px;
    font-size: 32px;
}

.empty-state h4 {
    margin: 0 0 8px;
    color: #223246;
}

.management-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
}

.pagination-links {
    display: flex;
    gap: 8px;
}

.student-profile-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 24px;
}

.student-profile-avatar {
    width: 90px;
    height: 90px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #0d7555;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 800;
    overflow: hidden;
}

.student-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.student-profile-summary {
    text-align: center;
}

.student-profile-summary-list {
    margin-top: 22px;
    text-align: left;
}

.student-profile-summary-list > div {
    padding: 12px 0;
    border-bottom: 1px solid #edf0f3;
}

.student-profile-summary-list span,
.student-profile-summary-list strong {
    display: block;
}

.student-profile-summary-list span {
    color: #8190a0;
    font-size: 11px;
}

.student-profile-summary-list strong {
    margin-top: 4px;
    font-size: 13px;
}

.sidebar-overlay {
    display: none;
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1200px) {
    .management-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .payments-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: 0.25s ease;
    }

    .admin-sidebar.open {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
    }

    .sidebar-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar-close {
        display: block;
        position: absolute;
        right: 12px;
        top: 12px;
        width: 34px;
        height: 34px;
        border: 0;
        border-radius: 8px;
        background: rgba(255,255,255,0.12);
        color: #ffffff;
        cursor: pointer;
    }

    .sidebar-overlay.show {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.35);
        z-index: 999;
    }

    .student-profile-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .admin-content {
        padding: 18px;
    }

    .admin-topbar {
        padding: 0 18px;
    }

    .topbar-user-details {
        display: none;
    }

    .page-heading {
        flex-direction: column;
    }

    .management-stat-grid,
    .payments-filter-form,
    .payment-action-summary,
    .registration-period-grid {
        grid-template-columns: 1fr;
    }
}
