/* ==========================
   GOOGLE FONT
========================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ==========================
   ROOT COLOR
========================== */

:root{

    --primary:#166534;
    --secondary:#22C55E;
    --accent:#FACC15;

    --background:#EEF3F8;
    --surface:#FFFFFF;

    --text:#1F2937;
    --text-light:#6B7280;

    --radius:20px;

    --shadow:
        0 15px 40px rgba(15,23,42,.08);

}

/* ==========================
   RESET
========================== */

*{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

/* ==========================
   BODY
========================== */

body{

    font-family:'Plus Jakarta Sans',sans-serif;
    color:var(--text);
    background:#eef3f8;
    overflow-x:hidden;

}

/* ==========================
   MAIN CONTAINER
========================== */

.container{

    width:100%;
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:40px;

}

/* ==========================
   CARD
========================== */

.card{

    width:100%;
    max-width:520px;
    background:var(--surface);

    border-radius:24px;

    padding:34px 40px;

    box-shadow:var(--shadow);

}

/* ==========================
   TITLE
========================== */

.title{

    font-size:34px;
    font-weight:700;
    color:var(--primary);
    text-align:center;

}

/* ==========================
   SUBTITLE
========================== */

.subtitle{

    text-align:center;
    color:var(--text-light);
    margin-top:10px;
    line-height:1.6;
    font-size:15px;

}

/* ==========================
   SCHOOL LOGO
========================== */

.school-logo{

    width:120px;
    display:block;
    margin:0 auto 20px;
    transition:.35s ease;

}

.school-logo:hover{

    transform:scale(1.05);

}

/* ==========================
   LOGIN FORM
========================== */

.login-form{

    margin-top:26px;
    display:flex;
    flex-direction:column;
    gap:12px;

}

/* ==========================
   INPUT
========================== */

.input-box{

    width:100%;
    padding:16px 18px;
    border:2px solid #E5E7EB;
    border-radius:12px;
    outline:none;
    font-size:15px;
    transition:.3s;
    background:#FAFAFA;
    transition: all .25s ease;
    height:56px;
    font-size:15px;

border-radius:14px;

}

.input-box:focus{

    border-color:var(--primary);
    background:white;
    box-shadow:0 0 0 4px rgba(27,94,32,.12);

}

/* ==========================
   BUTTON
========================== */

.login-button{

    margin-top:10px;
    padding:15px;
    border:none;
    border-radius:12px;
    background:var(--primary);
    color:white;
    font-size:16px;
    font-weight:600;
    cursor:pointer;
    transition:.3s;

}

.login-button:hover{

    background:var(--secondary);
    transform:translateY(-2px);

}

.login-button:active{

    transform:scale(.98);

}

.password-group{
    position: relative;
}

.toggle-password{
    position:absolute;
    right:16px;
    top:50%;
    transform:translateY(-50%);

    border:none;
    background:transparent;
    outline:none;

    cursor:pointer;

    color:#94A3B8;
    font-size:18px;

    padding:0;

    display:flex;
    align-items:center;
    justify-content:center;

    transition:.25s;
}

.toggle-password:hover{
    color:var(--primary);
}

.error-message{
    color:#e53935;
    font-size:13px;
    margin-top:4px;
    margin-bottom:6px;
    min-height:0;
    font-weight:500;
}

/* Input Error */
.input-error{
    border:1.5px solid #e53935 !important;
    box-shadow:0 0 0 3px rgba(229,57,53,.10);
}

/* Input Normal */
.input-box{
    transition:all .25s ease;
}

/* ==========================
   SPLIT LAYOUT
========================== */

.login-layout{
    display:flex;
    min-height:100vh;
}

.branding-panel{
    flex:1;
    background:linear-gradient(135deg,#166534,#22c55e);
    color:#fff;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:60px;
    position:relative;
}

.branding-content{
    max-width:420px;
    z-index:2;
}

.brand-logo{
    width:110px;
    margin-bottom:24px;
}

.branding-content h1{
    font-size:54px;
    font-weight:800;
    margin-bottom:12px;
}

.branding-content h2{
    font-size:22px;
    font-weight:600;
    margin-bottom:18px;
}

.branding-content p{
    line-height:1.8;
    opacity:.9;
}

.login-panel{
    flex:1;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:48px;
}

.login-footer{

    margin-top:34px;
    text-align:center;
    font-size:11px;
    font-weight:500;
    color:#94A3B8;
    opacity:.55;
    letter-spacing:.8px;
    user-select:none;

}

/* ==========================
   TOAST NOTIFICATION
========================== */

.toast{

    position:fixed;
    top:30px;
    right:30px;
    min-width:320px;
    background:#FFFFFF;
    border-radius:16px;
    box-shadow:0 18px 40px rgba(0,0,0,.15);
    display:flex;
    align-items:center;
    gap:14px;
    padding:18px 20px;
    opacity:0;
    visibility:hidden;
    transform:translateY(-20px);
    transition:.35s ease;
    z-index:9999;

}

.toast.show{

    opacity:1;
    visibility:visible;
    transform:translateY(0);

}

.toast-icon{

    width:46px;
    height:46px;
    border-radius:50%;
    background:#E8F5E9;
    color:#2E7D32;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:22px;
    font-weight:700;

}

.toast-title{

    font-size:15px;
    font-weight:700;
    color:#263238;

}

.toast-message{

    margin-top:3px;
    font-size:13px;
    color:#607D8B;

}

/* ==========================
   MODERN LOADING
========================== */

.loading-overlay{
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,.75);
    backdrop-filter: blur(5px);

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;

    opacity:0;
    visibility:hidden;

    transition:.35s;
    z-index:9999;
}

.loading-overlay.show{
    opacity:1;
    visibility:visible;
}

.spinner{
    width:55px;
    height:55px;

    border:5px solid #e5e7eb;
    border-top:5px solid #2563eb;
    border-radius:50%;

    animation:spin .8s linear infinite;
}

#globalLoadingOverlay .spinner{
    border-top-color:#166534;
}

.simata-loading-spinner{
    width:32px;
    height:32px;
    border:3px solid #e2e8f0;
    border-top-color:#166534;
    border-radius:50%;
    animation:simataSpin .75s linear infinite;
    display:inline-block;
}

.btn-spinner-icon svg{
    animation:simataSpin .75s linear infinite;
}

.loading-overlay p{
    margin-top:18px;
    color:#1f2937;
    font-weight:600;
    font-size:15px;
}

@keyframes spin{
    to{
        transform:rotate(360deg);
    }
}

@keyframes simataSpin{
    to{
        transform:rotate(360deg);
    }
}

/* ==========================
   RIPPLE BUTTON
========================== */

.login-button{
    position: relative;
    overflow: hidden;
}

.ripple{
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple .6s linear;
    background: rgba(255,255,255,.45);
    pointer-events: none;
}

@keyframes ripple{

    to{
        transform: scale(4);
        opacity: 0;
    }

}

/* =====================================================
   SIMATA DASHBOARD
   Sprint 2 — Tahap 2.5
   Dashboard UI Redesign
===================================================== */


/* =====================================================
   DASHBOARD PAGE
===================================================== */

