/* =========================================================
   PKS FOUNDATION — ADMINISTRATOR PORTAL
   PREMIUM NAVY + GOLD DESIGN
   ========================================================= */

:root {
    --navy: #061B2F;
    --navy-2: #08243D;
    --navy-3: #0D304D;

    --gold: #E4A21A;
    --gold-light: #F3BD45;
    --gold-pale: #FFF7E5;

    --white: #FFFFFF;
    --off-white: #F7F8FA;

    --text: #172B3D;
    --muted: #667789;
    --border: #E5E9EE;

    --success: #198754;
    --danger: #C43D4B;
    --warning: #A96F08;

    --success-pale: #EAF7F0;
    --danger-pale: #FCEBED;
    --warning-pale: #FFF5DC;

    --shadow: 0 12px 35px rgba(6, 27, 47, 0.07);
    --shadow-lg: 0 22px 55px rgba(6, 27, 47, 0.12);

    --radius: 16px;
}

/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

body {
    width: 100%;
    min-width: 0;
    min-height: 100vh;
    margin: 0;
    padding: 0;

    overflow-x: hidden;

    font-family:
        Inter,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    color: var(--text);
    background: var(--off-white);

    -webkit-font-smoothing: antialiased;
}

img,
svg,
video,
canvas {
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

table {
    border-spacing: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text);
    font-weight: 800;
    line-height: 1.25;
}

p {
    line-height: 1.6;
}

/* =========================================================
   MAIN LAYOUT
   ========================================================= */

.admin-app,
.admin-layout {
    width: 100%;
    min-width: 0;
    min-height: 100vh;
    max-width: 100vw;
    overflow-x: hidden;
}

/* =========================================================
   SIDEBAR
   ========================================================= */

.admin-sidebar {
    position: fixed;

    top: 0;
    left: 0;
    bottom: 0;

    width: 270px;
    min-width: 270px;
    max-width: 270px;

    z-index: 1000;

    display: flex;
    flex-direction: column;

    overflow-x: hidden;
    overflow-y: auto;

    color: var(--white);

    background:
        radial-gradient(
            circle at 15% 5%,
            rgba(228, 162, 26, 0.16),
            transparent 28%
        ),
        linear-gradient(
            180deg,
            var(--navy) 0%,
            var(--navy-2) 55%,
            var(--navy-3) 100%
        );

    border-right: 1px solid rgba(255, 255, 255, 0.08);

    box-shadow:
        8px 0 30px rgba(6, 27, 47, 0.13);

    scrollbar-width: thin;
}

.admin-sidebar::-webkit-scrollbar {
    width: 6px;
}

.admin-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.admin-sidebar::-webkit-scrollbar-thumb {
    background: rgba(243, 189, 69, 0.35);
    border-radius: 20px;
}

/* =========================================================
   BRAND
   ========================================================= */

.admin-brand {
    min-height: 92px;

    padding: 18px 19px;

    display: flex;
    align-items: center;

    gap: 12px;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.09);
}

.admin-brand img {
    width: 50px;
    height: 50px;

    min-width: 50px;

    object-fit: cover;

    border-radius: 13px;

    background: var(--white);

    border:
        2px solid rgba(243, 189, 69, 0.75);

    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.16);
}

.admin-brand-text {
    min-width: 0;
    overflow: hidden;
}

.admin-brand-text strong,
.admin-brand-text h2 {
    display: block;

    color: var(--white);

    font-size: 16px;
    font-weight: 850;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-brand-text span {
    display: block;

    margin-top: 3px;

    color: rgba(255, 255, 255, 0.58);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.3px;
}

/* =========================================================
   ADMIN PROFILE
   ========================================================= */

.admin-profile {
    padding: 18px;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.08);
}

.admin-profile-box {
    display: flex;
    align-items: center;

    gap: 11px;

    padding: 12px;

    border-radius: 14px;

    background:
        rgba(255, 255, 255, 0.055);

    border:
        1px solid rgba(255, 255, 255, 0.08);
}

.admin-avatar {
    width: 43px;
    height: 43px;

    min-width: 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--gold);

    color: var(--navy);

    font-size: 14px;
    font-weight: 900;

    box-shadow:
        0 5px 16px rgba(228, 162, 26, 0.22);
}

.admin-profile-info {
    min-width: 0;
    overflow: hidden;
}