.dashboard-page{

    margin:0;
    background:#F4F6F4;
    color:#1F2937;
    font-family:'Plus Jakarta Sans',sans-serif;
    overflow-x:hidden;

}


/* =====================================================
   DASHBOARD LAYOUT
===================================================== */

.dashboard-layout{

    min-height:100vh;
    display:flex;

}


/* =====================================================
   SIDEBAR
===================================================== */

.dashboard-layout .sidebar{

    width:265px;
    min-height:100vh;
    flex-shrink:0;
    display:flex;
    flex-direction:column;
    background:
        linear-gradient(
            180deg,
            #0F2419 0%,
            #12301F 100%
        );

    color:#FFFFFF;
    position:relative;
    overflow:hidden;

}


/* Decorative glow */

.dashboard-layout .sidebar::before{

    content:"";
    position:absolute;
    width:260px;
    height:260px;
    top:-140px;
    right:-120px;
    background:rgba(34,197,94,.12);
    border-radius:50%;
    pointer-events:none;

}


/* =====================================================
   SIDEBAR LOGO
===================================================== */

.dashboard-layout .sidebar-logo{

    padding:32px 24px 28px;
    text-align:center;
    border-bottom:1px solid rgba(255,255,255,.08);
    position:relative;
    z-index:1;

}


.dashboard-layout .sidebar-logo img{

    width:72px;
    height:72px;
    object-fit:contain;
    display:block;
    margin:0 auto 16px;

}


.dashboard-layout .sidebar-logo h2{

    margin:0;
    font-size:22px;
    font-weight:800;
    letter-spacing:.5px;

}


.dashboard-layout .sidebar-logo p{

    margin:6px 0 0;
    color:rgba(255,255,255,.58);
    font-size:11px;
    font-weight:500;
    letter-spacing:.3px;

}


/* =====================================================
   SIDEBAR MENU
===================================================== */

.dashboard-layout .sidebar-menu{

    flex:1;
    padding:24px 14px;
    position:relative;
    z-index:1;

}


.dashboard-layout .sidebar-menu ul{

    list-style:none;
    padding:0;
    margin:0;

}


.dashboard-layout .sidebar-menu li{

    min-height:50px;
    display:flex;
    align-items:center;
    gap:14px;
    padding:0 16px;
    margin-bottom:6px;
    border-radius:12px;

    color:rgba(255,255,255,.72);

    cursor:pointer;

    transition:
        background .25s ease,
        color .25s ease,
        transform .25s ease;

}


.dashboard-layout .sidebar-menu li:hover{

    background:rgba(255,255,255,.07);
    color:#FFFFFF;
    transform:translateX(3px);

}


.dashboard-layout .sidebar-menu li.active{

    background:
        linear-gradient(
            90deg,
            rgba(34,197,94,.22),
            rgba(34,197,94,.08)
        );

    color:#FFFFFF;

    box-shadow:
        inset 3px 0 0 #22C55E;

}


/* =====================================================
   MENU ICON
===================================================== */

.dashboard-layout .menu-icon{

    width:21px;
    height:21px;
    flex-shrink:0;
    display:flex;
    align-items:center;
    justify-content:center;

}


.dashboard-layout .menu-icon svg{

    width:19px;
    height:19px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;

}


.dashboard-layout .sidebar-menu li.active .menu-icon{

    color:#4ADE80;

}


.dashboard-layout .menu-text{

    font-size:13px;
    font-weight:600;
    letter-spacing:.1px;

}


/* =====================================================
   SIDEBAR FOOTER
===================================================== */

.dashboard-layout .sidebar-footer{

    padding:18px 14px 24px;
    border-top:1px solid rgba(255,255,255,.08);
    position:relative;
    z-index:1;

}


.dashboard-layout .logout-button{

    width:100%;
    min-height:48px;
    display:flex;
    align-items:center;
    gap:14px;
    padding:0 16px;
    border:0;
    border-radius:12px;
    background:transparent;

    color:rgba(255,255,255,.65);

    font-family:inherit;
    font-size:13px;

    font-weight:600;

    cursor:pointer;

    transition:
        background .25s ease,
        color .25s ease;

}


.dashboard-layout .logout-button:hover{

    background:rgba(250,204,21,.08);

    color:#FACC15;

}


.dashboard-layout .logout-button .menu-icon{

    color:currentColor;

}


.dashboard-layout .logout-button:disabled{

    opacity:.55;
    cursor:not-allowed;

}


/* =====================================================
   MAIN
===================================================== */

.dashboard-layout .main{

    min-width:0;
    flex:1;
    display:flex;
    flex-direction:column;
    background:#F4F6F4;

}


/* =====================================================
   TOPBAR
===================================================== */

.dashboard-layout .topbar{

    min-height:78px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:30px;
    padding:0 34px;
    background:#FFFFFF;
    border-bottom:1px solid #E7EBE8;

}


.dashboard-layout .topbar-left{

    display:flex;
    flex-direction:column;
    gap:3px;

}


.dashboard-layout .topbar-label{

    color:#789083;
    font-size:9px;
    font-weight:700;
    letter-spacing:1.5px;

}


.dashboard-layout .topbar-left h1{

    margin:0;
    color:#17241C;
    font-size:21px;
    font-weight:750;
    letter-spacing:-.4px;

}


/* =====================================================
   TOPBAR RIGHT
===================================================== */

.dashboard-layout .topbar-right{

    display:flex;
    align-items:center;
    gap:28px;

}


/* =====================================================
   LIVE CLOCK
===================================================== */

.dashboard-layout .live-clock{

    display:flex;
    align-items:center;
    gap:8px;
    color:#65766C;
    font-size:12px;
    font-weight:600;
    letter-spacing:.3px;

}


.dashboard-layout .clock-dot{

    width:7px;
    height:7px;
    border-radius:50%;
    background:#22C55E;

    box-shadow:
        0 0 0 4px rgba(34,197,94,.10);

}


/* =====================================================
   USER PROFILE
===================================================== */

.dashboard-layout .user-profile-wrapper {
    position: relative;
    display: inline-block;
}

.dashboard-layout .user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 1px solid transparent;
    padding: 4px 8px;
    border-radius: 9999px;
    cursor: pointer;
    text-align: left;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.dashboard-layout .user-profile:hover,
.dashboard-layout .user-profile[aria-expanded="true"] {
    background: #F3F4F6;
    border-color: #E5E7EB;
}

.dashboard-layout .user-profile:focus-visible {
    box-shadow: 0 0 0 2px #22C55E;
}

.dashboard-layout .user-avatar {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #166534, #22C55E);
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 3px 8px rgba(22, 101, 52, .20);
    user-select: none;
}

.dashboard-layout .user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dashboard-layout .user-name {
    color: #1F2A23;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.2;
}

.dashboard-layout .user-info small {
    color: #849188;
    font-size: 10.5px;
    font-weight: 500;
    line-height: 1.2;
}

.dashboard-layout .profile-chevron {
    width: 16px;
    height: 16px;
    color: #9CA3AF;
    transition: transform .2s ease, color .2s ease;
    flex-shrink: 0;
}

.dashboard-layout .user-profile:hover .profile-chevron,
.dashboard-layout .user-profile[aria-expanded="true"] .profile-chevron {
    color: #374151;
}