.admin-profile-info strong {
    display: block;

    color: var(--white);

    font-size: 13px;
    font-weight: 800;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-profile-info span {
    display: block;

    margin-top: 3px;

    color: rgba(255, 255, 255, 0.55);

    font-size: 10px;
}

/* =========================================================
   NAVIGATION
   ========================================================= */

.admin-nav {
    flex: 1;

    padding: 18px 12px;

    overflow-x: hidden;
    overflow-y: auto;
}

.admin-nav-title,
.nav-heading {
    padding:
        0 10px 9px;

    color:
        rgba(255, 255, 255, 0.42);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1.3px;

    text-transform: uppercase;
}

.admin-nav a,
.admin-nav-link {
    width: 100%;

    min-height: 46px;

    margin-bottom: 5px;

    padding: 0 12px;

    display: flex;
    align-items: center;

    gap: 11px;

    border-radius: 11px;

    color:
        rgba(255, 255, 255, 0.72);

    font-size: 12px;

    font-weight: 750;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.admin-nav a:hover,
.admin-nav-link:hover {
    color: var(--white);

    background:
        rgba(228, 162, 26, 0.12);

    transform:
        translateX(2px);
}

.admin-nav a.active,
.admin-nav-link.active {
    color: var(--navy);

    background:
        linear-gradient(
            135deg,
            var(--gold),
            var(--gold-light)
        );

    box-shadow:
        0 7px 20px
        rgba(228, 162, 26, 0.18);
}

.admin-nav-icon,
.nav-icon {
    width: 22px;

    min-width: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 15px;
}

.admin-nav-label {
    flex: 1;

    min-width: 0;
}

.nav-badge {
    min-width: 21px;
    height: 21px;

    padding: 0 6px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50px;

    background: var(--gold);

    color: var(--navy);

    font-size: 9px;
    font-weight: 900;
}

/* =========================================================
   SIDEBAR FOOTER
   ========================================================= */

.admin-sidebar-footer,
.sidebar-bottom {
    padding: 16px;

    border-top:
        1px solid rgba(255, 255, 255, 0.08);
}

.logout-btn {
    width: 100%;

    min-height: 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    border:
        1px solid rgba(255, 255, 255, 0.12);

    border-radius: 11px;

    background:
        rgba(255, 255, 255, 0.05);

    color:
        rgba(255, 255, 255, 0.78);

    font-size: 11px;

    font-weight: 800;

    transition: 0.2s ease;
}

.logout-btn:hover {
    color: var(--navy);

    background: var(--gold);

    border-color: var(--gold);
}

/* =========================================================
   MAIN AREA
   ========================================================= */

.admin-main,
.page-content {
    width: calc(100% - 270px);

    max-width: calc(100% - 270px);

    min-width: 0;

    min-height: 100vh;

    margin-left: 270px;

    overflow-x: hidden;
}

/* =========================================================
   TOP BAR
   ========================================================= */

.admin-topbar {
    width: 100%;

    min-width: 0;

    height: 76px;

    position: sticky;

    top: 0;

    z-index: 900;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 0 28px;

    background:
        rgba(255, 255, 255, 0.94);

    border-bottom:
        1px solid var(--border);

    box-shadow:
        0 5px 24px rgba(6, 27, 47, 0.05);

    backdrop-filter:
        blur(14px);
}

.topbar-left {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 13px;
}

.page-title {
    min-width: 0;
}

.page-title strong,
.topbar-title {
    display: block;

    color: var(--navy);

    font-size: 19px;

    font-weight: 850;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}

.page-title span,
.topbar-subtitle {
    display: block;

    margin-top: 3px;

    color: var(--muted);

    font-size: 10px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}

.topbar-right {
    flex-shrink: 0;

    display: flex;
    align-items: center;

    gap: 8px;
}

.notification-btn,
.topbar-icon {
    position: relative;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid var(--border);

    border-radius: 11px;

    background: var(--white);

    color: var(--navy);

    transition: 0.2s ease;
}

.notification-btn:hover,
.topbar-icon:hover {
    border-color:
        rgba(228, 162, 26, 0.55);

    background:
        var(--gold-pale);

    transform:
        translateY(-1px);
}

.notification-dot {
    position: absolute;

    top: 7px;
    right: 7px;

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--gold);

    border:
        2px solid var(--white);
}

.mobile-menu-btn,
.mobile-menu-button {
    display: none;

    width: 40px;
    height: 40px;

    align-items: center;
    justify-content: center;

    border:
        1px solid var(--border);

    border-radius: 11px;

    background: var(--white);

    color: var(--navy);
}

/* =========================================================
   CONTENT
   ========================================================= */

.admin-content,
.content-inner {
    width: 100%;

    min-width: 0;

    max-width: 1500px;

    margin: 0 auto;

    padding: 28px;
}

/* =========================================================
   WELCOME BANNER
   ========================================================= */

.welcome-banner,
.dashboard-welcome {
    position: relative;

    overflow: hidden;

    width: 100%;

    margin-bottom: 22px;

    padding: 30px;

    border-radius: 20px;

    border:
        1px solid rgba(228, 162, 26, 0.28);

    background:
        radial-gradient(
            circle at 90% 15%,
            rgba(243, 189, 69, 0.22),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            var(--navy) 0%,
            var(--navy-2) 68%,
            var(--navy-3) 100%
        );

    box-shadow: var(--shadow);
}

.welcome-banner::after,
.dashboard-welcome::after {
    content: "";

    position: absolute;

    width: 190px;
    height: 190px;

    right: -75px;
    top: -80px;

    border:
        1px solid rgba(243, 189, 69, 0.18);

    border-radius: 50%;

    box-shadow:
        0 0 0 28px rgba(243, 189, 69, 0.035),
        0 0 0 58px rgba(243, 189, 69, 0.025);
}

.welcome-content,
.welcome-banner h1,
.welcome-banner p,
.dashboard-welcome h1,
.dashboard-welcome p {
    position: relative;

    z-index: 1;
}

.welcome-banner h1,
.dashboard-welcome h1 {
    margin: 0;

    color: var(--white);

    font-size:
        clamp(24px, 3vw, 34px);

    font-weight: 850;
}

.welcome-banner p,
.dashboard-welcome p {
    max-width: 760px;

    margin: 8px 0 0;

    color:
        rgba(255, 255, 255, 0.7);

    font-size: 12px;
}

/* =========================================================
   STATISTICS
   ========================================================= */

.stats-grid {
    width: 100%;

    min-width: 0;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 16px;

    margin-bottom: 22px;
}

.stat-card {
    position: relative;

    min-width: 0;

    padding: 20px;

    overflow: hidden;

    border:
        1px solid var(--border);

    border-radius: 16px;

    background:
        var(--white);

    box-shadow:
        var(--shadow);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.stat-card:hover {
    transform:
        translateY(-3px);

    border-color:
        rgba(228, 162, 26, 0.35);

    box-shadow:
        var(--shadow-lg);
}

.stat-card::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;
    bottom: 0;

    width: 4px;

    background: var(--gold);
}

.stat-card:nth-child(2)::before {
    background: var(--navy-3);
}

.stat-card:nth-child(3)::before {
    background: var(--danger);
}

.stat-card:nth-child(4)::before {
    background: var(--gold-light);
}

.stat-top {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;
}

.stat-icon {
    width: 42px;
    height: 42px;

    min-width: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background:
        var(--gold-pale);

    color:
        var(--navy);

    font-size: 17px;
}

.stat-change {
    padding: 5px 9px;

    border-radius: 50px;

    background:
        var(--off-white);

    color:
        var(--muted);

    font-size: 9px;

    font-weight: 850;
}

.stat-change.positive {
    background:
        var(--success-pale);

    color:
        var(--success);
}

.stat-change.warning {
    background:
        var(--warning-pale);

    color:
        var(--warning);
}

.stat-value,
.stat-number {
    margin-top: 15px;

    color:
        var(--navy);

    font-size: 30px;

    line-height: 1;

    font-weight: 900;
}

.stat-label {
    margin-top: 7px;

    color:
        var(--muted);

    font-size: 10px;

    font-weight: 750;
}

/* =========================================================
   DASHBOARD GRID
   ========================================================= */

.dashboard-grid {
    width: 100%;

    min-width: 0;

    display: grid;

    grid-template-columns:
        minmax(0, 1.2fr)
        minmax(300px, 0.8fr);

    gap: 18px;

    margin-bottom: 20px;
}

.two-column {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;
}

.three-column {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;
}

/* =========================================================
   PANELS
   ========================================================= */

.panel,
.dashboard-panel {
    width: 100%;

    min-width: 0;

    overflow: hidden;

    padding: 22px;

    border:
        1px solid var(--border);

    border-radius: 16px;

    background:
        var(--white);

    box-shadow:
        var(--shadow);
}

.panel-header {
    width: 100%;

    min-width: 0;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    margin-bottom: 17px;
}

.panel-header h2,
.panel-header h3 {
    margin: 0;

    color:
        var(--navy);

    font-size: 16px;

    font-weight: 850;
}

.panel-header p {
    margin: 4px 0 0;

    color:
        var(--muted);

    font-size: 10px;
}

.panel-action {
    color:
        #9A6B0A;

    font-size: 10px;

    font-weight: 850;
}

.panel-action:hover {
    text-decoration: underline;
}

/* =========================================================
   QUICK ACTIONS
   ========================================================= */

.quick-actions {
    width: 100%;

    min-width: 0;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 11px;
}

.quick-action,
.quick-action-card {
    min-width: 0;

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 15px;

    border:
        1px solid var(--border);

    border-radius: 13px;

    background:
        var(--white);

    transition:
        0.2s ease;
}

.quick-action:hover,
.quick-action-card:hover {
    border-color:
        rgba(228, 162, 26, 0.5);

    background:
        var(--gold-pale);

    transform:
        translateY(-2px);

    box-shadow:
        0 9px 22px rgba(6, 27, 47, 0.07);
}

.quick-action-icon {
    width: 39px;
    height: 39px;

    min-width: 39px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background:
        var(--gold-pale);

    color:
        var(--navy);

    font-size: 15px;
}

.quick-action strong,
.quick-action-card h3 {
    display: block;

    color:
        var(--navy);

    font-size: 11px;

    font-weight: 850;
}

.quick-action span,
.quick-action-card p {
    display: block;

    margin-top: 3px;

    color:
        var(--muted);

    font-size: 9px;
}

/* =========================================================
   ACTIVITY
   ========================================================= */

.activity-list {
    width: 100%;

    display: flex;

    flex-direction: column;
}

.activity-item {
    display: flex;

    align-items: flex-start;

    gap: 11px;

    padding: 12px 0;

    border-bottom:
        1px solid #EEF1F4;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 35px;
    height: 35px;

    min-width: 35px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background:
        var(--gold-pale);

    color:
        var(--navy);
}

.activity-info,
.activity-content {
    min-width: 0;
}

.activity-info strong,
.activity-content strong {
    display: block;

    color:
        var(--text);

    font-size: 11px;

    font-weight: 800;
}

.activity-info span,
.activity-content span {
    display: block;

    margin-top: 3px;

    color:
        var(--muted);

    font-size: 9px;
}

/* =========================================================
   TABLES
   ========================================================= */

.table-wrapper {
    width: 100%;

    max-width: 100%;

    overflow-x: auto;

    overflow-y: hidden;

    border:
        1px solid var(--border);

    border-radius: 12px;

    -webkit-overflow-scrolling: touch;
}

.table-wrapper table {
    width: 100%;

    min-width: 620px;

    border-collapse: collapse;
}

table th,
table td {
    padding: 13px 14px;

    text-align: left;

    border-bottom:
        1px solid #EEF1F4;
}

table th {
    background:
        #FAF8F1;

    color:
        #7B5B13;

    font-size: 9px;

    font-weight: 900;

    text-transform: uppercase;

    letter-spacing: 0.45px;

    white-space: nowrap;
}

table td {
    color:
        #526474;

    font-size: 10px;

    white-space: nowrap;
}

table tbody tr {
    transition:
        background 0.15s ease;
}

table tbody tr:hover {
    background:
        #FFFCF4;
}

table tbody tr:last-child td {
    border-bottom: none;
}

.student-name {
    color:
        var(--navy);

    font-weight: 850;
}

.student-code {
    color:
        #9A6B0A;

    font-weight: 850;
}

/* =========================================================
   BADGES
   ========================================================= */

.badge {
    min-height: 23px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 3px 9px;

    border-radius: 50px;

    font-size: 9px;

    font-weight: 900;

    white-space: nowrap;
}

.badge-present,
.badge-success {
    background:
        var(--success-pale);

    color:
        var(--success);
}

.badge-absent,
.badge-danger {
    background:
        var(--danger-pale);

    color:
        var(--danger);
}

.badge-late,
.badge-warning {
    background:
        var(--warning-pale);

    color:
        var(--warning);
}

.badge-new {
    background:
        var(--gold-pale);

    color:
        #946707;
}

.badge-contacted {
    background:
        #EEF3F8;

    color:
        var(--navy-3);
}

.badge-closed {
    background:
        #F0F2F4;

    color:
        #687789;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.admin-btn,
.btn {
    min-height: 40px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    padding: 0 15px;

    border: 0;

    border-radius: 10px;

    background:
        var(--navy);

    color:
        var(--white);

    font-size: 11px;

    font-weight: 850;

    transition:
        0.2s ease;
}

.admin-btn:hover,
.btn:hover {
    transform:
        translateY(-1px);

    box-shadow:
        0 8px 20px
        rgba(6, 27, 47, 0.14);
}

.btn-primary {
    background:
        var(--navy);
}

.btn-burgundy {
    background:
        var(--navy-3);
}

.btn-success {
    background:
        var(--success);
}

.btn-danger {
    background:
        var(--danger);
}

.btn-warning {
    background:
        var(--warning);
}

.btn-gold {
    background:
        linear-gradient(
            135deg,
            var(--gold),
            var(--gold-light)
        );

    color:
        var(--navy);
}

.btn-light {
    background:
        var(--gold-pale);

    color:
        var(--navy);

    border:
        1px solid rgba(228, 162, 26, 0.3);
}

.btn-outline {
    background:
        var(--white);

    color:
        var(--navy);

    border:
        1px solid #CBD4DD;
}

.btn-outline:hover {
    background:
        var(--gold-pale);

    border-color:
        rgba(228, 162, 26, 0.55);
}

.btn-small {
    min-height: 33px;

    padding: 0 11px;

    font-size: 9px;
}

.btn-large {
    min-height: 47px;

    padding: 0 20px;

    font-size: 12px;
}

/* =========================================================
   PAGE HEADER
   ========================================================= */

.page-header {
    width: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin-bottom: 22px;
}

.page-header h1 {
    margin: 0;

    color:
        var(--navy);

    font-size: 26px;

    font-weight: 900;
}

.page-header p {
    margin: 4px 0 0;

    color:
        var(--muted);

    font-size: 11px;
}

.page-header-actions,
.toolbar-left,
.toolbar-right {
    display: flex;

    align-items: center;

    gap: 8px;

    flex-wrap: wrap;
}

/* =========================================================
   TOOLBAR / SEARCH
   ========================================================= */

.toolbar {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    margin-bottom: 18px;

    flex-wrap: wrap;
}

.search-box {
    position: relative;

    width: 270px;

    max-width: 100%;
}

.search-box input {
    width: 100%;

    height: 40px;

    padding:
        0 12px 0 37px;

    border:
        1px solid #D5DDE5;

    border-radius: 10px;

    outline: none;

    background:
        var(--white);

    color:
        var(--text);

    font-size: 11px;
}

.search-box input:focus,
.filter-select:focus,
.form-control:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color:
        rgba(228, 162, 26, 0.8);

    box-shadow:
        0 0 0 3px
        rgba(228, 162, 26, 0.11);
}

.search-box span {
    position: absolute;

    left: 12px;

    top: 50%;

    transform:
        translateY(-50%);

    color:
        var(--muted);
}

.filter-select {
    height: 40px;

    padding:
        0 11px;

    border:
        1px solid #D5DDE5;

    border-radius: 10px;

    background:
        var(--white);

    color:
        var(--text);

    outline: none;

    font-size: 11px;
}

/* =========================================================
   FORMS
   ========================================================= */

.form-grid {
    width: 100%;

    min-width: 0;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;
}

.form-group {
    min-width: 0;
}

.form-group.full {
    grid-column:
        1 / -1;
}

.form-group label {
    display: block;

    margin-bottom: 6px;

    color:
        var(--text);

    font-size: 10px;

    font-weight: 850;
}

.form-control,
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    min-width: 0;

    min-height: 42px;

    padding:
        9px 12px;

    border:
        1px solid #D5DDE5;

    border-radius: 10px;

    outline: none;

    background:
        var(--white);

    color:
        var(--text);

    font-size: 11px;
}