.dashboard-layout .user-profile[aria-expanded="true"] .profile-chevron {
    transform: rotate(180deg);
}

/* Dropdown Menu Box */
.dashboard-layout .profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 170px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, .10), 0 8px 10px -6px rgba(0, 0, 0, .06);
    padding: 6px;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.97);
    transform-origin: top right;
    transition: opacity .16s cubic-bezier(0.16, 1, 0.3, 1), transform .16s cubic-bezier(0.16, 1, 0.3, 1), visibility .16s;
    pointer-events: none;
}

.dashboard-layout .profile-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.dashboard-layout .profile-dropdown-divider {
    height: 1px;
    background-color: #F3F4F6;
    margin: 4px 0;
}

/* Dropdown Action Items */
.dashboard-layout .profile-dropdown-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #374151;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
    box-sizing: border-box;
    outline: none;
}

.dashboard-layout .profile-dropdown-item:hover,
.dashboard-layout .profile-dropdown-item:focus-visible {
    background: #F3F4F6;
    color: #111827;
}

.dashboard-layout .profile-dropdown-item .dropdown-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: #6B7280;
    flex-shrink: 0;
}

.dashboard-layout .profile-dropdown-item .dropdown-item-icon svg {
    width: 18px;
    height: 18px;
}

.dashboard-layout .profile-dropdown-item:hover .dropdown-item-icon {
    color: #111827;
}

/* Danger Item (Logout) */
.dashboard-layout .profile-dropdown-item-danger {
    color: #DC2626;
}

.dashboard-layout .profile-dropdown-item-danger .dropdown-item-icon {
    color: #DC2626;
}

.dashboard-layout .profile-dropdown-item-danger:hover,
.dashboard-layout .profile-dropdown-item-danger:focus-visible {
    background: #FEF2F2;
    color: #B91C1C;
}

.dashboard-layout .profile-dropdown-item-danger:hover .dropdown-item-icon {
    color: #B91C1C;
}

.dashboard-layout .profile-dropdown-item:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.dashboard-layout .profile-dropdown-item.loading {
    opacity: .7;
    pointer-events: none;
}


/* =====================================================
   CONTENT
===================================================== */

.dashboard-layout .content{

    flex:1;
    padding:32px 34px 45px;

}


/* =====================================================
   WELCOME CARD
===================================================== */

.dashboard-layout .welcome-card{

    min-height:185px;

    position:relative;

    overflow:hidden;
    display:flex;
    align-items:center;
    padding:36px 38px;
    margin-bottom:32px;
    border-radius:22px;

    background:
        linear-gradient(
            115deg,
            #123C24 0%,
            #166534 58%,
            #1E7A3D 100%
        );

    color:#FFFFFF;

    box-shadow:
        0 16px 35px rgba(15,61,31,.16);

}


/* Decorative shapes */

.dashboard-layout .welcome-card::before{

    content:"";
    position:absolute;
    width:280px;
    height:280px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:50%;
    right:-80px;
    top:-150px;

}


.dashboard-layout .welcome-card::after{

    content:"";
    position:absolute;
    width:190px;
    height:190px;
    border:1px solid rgba(250,204,21,.13);
    border-radius:50%;
    right:55px;
    bottom:-125px;

}


/* =====================================================
   WELCOME CONTENT
===================================================== */

.dashboard-layout .welcome-content{

    position:relative;
    z-index:2;

}


.dashboard-layout .section-label{

    display:block;
    margin-bottom:8px;
    color:#6B806F;
    font-size:9px;
    font-weight:800;
    letter-spacing:1.7px;

}


.dashboard-layout .welcome-card .section-label{

    color:rgba(255,255,255,.58);

}


.dashboard-layout .welcome-card h2{

    margin:0 0 8px;
    color:#FFFFFF;
    font-size:29px;
    font-weight:750;
    letter-spacing:-.8px;

}


.dashboard-layout .welcome-card p{

    max-width:620px;
    margin:0;
    color:rgba(255,255,255,.76);
    font-size:12px;
    line-height:1.8;

}


/* =====================================================
   WELCOME DECORATION
===================================================== */

.dashboard-layout .welcome-decoration{

    position:absolute;
    inset:0;
    pointer-events:none;

}


.dashboard-layout .decoration-circle{

    position:absolute;
    border-radius:50%;

}


.dashboard-layout .circle-one{

    width:120px;
    height:120px;
    right:120px;
    top:28px;
    border:1px solid rgba(255,255,255,.08);

}


.dashboard-layout .circle-two{

    width:60px;
    height:60px;
    right:160px;
    top:58px;
    background:rgba(250,204,21,.08);

}


/* =====================================================
   SECTION HEADING
===================================================== */

.dashboard-layout .section-heading{

    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    margin-bottom:17px;

}


.dashboard-layout .section-heading h2{

    margin:0;
    color:#1C2A21;
    font-size:19px;
    font-weight:750;
    letter-spacing:-.4px;

}


/* =====================================================
   STATISTICS GRID
===================================================== */

.dashboard-layout .stats-grid{

    display:grid;

    grid-template-columns:
        repeat(4,minmax(0,1fr));

    gap:18px;

}


/* =====================================================
   STAT CARD
===================================================== */

.dashboard-layout .stat-card{

    min-height:142px;
    display:flex;
    align-items:center;
    gap:17px;
    padding:23px;
    position:relative;
    overflow:hidden;
    background:#FFFFFF;
    border:1px solid #E8EDE9;
    border-radius:18px;

    box-shadow:
        0 8px 24px rgba(25,45,33,.055);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;

}


.dashboard-layout .stat-card::after{

    content:"";
    position:absolute;
    width:80px;
    height:80px;
    right:-35px;
    bottom:-35px;
    border-radius:50%;
    background:rgba(34,197,94,.045);

}


.dashboard-layout .stat-card:hover{

    transform:translateY(-4px);
    border-color:#D7E6DB;
    box-shadow:
        0 15px 32px rgba(25,45,33,.09);

}


/* =====================================================
   STAT ICON
===================================================== */

.dashboard-layout .stat-icon{

    width:48px;
    height:48px;
    flex-shrink:0;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:14px;
    background:#EDF7EF;
    color:#166534;

}


.dashboard-layout .stat-icon svg{

    width:22px;
    height:22px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;

}


/* =====================================================
   STAT DATA
===================================================== */

.dashboard-layout .stat-data{

    display:flex;
    flex-direction:column;
    gap:5px;

}


.dashboard-layout .stat-data span{

    color:#7B8980;
    font-size:10px;
    font-weight:600;
    line-height:1.4;

}


.dashboard-layout .stat-data strong{

    color:#17251C;
    font-size:28px;
    font-weight:800;
    line-height:1;
    letter-spacing:-1px;

}


/* =====================================================
   LOADING STATE
===================================================== */

.dashboard-layout .logout-button.loading{

    pointer-events:none;

}


.dashboard-layout .logout-button.loading .menu-icon{

    animation:
        dashboardSpin .8s linear infinite;

}


@keyframes dashboardSpin{

    to{
        transform:rotate(360deg);
    }

}


/* =====================================================
   TABLET
===================================================== */