.form-group textarea {
    min-height: 105px;

    resize: vertical;
}

.form-help {
    display: block;

    margin-top: 4px;

    color:
        var(--muted);

    font-size: 9px;
}

.form-actions {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-top: 18px;

    flex-wrap: wrap;
}

/* =========================================================
   ATTENDANCE
   ========================================================= */

.attendance-summary {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 14px;

    margin-bottom: 20px;
}

.attendance-box {
    padding: 17px;

    border:
        1px solid var(--border);

    border-radius: 13px;

    background:
        var(--white);

    box-shadow:
        var(--shadow);
}

.attendance-box span {
    color:
        var(--muted);

    font-size: 9px;

    font-weight: 800;
}

.attendance-box strong {
    display: block;

    margin-top: 6px;

    color:
        var(--navy);

    font-size: 23px;

    font-weight: 900;
}

.attendance-box.present {
    border-left:
        4px solid var(--success);
}

.attendance-box.absent {
    border-left:
        4px solid var(--danger);
}

.attendance-box.late {
    border-left:
        4px solid var(--gold);
}

.attendance-progress {
    width: 100%;

    height: 7px;

    overflow: hidden;

    border-radius: 20px;

    background:
        #E8EDF1;
}

.attendance-progress-bar {
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--gold),
            var(--gold-light)
        );
}