@media(max-width:1100px){

    .dashboard-layout .sidebar{

        width:235px;

    }


    .dashboard-layout .content{

        padding:28px 25px 40px;

    }


    .dashboard-layout .topbar{

        padding:0 25px;

    }


    .dashboard-layout .stats-grid{

        grid-template-columns:
            repeat(2,minmax(0,1fr));

    }

}


/* =====================================================
   MOBILE
===================================================== */

@media(max-width:760px){

    .dashboard-layout{

        display:block;

    }


    .dashboard-layout .sidebar{

        width:100%;
        min-height:auto;

    }


    .dashboard-layout .sidebar-logo{

        padding:20px;

    }


    .dashboard-layout .sidebar-logo img{

        width:55px;
        height:55px;
        margin-bottom:9px;

    }


    .dashboard-layout .sidebar-logo h2{

        font-size:19px;

    }


    .dashboard-layout .sidebar-menu{

        padding:12px;

    }


    .dashboard-layout .sidebar-menu ul{

        display:grid;

        grid-template-columns:
            repeat(2,1fr);

        gap:5px;

    }


    .dashboard-layout .sidebar-menu li{

        margin:0;
        min-height:44px;
        padding:0 12px;

    }


    .dashboard-layout .sidebar-footer{

        padding:10px 12px 15px;

    }


    .dashboard-layout .logout-button{

        min-height:44px;

    }


    .dashboard-layout .topbar{

        min-height:70px;
        padding:0 18px;

    }


    .dashboard-layout .topbar-right{

        gap:12px;

    }


    .dashboard-layout .live-clock{

        display:none;

    }


    .dashboard-layout .user-info{

        display:none;

    }


    .dashboard-layout .content{

        padding:22px 16px 35px;

    }


    .dashboard-layout .welcome-card{

        min-height:170px;
        padding:28px 25px;
        margin-bottom:27px;

    }


    .dashboard-layout .welcome-card h2{

        font-size:24px;

    }


    .dashboard-layout .stats-grid{

        grid-template-columns:1fr;
        gap:12px;

    }


    .dashboard-layout .stat-card{

        min-height:105px;

    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media(max-width:420px){

    .dashboard-layout .sidebar-menu ul{

        grid-template-columns:1fr;

    }


    .dashboard-layout .topbar-left h1{

        font-size:18px;

    }


    .dashboard-layout .welcome-card{

        min-height:155px;
        padding:24px 21px;

    }


    .dashboard-layout .welcome-card h2{

        font-size:22px;

    }


    .dashboard-layout .welcome-card p{

        font-size:11px;

    }

}

/* =====================================================
   STUDENT TABLE ACTION BUTTONS
===================================================== */

.student-action-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 30px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    white-space: nowrap;
    text-decoration: none;
    line-height: 1;
}

.btn-action .btn-action-icon {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* Edit: Primary Green */
.btn-action-edit {
    background: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}

.btn-action-edit:hover {
    background: #dcfce7;
    border-color: #86efac;
    color: #14532d;
}

.btn-action-edit:active {
    background: #bbf7d0;
    transform: translateY(1px);
}

/* Detail: Neutral Slate */
.btn-action-detail {
    background: #f8fafc;
    color: #334155;
    border-color: #cbd5e1;
}

.btn-action-detail:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    color: #0f172a;
}

.btn-action-detail:active {
    background: #cbd5e1;
    transform: translateY(1px);
}

/* QR: Accent Emerald */
.btn-action-qr {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}

.btn-action-qr:hover {
    background: #d1fae5;
    border-color: #6ee7b7;
    color: #065f46;
}

.btn-action-qr:active {
    background: #a7f3d0;
    transform: translateY(1px);
}

.btn-action:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 1px;
}

/* =====================================================
   SIMATA TABLE & STATUS BADGES
===================================================== */

.simata-table {
    border-collapse: separate;
    border-spacing: 0;
}

.simata-table thead th {
    letter-spacing: 0.02em;
}

.simata-table-row {
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.15s ease;
}

.simata-table-row:hover {
    background-color: #f8fafc;
}

.simata-table-row:last-child td {
    border-bottom: none;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 9999px;
    line-height: 1;
    white-space: nowrap;
}

.status-badge-active {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.status-badge-inactive {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.status-badge-izin {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.status-badge-sakit {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

/* =====================================================
   CLASS SUMMARY CHIPS
===================================================== */

.class-summary-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease;
    line-height: 1;
}

.class-summary-chip:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: #0f172a;
}

.class-summary-chip.active {
    background: #f0fdf4;
    border-color: #86efac;
    color: #166534;
    font-weight: 700;
}

.class-summary-chip .chip-badge {
    background: #e2e8f0;
    color: #334155;
    padding: 2px 6px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.class-summary-chip.active .chip-badge {
    background: #166534;
    color: #ffffff;
}

/* =====================================================
   STUDENT EDIT MODAL REDESIGN (BUG 9)
===================================================== */

.student-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 16px;
    box-sizing: border-box;
}

.student-modal-card {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
    box-sizing: border-box;
    overflow: hidden;
    margin: auto;
}

.student-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
    flex-shrink: 0;
}

.student-modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.student-modal-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.student-modal-close-btn:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.student-modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.student-form-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.student-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #166534;
    padding-bottom: 4px;
    border-bottom: 1.5px solid #dcfce7;
}

.student-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
}

.student-col-span-2 {
    grid-column: span 2;
}

.student-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.student-form-label {
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    line-height: 1.2;
}

.student-form-label .field-hint {
    font-size: 11px;
    font-weight: 400;
    color: #94a3b8;
}

.student-form-label .field-required {
    color: #ef4444;
    font-weight: 700;
}

.student-form-group .input-box {
    height: 42px;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 13.5px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.student-form-group select.input-box {
    padding-right: 32px;
    background-color: #ffffff;
}

.student-form-group .input-box:focus {
    border-color: #166534;
    box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.1);
    outline: none;
}

.student-form-group input:disabled {
    background-color: #f8fafc !important;
    color: #64748b !important;
    cursor: not-allowed;
    border-color: #e2e8f0 !important;
    font-family: monospace;
    font-size: 13px;
}

.student-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 24px;
    border-top: 1px solid #f1f5f9;
    background: #ffffff;
    flex-shrink: 0;
}

.student-btn-cancel {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
    padding: 0 18px !important;
    height: 42px !important;
    margin: 0 !important;
    display: inline-flex;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 600 !important;
}

.student-btn-cancel:hover {
    background: #e2e8f0 !important;
    color: #1e293b !important;
}

.student-btn-save {
    padding: 0 24px !important;
    height: 42px !important;
    margin: 0 !important;
    display: inline-flex;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 600 !important;
}

/* ==========================================================================
   BUG 10 — DASHBOARD CLEANUP: REUSABLE UI STYLES
   ========================================================================== */

/* 1. Responsive Table Container */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    margin-top: 16px;
}

/* 2. Section Action Bar Spacing */
.section-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