/* =========================================================
   INQUIRIES
   ========================================================= */

.inquiry-list {
    width: 100%;

    display: flex;

    flex-direction: column;

    gap: 12px;
}

.inquiry-card {
    padding: 17px;

    border:
        1px solid var(--border);

    border-radius: 13px;

    background:
        var(--white);

    transition:
        0.2s ease;
}

.inquiry-card:hover {
    border-color:
        rgba(228, 162, 26, 0.4);

    box-shadow:
        var(--shadow);

    transform:
        translateY(-1px);
}

.inquiry-top {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 12px;
}

.inquiry-name {
    color:
        var(--navy);

    font-size: 13px;

    font-weight: 900;
}

.inquiry-course {
    margin-top: 3px;

    color:
        #9A6B0A;

    font-size: 10px;

    font-weight: 800;
}

.inquiry-message {
    margin-top: 11px;

    color:
        var(--muted);

    font-size: 10px;

    line-height: 1.7;
}

.inquiry-contact {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 12px;

    color:
        var(--muted);

    font-size: 9px;
}

/* =========================================================
   EMPTY STATE
   ========================================================= */

.empty-state {
    width: 100%;

    padding: 42px 18px;

    text-align: center;
}

.empty-icon {
    width: 54px;
    height: 54px;

    margin:
        0 auto 13px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 15px;

    background:
        var(--gold-pale);

    color:
        var(--navy);

    font-size: 21px;
}

.empty-state strong,
.empty-state h3 {
    color:
        var(--navy);

    font-size: 15px;

    font-weight: 900;
}

.empty-state p {
    max-width: 440px;

    margin:
        6px auto 0;

    color:
        var(--muted);

    font-size: 10px;
}

/* =========================================================
   DETAILS
   ========================================================= */

.detail-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 11px;
}

.detail-item {
    padding: 12px;

    border:
        1px solid var(--border);

    border-radius: 10px;

    background:
        #FAFBFC;
}

.detail-item label {
    display: block;

    margin-bottom: 3px;

    color:
        var(--muted);

    font-size: 9px;

    font-weight: 800;
}

.detail-item strong {
    display: block;

    color:
        var(--text);

    font-size: 10px;

    font-weight: 850;

    overflow-wrap: anywhere;
}

/* =========================================================
   PAGINATION
   ========================================================= */

.pagination {
    display: flex;

    justify-content: flex-end;

    gap: 5px;

    margin-top: 16px;

    flex-wrap: wrap;
}

.pagination button {
    width: 33px;
    height: 33px;

    border:
        1px solid #D5DDE5;

    border-radius: 9px;

    background:
        var(--white);

    color:
        var(--text);

    font-size: 9px;

    font-weight: 850;
}

.pagination button:hover,
.pagination button.active {
    background:
        var(--navy);

    border-color:
        var(--navy);

    color:
        var(--white);
}

/* =========================================================
   MODAL
   ========================================================= */

.modal {
    position: fixed;

    inset: 0;

    z-index: 2500;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 18px;

    background:
        rgba(6, 27, 47, 0.58);
}

.modal.show {
    display: flex;
}

.modal-content {
    width: 100%;

    max-width: 620px;

    max-height: 90vh;

    overflow: auto;

    padding: 27px;

    border-radius: 18px;

    background:
        var(--white);

    box-shadow:
        0 25px 70px
        rgba(6, 27, 47, 0.22);
}

.modal-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    margin-bottom: 18px;
}

.modal-header h2 {
    margin: 0;

    font-size: 18px;
}

.modal-close {
    width: 35px;
    height: 35px;

    min-width: 35px;

    border: 0;

    border-radius: 9px;

    background:
        var(--gold-pale);

    color:
        var(--navy);

    font-size: 17px;
}

/* =========================================================
   ALERTS
   ========================================================= */

.alert {
    width: 100%;

    padding:
        12px 14px;

    margin-bottom: 16px;

    border-radius: 10px;

    font-size: 10px;

    font-weight: 800;
}

.alert-info {
    background: #EEF4F8;

    color: var(--navy-3);

    border:
        1px solid #D7E3EC;
}

.alert-success {
    background:
        var(--success-pale);

    color:
        var(--success);

    border:
        1px solid #CBE9D9;
}

.alert-warning {
    background:
        var(--warning-pale);

    color:
        var(--warning);

    border:
        1px solid #F0DCA8;
}

.alert-danger {
    background:
        var(--danger-pale);

    color:
        var(--danger);

    border:
        1px solid #EFCFD4;
}

/* =========================================================
   LOADING
   ========================================================= */

.loading {
    min-height: 130px;

    display: flex;

    align-items: center;

    justify-content: center;

    color:
        var(--muted);

    font-size: 10px;
}