/* 3. Legacy Modals Presentation */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-card {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    min-width: 320px;
    max-width: 720px;
    width: min(92vw, 720px);
    box-sizing: border-box;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-footer {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.btn-secondary {
    background: #e5e7eb !important;
    color: #1f2937 !important;
}

.btn-secondary:hover {
    background: #d1d5db !important;
}

/* ==========================================================================
   BUG 20 REFINED: MODAL PROCESSING OVERLAY & PREMIUM ANIMATED LOADER
   ========================================================================== */

.modal-processing-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 200;
    border-radius: inherit;
    opacity: 0;
    transform: scale(0.96);
    pointer-events: none;
    transition: opacity 180ms cubic-bezier(0.16, 1, 0.3, 1), transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
    padding: 24px;
    box-sizing: border-box;
}

.modal-processing-overlay.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.modal-processing-overlay.closing {
    opacity: 0;
    transform: scale(0.98);
    pointer-events: none;
    transition: opacity 160ms cubic-bezier(0.4, 0, 1, 1), transform 160ms cubic-bezier(0.4, 0, 1, 1);
}

.modal-processing-overlay .premium-loader {
    position: relative;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.modal-processing-overlay .loader-ring-outer {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3.5px solid rgba(22, 101, 52, 0.12);
    border-top-color: #166534;
    border-right-color: #22c55e;
    animation: simataPremiumOuter 1.1s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.modal-processing-overlay .loader-ring-inner {
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 2.5px solid rgba(22, 101, 52, 0.08);
    border-bottom-color: #15803d;
    border-left-color: rgba(34, 197, 94, 0.35);
    animation: simataPremiumInner 1.3s cubic-bezier(0.4, 0, 0.2, 1) infinite reverse;
}

.modal-processing-overlay .loader-core-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #166534;
    box-shadow: 0 0 8px rgba(22, 101, 52, 0.35);
    animation: simataCorePulse 1.1s ease-in-out infinite alternate;
}

.modal-processing-overlay .processing-title {
    font-size: 15.5px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px 0;
    letter-spacing: -0.01em;
    text-align: center;
}

.modal-processing-overlay .processing-subtitle {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    margin: 0;
    text-align: center;
}

@keyframes simataPremiumOuter {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes simataPremiumInner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes simataCorePulse {
    0% { transform: scale(0.85); opacity: 0.7; }
    100% { transform: scale(1.15); opacity: 1; }
}

/* =========================================
   BUG 22 REPORTING HUB STYLES
========================================= */
.rpt-control-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.rpt-level-title {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.rpt-segmented-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.rpt-seg-btn {
  flex: 1;
  min-width: 140px;
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: #475569;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s ease-in-out;
  text-align: center;
}

.rpt-seg-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.6);
  color: #0f172a;
}

.rpt-seg-btn.active {
  background: #166534;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(22, 101, 52, 0.25);
}

.rpt-sub-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rpt-sub-btn {
  padding: 7px 14px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}

.rpt-sub-btn:hover:not(.active):not(:disabled) {
  border-color: #94a3b8;
  background: #f8fafc;
}

.rpt-sub-btn.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.rpt-sub-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #94a3b8;
}

.rpt-blocked-banner {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 16px;
  animation: fadeIn 0.2s ease-in-out;
}

.rpt-filter-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.rpt-filter-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
}

.rpt-filter-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 140px;
}

.rpt-filter-field label {
  font-size: 11.5px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rpt-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  justify-content: flex-end;
}

.rpt-badge-not-avail {
  font-size: 10px;
  font-weight: 700;
  background: #fee2e2;
  color: #dc2626;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: 1px;
}

.rpt-table-header-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e2e8f0;
}

.rpt-table-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.rpt-table-badge {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 6px;
}

/* ===================================================
   SIMATA RESPONDER PAGE REDESIGN (Professional & Clean)
   =================================================== */

.responder-header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.responder-header-left {
  display: flex;
  flex-direction: column;
}

.responder-title {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 2px 0 0;
  line-height: 1.25;
}

.responder-subtitle {
  font-size: 13px;
  color: #64748b;
  margin: 4px 0 0;
  font-weight: 500;
}

.responder-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

#responderStatusBadge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 9999px;
  background: #ecfdf5 !important;
  color: #065f46 !important;
  border: 1px solid #a7f3d0 !important;
  box-shadow: 0 1px 2px rgba(16, 185, 129, 0.1);
  text-transform: uppercase;
}

#responderStatusBadge::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: responderPulse 1.8s infinite;
}

@keyframes responderPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* RESPONDER FOOTER ACTIONS (Mobile Bottom) */
#responderFooterActions {
  display: none;
}

@media (max-width: 768px) {
  #responderFooterActions {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
    width: 100%;
  }
}

#finishResponderBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 16px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 9px;
  background: #ffffff;
  color: #dc2626;
  border: 1.5px solid #fecaca;
  box-shadow: 0 1px 2px rgba(220, 38, 38, 0.06);
  cursor: pointer;
  transition: all 0.18s ease-in-out;
}

#finishResponderBtn:hover {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.25);
  transform: translateY(-1px);
}

#finishResponderBtn:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(220, 38, 38, 0.2);
}

@media (max-width: 768px) {
  #finishResponderBtn {
    width: 100%;
    min-height: 46px;
    font-size: 13.5px;
    border-radius: 12px;
  }
}

/* OPERATOR INFO STRIP */
.responder-session-strip {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px 20px;
  margin-bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.04);
}

@media (max-width: 680px) {
  .responder-session-strip {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px 16px;
  }
}

.responder-meta-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 180px;
}

.responder-meta-item.responder-meta-right {
  justify-content: flex-end;
}

@media (max-width: 900px) {
  .responder-meta-item.responder-meta-right {
    justify-content: flex-start;
  }
}

.responder-meta-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.responder-meta-content {
  min-width: 0;
}

.responder-meta-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
}

.responder-meta-val {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.responder-role-pill {
  font-size: 11px;
  font-weight: 700;
  color: #166534;
  background: #dcfce7;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid #bbf7d0;
  text-transform: uppercase;
}

.responder-mode-badge {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.responder-session-id {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 13px;
  font-weight: 700;
  color: #0369a1;
  background: #f0f9ff;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid #bae6fd;
  display: inline-block;
  margin-top: 2px;
}

.responder-meta-divider {
  width: 1px;
  height: 32px;
  background: #e2e8f0;
}

/* RESPONDER GRID LAYOUT */
.simata-responder {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 991px) {
  .simata-responder {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.simata-responder-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.simata-responder-panel:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 30px -4px rgba(15, 23, 42, 0.08);
}

.responder-panel-header {
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.responder-panel-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.responder-panel-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.responder-panel-icon-teacher {
  background: #ecfdf5;
  color: #166534;
}

.responder-panel-icon-scanner {
  background: #f0fdf4;
  color: #15803d;
}

.responder-panel-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.2;
}

.responder-panel-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

/* RESPONDER 2-COLUMN FORM GRID */
.responder-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 640px) {
  .responder-form-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.responder-col-span-2 {
  grid-column: span 2;
}

@media (max-width: 640px) {
  .responder-col-span-2 {
    grid-column: span 1;
  }
}

/* RESPONDER GUIDE CARD & CHIPS */
#qrIdleView {
  display: flex;
  flex-direction: column;
}

.responder-guide-card {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  text-align: left;
  box-sizing: border-box;
  margin-top: 16px;
}

.responder-guide-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #166534;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.responder-guide-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.responder-step-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.responder-step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #166534;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.responder-step-item strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.3;
}

.responder-step-item p {
  font-size: 11px;
  color: #64748b;
  margin: 1px 0 0;
  line-height: 1.4;
}

.responder-qr-formats {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.responder-qr-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
}

.chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.chip-dot.emerald {
  background: #22c55e;
}

.chip-dot.blue {
  background: #3b82f6;
}

/* INTERACTIVE ACTION BOXES */
.responder-interactive-box {
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
  transition: all 0.2s ease-in-out;
}

.responder-interactive-box:hover {
  border-color: #22c55e;
  background: #f0fdf4;
}

.responder-box-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #ecfdf5;
  color: #166534;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(22, 101, 52, 0.08);
}