.spinner {
    width: 23px;
    height: 23px;

    margin-right: 8px;

    border:
        3px solid #E9EDF1;

    border-top-color:
        var(--gold);

    border-radius: 50%;

    animation:
        spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================================
   TOAST
   ========================================================= */

.toast-container {
    position: fixed;

    right: 18px;
    bottom: 18px;

    z-index: 3000;

    width: 320px;

    max-width:
        calc(100vw - 36px);

    display: flex;

    flex-direction: column;

    gap: 8px;
}

.toast {
    width: 100%;

    padding:
        13px 15px;

    border-radius: 11px;

    background:
        var(--white);

    border:
        1px solid var(--border);

    box-shadow:
        0 12px 30px
        rgba(6, 27, 47, 0.14);

    color:
        var(--text);

    font-size: 10px;

    font-weight: 800;
}

.toast.success {
    border-left:
        4px solid var(--success);
}

.toast.error {
    border-left:
        4px solid var(--danger);
}

.toast.warning {
    border-left:
        4px solid var(--gold);
}

/* =========================================================
   SIDEBAR OVERLAY
   ========================================================= */

.sidebar-overlay {
    display: none;

    position: fixed;

    inset: 0;

    z-index: 950;

    background:
        rgba(6, 27, 47, 0.55);
}

.sidebar-overlay.show {
    display: block;
}

/* =========================================================
   FOOTER
   ========================================================= */

.admin-footer {
    width: 100%;

    padding:
        22px 10px;

    margin-top: 28px;

    border-top:
        1px solid var(--border);

    color:
        var(--muted);

    font-size: 9px;

    text-align: center;
}

/* =========================================================
   FOCUS
   ========================================================= */

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline:
        3px solid
        rgba(228, 162, 26, 0.28);

    outline-offset: 2px;
}

/* =========================================================
   RESPONSIVE — 1200
   ========================================================= */

@media (max-width: 1200px) {

    .stats-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .dashboard-grid {
        grid-template-columns:
            minmax(0, 1fr);
    }
}

/* =========================================================
   RESPONSIVE — 950
   ========================================================= */

@media (max-width: 950px) {

    .admin-sidebar {
        transform:
            translateX(-100%);

        transition:
            transform 0.25s ease;
    }

    .admin-sidebar.open {
        transform:
            translateX(0);
    }

    .admin-main,
    .page-content {
        width: 100%;

        max-width: 100%;

        margin-left: 0;
    }

    .mobile-menu-btn,
    .mobile-menu-button {
        display: flex;
    }

    .two-column,
    .three-column {
        grid-template-columns:
            minmax(0, 1fr);
    }

    .form-grid {
        grid-template-columns:
            minmax(0, 1fr);
    }

    .form-group.full {
        grid-column: auto;
    }
}

/* =========================================================
   RESPONSIVE — 700
   ========================================================= */

@media (max-width: 700px) {

    .admin-topbar {
        height: 68px;

        padding:
            0 14px;
    }

    .admin-content,
    .content-inner {
        padding:
            18px 13px;
    }

    .page-title strong,
    .topbar-title {
        font-size: 16px;
    }

    .page-title span,
    .topbar-subtitle {
        display: none;
    }

    .stats-grid {
        grid-template-columns:
            minmax(0, 1fr);

        gap: 12px;
    }

    .quick-actions {
        grid-template-columns:
            minmax(0, 1fr);
    }

    .attendance-summary {
        grid-template-columns:
            minmax(0, 1fr);
    }

    .page-header {
        align-items: flex-start;

        flex-direction: column;
    }

    .page-header-actions {
        width: 100%;
    }

    .toolbar {
        align-items: stretch;

        flex-direction: column;
    }

    .toolbar-left,
    .toolbar-right {
        width: 100%;
    }

    .search-box {
        width: 100%;
    }

    .filter-select {
        width: 100%;
    }

    .inquiry-top {
        flex-direction: column;
    }
}

/* =========================================================
   RESPONSIVE — 450
   ========================================================= */

@media (max-width: 450px) {

    .admin-topbar {
        padding:
            0 9px;
    }

    .admin-content,
    .content-inner {
        padding:
            13px 9px;
    }

    .welcome-banner,
    .dashboard-welcome {
        padding:
            21px 17px;

        border-radius:
            16px;
    }

    .welcome-banner h1,
    .dashboard-welcome h1 {
        font-size: 22px;
    }

    .panel,
    .dashboard-panel {
        padding: 16px;
    }

    .page-header-actions {
        flex-direction: column;

        align-items: stretch;
    }

    .page-header-actions .btn,
    .page-header-actions .admin-btn {
        width: 100%;
    }

    .form-actions {
        flex-direction: column;

        align-items: stretch;
    }

    .form-actions .btn,
    .form-actions .admin-btn {
        width: 100%;
    }

    .toast-container {
        left: 9px;
        right: 9px;
        bottom: 9px;

        width: auto;

        max-width: none;
    }
}

/* =========================================================
   PRINT
   ========================================================= */

@media print {

    .admin-sidebar,
    .admin-topbar,
    .mobile-menu-btn,
    .mobile-menu-button,
    .page-header-actions,
    .toolbar,
    .admin-footer,
    .sidebar-overlay {
        display: none !important;
    }

    .admin-main,
    .page-content {
        width: 100% !important;

        max-width: 100% !important;

        margin: 0 !important;
    }

    .admin-content,
    .content-inner {
        max-width: 100% !important;

        padding: 0 !important;
    }

    .panel,
    .dashboard-panel,
    .stat-card {
        box-shadow: none !important;
    }
}
/* =========================================================
   PKS FOUNDATION — ADMIN LOGIN PAGE
   BRIGHT FUTURE INSPIRED NAVY + GOLD DESIGN
   ========================================================= */

.login-page {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    background: #F7F8FA;
    overflow: hidden;
}


/* =========================================================
   LEFT BRAND PANEL
   ========================================================= */

.login-brand-panel {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 15% 15%,
            rgba(216, 154, 33, 0.18),
            transparent 30%
        ),
        radial-gradient(
            circle at 85% 85%,
            rgba(243, 189, 69, 0.10),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #03182D 0%,
            #08243D 55%,
            #0D304D 100%
        );
}


/* Decorative circles */

.login-brand-panel::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    top: -180px;
    right: -170px;

    border: 1px solid rgba(243, 189, 69, 0.20);
    border-radius: 50%;

    box-shadow:
        0 0 0 35px rgba(243, 189, 69, 0.035),
        0 0 0 75px rgba(243, 189, 69, 0.025);
}


.login-brand-panel::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    bottom: -170px;
    left: -140px;

    border: 1px solid rgba(243, 189, 69, 0.14);
    border-radius: 50%;

    box-shadow:
        0 0 0 28px rgba(243, 189, 69, 0.025),
        0 0 0 58px rgba(243, 189, 69, 0.018);
}


/* =========================================================
   BRAND CONTENT
   ========================================================= */

.login-brand-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 560px;
}


/* =========================================================
   LOGO
   ========================================================= */

.login-logo {
    width: 86px;
    height: 86px;
    display: block;
    object-fit: cover;

    margin-bottom: 28px;

    border-radius: 18px;

    background: #FFFFFF;

    border:
        3px solid rgba(243, 189, 69, 0.85);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.20);
}


/* =========================================================
   BRAND HEADING
   ========================================================= */

.login-brand-content h1 {
    margin: 0;

    color: #FFFFFF;

    font-size: clamp(34px, 4vw, 54px);

    line-height: 1.10;

    font-weight: 900;

    letter-spacing: -1.2px;
}


.login-brand-content h1::after {
    content: "";

    display: block;

    width: 65px;
    height: 4px;

    margin-top: 22px;

    border-radius: 10px;

    background:
        linear-gradient(
            90deg,
            #D89A21,
            #F3BD45
        );
}


/* =========================================================
   BRAND DESCRIPTION
   ========================================================= */

.login-brand-content > p {
    max-width: 510px;

    margin:
        24px 0 0;

    color:
        rgba(255, 255, 255, 0.72);

    font-size: 13px;

    line-height: 1.8;
}


/* =========================================================
   FEATURES
   ========================================================= */

.login-features {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;

    margin-top: 34px;
}


.login-feature {
    min-height: 58px;

    display: flex;

    align-items: center;

    gap: 11px;

    padding: 12px 14px;

    border:
        1px solid rgba(255, 255, 255, 0.10);

    border-radius: 12px;

    background:
        rgba(255, 255, 255, 0.055);

    color:
        rgba(255, 255, 255, 0.82);

    font-size: 11px;

    font-weight: 700;

    transition:
        0.2s ease;
}


.login-feature:hover {
    transform:
        translateY(-2px);

    background:
        rgba(216, 154, 33, 0.10);

    border-color:
        rgba(243, 189, 69, 0.30);
}


/* =========================================================
   FEATURE ICON
   ========================================================= */

.login-feature-icon {
    width: 27px;
    height: 27px;

    min-width: 27px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        #D89A21;

    color:
        #03182D;

    font-size: 12px;

    font-weight: 900;
}


/* =========================================================
   RIGHT LOGIN AREA
   ========================================================= */

.login-form-panel {
    min-height: 100vh;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 45px;

    background:
        #F7F8FA;
}


/* =========================================================
   LOGIN CARD
   ========================================================= */

.login-card {
    width: 100%;
    max-width: 470px;

    padding: 44px 42px;

    border:
        1px solid #E5E9EE;

    border-radius: 20px;

    background:
        #FFFFFF;

    box-shadow:
        0 22px 55px rgba(3, 24, 45, 0.10);
}


/* =========================================================
   LOGIN HEADER
   ========================================================= */

.login-card-header {
    margin-bottom: 30px;
}


.login-card-header h2 {
    margin: 0;

    color:
        #03182D;

    font-size: 28px;

    line-height: 1.2;

    font-weight: 900;

    letter-spacing: -0.4px;
}


.login-card-header h2::after {
    content: "";

    display: block;

    width: 48px;
    height: 3px;

    margin-top: 12px;

    border-radius: 10px;

    background:
        linear-gradient(
            90deg,
            #D89A21,
            #F3BD45
        );
}


.login-card-header p {
    margin:
        14px 0 0;

    color:
        #667789;

    font-size: 11px;

    line-height: 1.7;
}


/* =========================================================
   LOGIN FORM
   ========================================================= */

.login-form {
    width: 100%;
}


/* =========================================================
   INPUT GROUP
   ========================================================= */

.login-input-group {
    position: relative;

    width: 100%;

    margin-bottom: 16px;
}


/* =========================================================
   INPUT ICON
   ========================================================= */