.responder-box-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
}

.responder-box-desc {
  font-size: 12px;
  color: #64748b;
  margin: 0 0 16px;
  line-height: 1.5;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

/* RESPONDER BUTTONS */
.btn-responder-primary {
  min-height: 44px;
  padding: 0 22px;
  background: linear-gradient(135deg, #166534 0%, #15803d 100%);
  color: #ffffff !important;
  border: 1px solid #166534;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(22, 101, 52, 0.25);
  transition: all 0.18s ease-in-out;
  text-decoration: none;
}

.btn-responder-primary:hover {
  background: linear-gradient(135deg, #15803d 0%, #166534 100%);
  box-shadow: 0 4px 12px rgba(22, 101, 52, 0.35);
  transform: translateY(-1px);
}

.btn-responder-primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(22, 101, 52, 0.2);
}

.btn-responder-secondary {
  min-height: 40px;
  padding: 0 18px;
  background: #ffffff;
  color: #475569 !important;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.18s ease-in-out;
  text-decoration: none;
}

.btn-responder-secondary:hover {
  background: #f8fafc;
  color: #0f172a !important;
  border-color: #94a3b8;
}

/* RESPONDER FORM CARDS */
.responder-form-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.responder-field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.responder-field-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.responder-required {
  color: #dc2626;
  margin-left: 3px;
}

.responder-form-card select.input-box,
.responder-form-card input.input-box {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  font-size: 13.5px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  transition: all 0.15s ease-in-out;
  box-sizing: border-box;
}

.responder-form-card select.input-box:focus,
.responder-form-card input.input-box:focus {
  border-color: #166534;
  outline: none;
  box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.12);
}

/* PERIOD CHECKBOX PILLS */
.period-checkbox-container {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px;
}

@media (max-width: 480px) {
  .period-checkbox-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.period-checkbox-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 8px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease-in-out;
  box-sizing: border-box;
}

.period-checkbox-label:hover {
  border-color: #166534;
  background: #f0fdf4;
  color: #166534;
}

.period-checkbox-label:has(input:checked) {
  background: #ecfdf5;
  border-color: #15803d;
  color: #14532d;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(22, 101, 52, 0.15);
}

/* SCANNER TARGET VIEWPORT */
.responder-scanner-viewport {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  background: #090e15;
}

.responder-scan-target {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.responder-scan-box {
  width: min(220px, 70%);
  aspect-ratio: 1/1;
  position: relative;
}

.responder-scan-corner {
  position: absolute;
  width: 24px;
  height: 24px;
}

.responder-scan-corner.tl { top: 0; left: 0; border-top: 3px solid #22c55e; border-left: 3px solid #22c55e; border-top-left-radius: 6px; }
.responder-scan-corner.tr { top: 0; right: 0; border-top: 3px solid #22c55e; border-right: 3px solid #22c55e; border-top-right-radius: 6px; }
.responder-scan-corner.bl { bottom: 0; left: 0; border-bottom: 3px solid #22c55e; border-left: 3px solid #22c55e; border-bottom-left-radius: 6px; }
.responder-scan-corner.br { bottom: 0; right: 0; border-bottom: 3px solid #22c55e; border-right: 3px solid #22c55e; border-bottom-right-radius: 6px; }

.responder-scan-laser {
  position: absolute;
  left: 4px;
  right: 4px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #22c55e, transparent);
  box-shadow: 0 0 10px #22c55e;
  animation: scanLaser 2s ease-in-out infinite alternate;
}

@keyframes scanLaser {
  0% { top: 8px; opacity: 0.4; }
  50% { opacity: 1; }
  100% { top: calc(100% - 8px); opacity: 0.4; }
}

/* FEEDBACK CARDS (SUCCESS, WARNING, DANGER) */
.responder-feedback-card {
  border-radius: 14px;
  padding: 24px 18px;
  text-align: center;
}

.responder-feedback-card.success {
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
}

.responder-feedback-card.warning {
  background: #fffbeb;
  border: 1.5px solid #fde68a;
}

.responder-feedback-card.danger {
  background: #fef2f2;
  border: 1.5px solid #fecaca;
}

.responder-feedback-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.responder-feedback-card.success .responder-feedback-icon {
  background: #22c55e;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.35);
}

.responder-feedback-card.warning .responder-feedback-icon {
  background: #f59e0b;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.responder-feedback-card.danger .responder-feedback-icon {
  background: #ef4444;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

.responder-feedback-title {
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 6px;
}

.responder-feedback-card.success .responder-feedback-title { color: #14532d; }
.responder-feedback-card.warning .responder-feedback-title { color: #92400e; }
.responder-feedback-card.danger .responder-feedback-title { color: #991b1b; }

.responder-feedback-desc {
  font-size: 12px;
  margin: 0 0 14px;
  line-height: 1.5;
}

.responder-feedback-card.success .responder-feedback-desc { color: #166534; }
.responder-feedback-card.warning .responder-feedback-desc { color: #b45309; }
.responder-feedback-card.danger .responder-feedback-desc { color: #b91c1c; }

/* STUDENT RESULT CARD */
.responder-student-card {
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.responder-student-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #22c55e;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(34, 197, 94, 0.3);
}

.responder-student-grid {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.responder-grid-cell-k {
  font-size: 10.5px;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 2px;
}

.responder-grid-cell-v {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

/* ============================================================
   PROFILE PHOTO (FEATURE 01) - Clean & Minimalist Aesthetic
   ============================================================ */
.profile-photo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
  text-align: center;
}

.profile-photo-avatar {
  position: relative;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.06);
  border: 3px solid #ffffff;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.profile-photo-avatar img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center center;
  display: none;
  max-width: none;
  max-height: none;
  pointer-events: none;
  user-select: none;
}

.profile-photo-avatar .photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #94a3b8;
  background: #f1f5f9;
}

.profile-photo-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

/* Minimalist, subtle download pill button */
.photo-simple-download-btn {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 500;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.4;
  outline: none;
}

.photo-simple-download-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}

/* Minimalist, subtle upload pill button */
.photo-simple-upload-btn {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 500;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
  margin: 0;
  line-height: 1.4;
}

.photo-simple-upload-btn:hover {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

/* Subtle selected filename feedback in edit mode */
.photo-selection-hint {
  display: none;
  font-size: 11px;
  color: #059669;
  margin-top: 6px;
  font-weight: 500;
}

/* Minimalist, subtle crop/framing pill button */
.photo-simple-crop-btn {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 500;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.4;
  outline: none;
}

.photo-simple-crop-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}

/* ============================================================
   FRAME EDITOR MODAL (FEATURE 01A)
   ============================================================ */
.photo-frame-editor-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  z-index: 20000;
}

.photo-frame-editor-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  width: 90%;
  max-width: 380px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.photo-frame-editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.photo-frame-editor-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #0f172a;
}

.photo-frame-editor-viewport {
  position: relative;
  width: 260px;
  height: 260px;
  margin: 0 auto 16px;
  overflow: hidden;
  border-radius: 12px;
  background: #0f172a;
  cursor: grab;
  touch-action: none;
}

.photo-frame-editor-viewport:active {
  cursor: grabbing;
}

.photo-frame-editor-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 180px;
  height: 180px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.65);
  border: 2px solid rgba(255, 255, 255, 0.95);
  pointer-events: none;
  z-index: 2;
}

.photo-frame-editor-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center center;
  pointer-events: none;
  z-index: 1;
  user-select: none;
  max-width: none;
  max-height: none;
}

.photo-frame-editor-zoom-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 0 4px;
}

.photo-frame-editor-zoom-slider {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: #e2e8f0;
  outline: none;
  accent-color: #2563eb;
  cursor: pointer;
}

.photo-frame-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.photo-frame-editor-btn-cancel {
  padding: 8px 18px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.photo-frame-editor-btn-cancel:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.photo-frame-editor-btn-save {
  padding: 8px 18px;
  border-radius: 8px;
  border: none;
  background: #2563eb;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.photo-frame-editor-btn-save:hover {
  background: #1d4ed8;
}

/* ==========================================================================
   ATTENDANCE FILTER SYSTEM (BUG 33)
   ========================================================================== */

.attendance-filter-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 20px;
  margin-top: 14px;
  margin-bottom: 18px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  box-sizing: border-box;
}

.attendance-filter-grid {
  display: grid;
  gap: 12px 14px;
  align-items: end;
  width: 100%;
  box-sizing: border-box;
}

/* Desktop layout (>= 1025px) */
@media (min-width: 1025px) {
  .attendance-filter-grid.student-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .attendance-filter-grid.teacher-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .attendance-filter-grid.student-grid .attendance-filter-actions {
    grid-column: span 2;
    display: flex;
    align-items: flex-end;
    gap: 10px;
  }

  .attendance-filter-grid.teacher-grid .attendance-filter-actions {
    grid-column: span 1;
    display: flex;
    align-items: flex-end;
    gap: 8px;
  }
}

/* Tablet layout (641px - 1024px) */
@media (min-width: 641px) and (max-width: 1024px) {
  .attendance-filter-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .attendance-filter-grid.student-grid .attendance-filter-actions {
    grid-column: span 2;
    display: flex;
    align-items: flex-end;
    gap: 10px;
  }

  .attendance-filter-grid.teacher-grid .attendance-filter-actions {
    grid-column: span 1;
    display: flex;
    align-items: flex-end;
    gap: 8px;
  }
}

/* Mobile layout (<= 640px) */
@media (max-width: 640px) {
  .attendance-filter-card {
    padding: 14px 14px;
    margin-top: 10px;
    margin-bottom: 14px;
    border-radius: 12px;
  }

  .attendance-filter-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .attendance-filter-actions {
    grid-column: span 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 4px;
  }
}

.attendance-filter-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-sizing: border-box;
}

.attendance-filter-label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  line-height: 1.2;
}

.attendance-filter-control {
  width: 100% !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 12px !important;
  font-size: 13.5px !important;
  font-family: inherit !important;
  color: #1e293b !important;
  background-color: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 9px !important;
  outline: none !important;
  box-sizing: border-box !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease !important;
}

.attendance-filter-control:hover {
  border-color: #94a3b8 !important;
}

.attendance-filter-control:focus {
  border-color: #166534 !important;
  box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.12) !important;
}

select.attendance-filter-control {
  cursor: pointer;
  padding-right: 28px !important;
}

/* Filter Action Buttons */
.btn-filter-apply {
  height: 40px;
  min-height: 40px;
  padding: 0 20px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  color: #ffffff;
  background-color: #166534;
  border: 1px solid #166534;
  border-radius: 9px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: background-color 0.18s ease, transform 0.1s ease, box-shadow 0.18s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-filter-apply:hover {
  background-color: #15803d;
  border-color: #15803d;
}

.btn-filter-apply:active {
  transform: translateY(1px);
}

.btn-filter-reset {
  height: 40px;
  min-height: 40px;
  padding: 0 18px;
  font-size: 13.5px;
  font-weight: 500;
  font-family: inherit;
  color: #475569;
  background-color: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 9px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-filter-reset:hover {
  background-color: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

.btn-filter-reset:active {
  background-color: #e2e8f0;
}

@media (max-width: 640px) {
  .attendance-filter-control {
    height: 44px !important;
    min-height: 44px !important;
    font-size: 14px !important;
  }

  .btn-filter-apply,
  .btn-filter-reset {
    height: 44px;
    min-height: 44px;
    width: 100%;
    font-size: 14px;
  }
}



/* ==========================================================================
   FEATURE 002: PROFESSIONAL ATTENDANCE TABLES (SISWA & GURU)
   ========================================================================== */

/* Active Filters Indicator Bar */
.attendance-active-filters-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: -6px;
  margin-bottom: 14px;
  padding: 8px 14px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-sizing: border-box;
}

.active-filters-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-right: 4px;
}

.active-filter-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1 1 auto;
}

.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px 3px 10px;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 12px;
  color: #1e293b;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  line-height: 1.3;
}

.active-filter-chip strong {
  color: #475569;
  font-weight: 600;
}

.chip-remove-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  padding: 0;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.chip-remove-btn:hover {
  color: #ef4444;
  background-color: #fee2e2;
}

.btn-clear-all-filters {
  background: transparent;
  border: none;
  color: #dc2626;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.btn-clear-all-filters:hover {
  text-decoration: underline;
  background-color: #fee2e2;
}

/* Table Controls Toolbar */
.attendance-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
  width: 100%;
  box-sizing: border-box;
}