.input-icon {
    position: absolute;

    left: 15px;
    top: 50%;

    transform:
        translateY(-50%);

    z-index: 2;

    width: 20px;

    display: flex;

    align-items: center;
    justify-content: center;

    color:
        #7B8794;

    font-size: 14px;

    pointer-events: none;
}


/* =========================================================
   INPUT
   ========================================================= */

.login-input {
    width: 100%;

    height: 52px;

    padding:
        0 46px 0 47px;

    border:
        1px solid #D5DDE5;

    border-radius: 11px;

    outline: none;

    background:
        #FFFFFF;

    color:
        #172B3D;

    font-size: 12px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.login-input::placeholder {
    color:
        #9AA7B4;
}


.login-input:hover {
    border-color:
        #B9C4CF;
}


.login-input:focus {
    border-color:
        #D89A21;

    background:
        #FFFFFF;

    box-shadow:
        0 0 0 4px rgba(216, 154, 33, 0.10);
}


/* =========================================================
   PASSWORD TOGGLE
   ========================================================= */

.password-toggle {
    position: absolute;

    right: 8px;
    top: 50%;

    transform:
        translateY(-50%);

    width: 36px;
    height: 36px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 0;

    border-radius: 8px;

    background:
        transparent;

    color:
        #667789;

    font-size: 15px;

    transition:
        0.2s ease;
}


.password-toggle:hover {
    background:
        #FFF7E5;

    color:
        #03182D;
}


/* =========================================================
   ERROR MESSAGE
   ========================================================= */

.login-error {
    width: 100%;

    min-height: 0;

    margin:
        0 0 12px;

    padding:
        0;

    color:
        #C43D4B;

    font-size: 10px;

    font-weight: 750;

    line-height: 1.5;
}


.login-error:not(:empty) {
    padding:
        10px 12px;

    border:
        1px solid #EFCFD4;

    border-radius: 9px;

    background:
        #FCEBED;
}


/* =========================================================
   SUCCESS MESSAGE
   ========================================================= */

.login-success {
    width: 100%;

    min-height: 0;

    margin:
        0 0 12px;

    padding:
        0;

    color:
        #198754;

    font-size: 10px;

    font-weight: 750;
}


.login-success:not(:empty) {
    padding:
        10px 12px;

    border:
        1px solid #CBE9D9;

    border-radius: 9px;

    background:
        #EAF7F0;
}


/* =========================================================
   SIGN IN BUTTON
   ========================================================= */

.login-submit {
    width: 100%;

    height: 52px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    margin-top: 7px;

    border: 0;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #D89A21 0%,
            #F3BD45 100%
        );

    color:
        #03182D;

    font-size: 12px;

    font-weight: 900;

    letter-spacing: 0.15px;

    box-shadow:
        0 9px 22px rgba(216, 154, 33, 0.22);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}


.login-submit:hover {
    transform:
        translateY(-2px);

    box-shadow:
        0 13px 28px rgba(216, 154, 33, 0.30);

    filter:
        brightness(1.02);
}


.login-submit:active {
    transform:
        translateY(0);
}


.login-submit:disabled {
    cursor:
        not-allowed;

    opacity:
        0.75;

    transform:
        none;

    box-shadow:
        none;
}


/* =========================================================
   LOGIN LOADER
   ========================================================= */

.login-submit .spinner {
    width: 17px;
    height: 17px;

    margin: 0;

    border:
        2px solid rgba(3, 24, 45, 0.20);

    border-top-color:
        #03182D;
}


/* =========================================================
   BACK TO WEBSITE
   ========================================================= */

.login-back {
    display: block;

    width: fit-content;

    margin:
        22px auto 0;

    color:
        #667789;

    font-size: 10px;

    font-weight: 750;

    text-align: center;

    transition:
        0.2s ease;
}


.login-back:hover {
    color:
        #9A6B0A;

    text-decoration:
        underline;
}


/* =========================================================
   LOGIN FOCUS
   ========================================================= */

.login-page button:focus-visible,
.login-page input:focus-visible,
.login-page a:focus-visible {
    outline:
        3px solid rgba(216, 154, 33, 0.25);

    outline-offset:
        2px;
}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 950px) {

    .login-page {
        grid-template-columns:
            1fr;
    }


    .login-brand-panel {
        min-height:
            auto;

        padding:
            55px 35px;
    }


    .login-brand-content {
        max-width:
            650px;
    }


    .login-brand-content h1 {
        font-size:
            42px;
    }


    .login-form-panel {
        min-height:
            auto;

        padding:
            45px 25px;
    }

}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .login-brand-panel {
        padding:
            40px 22px;
    }


    .login-logo {
        width: 70px;
        height: 70px;

        margin-bottom:
            22px;

        border-radius:
            15px;
    }


    .login-brand-content h1 {
        font-size:
            32px;

        letter-spacing:
            -0.6px;
    }


    .login-brand-content > p {
        font-size:
            11px;
    }


    .login-features {
        grid-template-columns:
            1fr;

        margin-top:
            25px;
    }


    .login-form-panel {
        padding:
            25px 15px 35px;
    }


    .login-card {
        padding:
            30px 22px;

        border-radius:
            16px;
    }


    .login-card-header h2 {
        font-size:
            24px;
    }

}


/* =========================================================
   RESPONSIVE — SMALL MOBILE
   ========================================================= */

@media (max-width: 400px) {

    .login-brand-panel {
        padding:
            32px 17px;
    }


    .login-brand-content h1 {
        font-size:
            28px;
    }


    .login-form-panel {
        padding:
            18px 10px 28px;
    }


    .login-card {
        padding:
            26px 18px;
    }

}