.table-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.table-toolbar-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.entries-select-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #475569;
}

.entries-select-group label {
  font-weight: 500;
}

.table-entries-select {
  height: 36px;
  padding: 0 10px;
  font-size: 13px;
  color: #1e293b;
  background-color: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.table-entries-select:focus {
  border-color: #166534;
  box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.12);
}

.table-search-group {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: auto;
}

.table-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
  z-index: 2;
  width: 16px;
  height: 16px;
}

.table-search-input,
.dashboard-layout input[type="text"].table-search-input,
.dashboard-layout .table-search-input {
  height: 40px !important;
  min-height: 40px !important;
  width: 260px;
  padding-left: 42px !important;
  padding-right: 36px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  font-size: 13.5px !important;
  color: #1e293b !important;
  background-color: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 8px !important;
  outline: none !important;
  box-sizing: border-box !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, width 0.2s ease;
}

.table-search-input:focus,
.dashboard-layout input[type="text"].table-search-input:focus {
  border-color: #166534 !important;
  box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.12) !important;
}

.table-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  padding: 0;
  transition: color 0.15s ease;
  z-index: 2;
}

.table-search-clear:hover {
  color: #ef4444;
}

/* Toolbar Buttons & Dropdowns */
.btn-table-tool {
  height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  white-space: nowrap;
  outline: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-table-tool:hover {
  background-color: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.btn-table-tool:active {
  background-color: #f1f5f9;
}

.table-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.table-dropdown-menu {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  min-width: 190px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
  z-index: 60;
  padding: 6px 0;
  box-sizing: border-box;
  animation: fadeInMenu 0.15s ease-out;
}

@keyframes fadeInMenu {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-menu-header {
  padding: 6px 14px 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  border-bottom: 1px solid #f1f5f9;
}

.col-vis-options {
  max-height: 260px;
  overflow-y: auto;
  padding: 4px 0;
}

.col-vis-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  font-size: 12.5px;
  color: #334155;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.12s ease;
}

.col-vis-item:hover {
  background-color: #f8fafc;
  color: #0f172a;
}

.col-vis-item input[type="checkbox"] {
  accent-color: #166534;
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.dropdown-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 14px;
  font-size: 13px;
  color: #334155;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.dropdown-menu-item:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

/* Sticky Header and Table Wrapper */
.attendance-table-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  max-height: min(650px, 75vh);
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  position: relative;
}

.attendance-table-wrapper table thead th {
  position: sticky !important;
  top: 0 !important;
  z-index: 5 !important;
  background-color: #f8fafc !important;
  box-shadow: 0 1px 0 #e2e8f0;
}

/* Sortable Table Headers */
.sortable-th {
  cursor: pointer !important;
  user-select: none;
  transition: background-color 0.15s ease;
}

.sortable-th:hover {
  background-color: #f1f5f9 !important;
}

.th-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
}

.sortable-th[data-align="left"] .th-content {
  justify-content: flex-start;
}

.sort-indicator {
  font-size: 11px;
  color: #94a3b8;
  transition: color 0.15s ease, transform 0.15s ease;
}

.sortable-th.sorted-asc .sort-indicator,
.sortable-th.sorted-desc .sort-indicator {
  color: #166534;
  font-weight: 800;
}

/* Empty State */
.attendance-empty-cell {
  text-align: center !important;
  padding: 36px 16px !important;
  color: #64748b;
}

.empty-state-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.empty-state-title {
  font-size: 15px;
  font-weight: 600;
  color: #334155;
  margin: 0;
}

.empty-state-sub {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

.btn-empty-reset {
  margin-top: 10px;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #166534;
  background-color: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-empty-reset:hover {
  background-color: #dcfce7;
  border-color: #86efac;
}

/* Table Footer (Counter & Pagination) */
.attendance-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 4px 6px;
  width: 100%;
  box-sizing: border-box;
}

.table-footer-counter {
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
}

.table-footer-pagination {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.page-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  background-color: #ffffff;
  color: #334155;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: all 0.15s ease;
}

.page-btn:hover:not(:disabled) {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.page-btn.active {
  background-color: #166534;
  border-color: #166534;
  color: #ffffff;
  font-weight: 700;
}

.page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background-color: #f8fafc;
  border-color: #e2e8f0;
}

.page-nav {
  padding: 0 12px;
}

.page-ellipsis {
  min-width: 28px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 13px;
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 768px) {
  .attendance-table-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .table-toolbar-left,
  .table-toolbar-right {
    width: 100%;
    justify-content: space-between;
  }

  .table-search-group {
    flex: 1 1 100%;
    width: 100%;
  }

  .table-search-input,
  .dashboard-layout input[type="text"].table-search-input,
  .dashboard-layout .table-search-input {
    width: 100% !important;
    min-height: 44px !important;
    height: 44px !important;
    padding-left: 42px !important;
    padding-right: 36px !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
  }

  .table-search-icon {
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 16px !important;
    height: 16px !important;
  }

  .table-search-clear {
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }

  .attendance-table-footer {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .table-footer-counter {
    text-align: center;
  }

  .table-footer-pagination {
    justify-content: center;
    flex-wrap: wrap;
  }
}


/* ==========================================================================
   BUG 36: MASTER DATA FILTER GRIDS STANDARDIZATION (SISWA & GURU)
   ========================================================================== */
@media (min-width: 1025px) {
  .attendance-filter-grid.master-student-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .attendance-filter-grid.master-student-grid .attendance-filter-actions {
    grid-column: span 1;
    display: flex;
    align-items: flex-end;
    gap: 8px;
  }
  .attendance-filter-grid.master-teacher-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .attendance-filter-grid.master-teacher-grid .attendance-filter-actions {
    grid-column: span 1;
    display: flex;
    align-items: flex-end;
    gap: 8px;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .attendance-filter-grid.master-student-grid,
  .attendance-filter-grid.master-teacher-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .attendance-filter-grid.master-student-grid .attendance-filter-actions,
  .attendance-filter-grid.master-teacher-grid .attendance-filter-actions {
    grid-column: span 2;
    display: flex;
    align-items: flex-end;
    gap: 8px;
  }
}

/* ============================================================
   FEATURE 004: KARTU PELAJAR SISWA (STUDENT DOCUMENTS)
   ============================================================ */
.student-document-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.student-document-card:hover {
  border-color: #cbd5e1;
}

.student-document-card.has-doc {
  background: #ffffff;
  border-color: #bbf7d0;
  box-shadow: 0 1px 3px rgba(22, 101, 52, 0.05);
}

.document-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.document-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.document-icon-badge {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #e0f2fe;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.document-type-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.2;
}

.document-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 9999px;
  white-space: nowrap;
}

.document-status-badge.badge-available {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.document-status-badge.badge-unavailable {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.document-meta-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
  color: #475569;
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
}

.document-meta-filename {
  font-weight: 600;
  color: #1e293b;
  word-break: break-all;
}

.document-meta-sub {
  font-size: 11.5px;
  color: #64748b;
}

.document-empty-notice {
  font-size: 12px;
  color: #94a3b8;
  font-style: italic;
  padding: 4px 0;
}

.document-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.student-doc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
  outline: none;
}

.student-doc-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-doc-preview {
  background: #2563eb;
  color: #ffffff;
}

.btn-doc-preview:hover:not(:disabled) {
  background: #1d4ed8;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.btn-doc-download {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.btn-doc-download:hover:not(:disabled) {
  background: #e2e8f0;
  color: #0f172a;
}

.btn-doc-upload {
  background: #059669;
  color: #ffffff;
}

.btn-doc-upload:hover:not(:disabled) {
  background: #047857;
  box-shadow: 0 2px 4px rgba(5, 150, 105, 0.2);
}

.btn-doc-delete {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.btn-doc-delete:hover:not(:disabled) {
  background: #fecaca;
  color: #991b1b;
}

.student-doc-pending-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #eff6ff;
  border: 1px dashed #93c5fd;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: #1e40af;
}

.student-doc-hint {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 2px;
}

/* Document Preview Modal */
.document-preview-card {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  width: 95%;
  max-width: 860px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
  box-sizing: border-box;
  overflow: hidden;
  margin: auto;
}

.document-preview-viewport {
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  max-height: 72vh;
  padding: 12px;
  box-sizing: border-box;
  overflow: auto;
}
