/*===GLOBAL THEME===*/
/*---root---*/
:root {
    --ram-red:linear-gradient(135deg,#b31224 0%,#78000d 100%);
    --ram-red-dark:#78000d;
    --ram-dark-red:#8f1f2d;
    --ram-gold:#d8a928;
    --ram-cream:#fff5d6;
    --ram-black:#171717;
    --ram-dark:#242424;
    --ram-white:#ffffff;

    --background:
        linear-gradient(
            135deg,
            #f8f6f0 0%,
            #eee9dc 50%,
            #f8f5ec 100%
        );

    --surface:rgba(255,255,255,.78);
    --surface-solid:#ffffff;

    --text:#222222;
    --muted:#6b7280;
    --border:rgba(122,32,32,.12);

    --success:#16a34a;
    --warning:#d97706;
    --danger:#dc2626;

    --glass:rgba(255,255,255,.55);
    --glass-light:rgba(255,255,255,.75);
    --glass-border:rgba(255,255,255,.65);
    --glass-highlight:rgba(255,255,255,.90);

    --shadow:
        0 12px 35px rgba(80,30,20,.12);

    --shadow-gloss:
        0 20px 55px rgba(80,30,20,.18);

    --sidebar-width:310px;
    --sidebar-collapsed:100px;

    --radius:16px;
    --transition:.3s ease;
}


/*===DARK MODE===*/
/*---dark theme---*/
[data-theme="dark"] {

    --background:
        linear-gradient(
            135deg,
            #0d0d0d 0%,
            #1b1214 50%,
            #0d0d0d 100%
        );

    --surface:rgba(30,30,30,.78);
    --surface-solid:#202020;

    --text:#f5f5f5;
    --muted:#a1a1aa;

    --border:rgba(255,255,255,.10);

    --ram-white:#181818;
    --ram-cream:#2a2415;

    --glass:rgba(35,35,35,.60);
    --glass-light:rgba(50,50,50,.72);
    --glass-border:rgba(255,255,255,.12);
    --glass-highlight:rgba(255,255,255,.16);

    --shadow:
        0 12px 35px rgba(0,0,0,.40);

    --shadow-gloss:
        0 20px 55px rgba(0,0,0,.60);
}


/*===RESET===*/
/*---reset---*/
* {
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html,
body {
    width:100%;
    min-height:100%;
}

html {
    scroll-behavior:smooth;
}

body {
    min-height:100vh;

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background:var(--background);
    color:var(--text);

    transition:
        background var(--transition),
        color var(--transition);

    overflow-x:hidden;
}

button,
input,
select,
textarea {
    font:inherit;
}

button {
    cursor:pointer;
}

a {
    color:inherit;
    text-decoration:none;
}

img {
    max-width:100%;
    display:block;
}


/*===GLOBAL GLOSS===*/
/*---gloss effects---*/
body::before {
    content:"";

    position:fixed;

    top:-220px;
    left:-180px;

    width:520px;
    height:520px;

    background:
        radial-gradient(
            circle,
            rgba(216,169,40,.14),
            transparent 70%
        );

    pointer-events:none;

    z-index:-1;
}

body::after {
    content:"";

    position:fixed;

    right:-180px;
    bottom:-260px;

    width:600px;
    height:600px;

    background:
        radial-gradient(
            circle,
            rgba(122,32,32,.12),
            transparent 70%
        );

    pointer-events:none;

    z-index:-1;
}


/*===LOGIN===*/
/*---login screen---*/
.login-screen {
    min-height:100vh;
    width:100%;

    display:flex;
    align-items:center;
    justify-content:center;

    position:relative;

    padding:25px;

    overflow:hidden;

    background:
        linear-gradient(
            rgba(0,0,0,.38),
            rgba(0,0,0,.58)
        ),
        url("../images/login-bg.jpg")
        center/cover
        no-repeat;
}


/*---login panel---*/
.login-panel {
    width:100%;
    max-width:440px;

    display:flex;
    align-items:center;
    justify-content:center;

    background:transparent;
}


/*---login visual---*/
.login-visual {
    display:none;
}


/*===LOGIN BOX===*/
/*---main glass container---*/
.login-box {
    width:100%;

    padding:38px 38px 36px;

    position:relative;

    overflow:hidden;

    text-align:center;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.96),
            rgba(255,255,255,.82)
        );

    border:
        1px solid
        rgba(255,255,255,.85);

    border-radius:22px;

    box-shadow:
        0 25px 70px rgba(0,0,0,.30),
        inset 0 1px 0 rgba(255,255,255,.95);

    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
}


/*---top glossy reflection---*/
.login-box::before {
    content:"";

    position:absolute;

    top:0;
    left:0;

    width:100%;
    height:4px;

    background:
        linear-gradient(
            90deg,
            #7a0000,
            #d8a928,
            #a80017
        );
}


/*---subtle glass shine---*/
.login-box::after {
    content:"";

    position:absolute;

    top:-120px;
    left:-100px;

    width:300px;
    height:180px;

    background:
        radial-gradient(
            ellipse,
            rgba(255,255,255,.70),
            transparent 70%
        );

    pointer-events:none;
}


/*===LOGIN LOGO===*/
/*---logo---*/
.login-box-logo {
    width:82px;
    height:82px;

    object-fit:contain;

    display:block;

    margin:0 auto 18px;

    position:relative;
    z-index:1;

    filter:
        drop-shadow(
            0 7px 12px
            rgba(0,0,0,.16)
        );
}


/*===LOGIN TITLE===*/
/*---title---*/
.login-box h2 {
    margin:0;

    font-size:30px;

    line-height:1.2;

    font-weight:800;

    color:var(--ram-dark-red);

    position:relative;
    z-index:1;
}


/*---description---*/
.login-box > p {
    margin:9px 0 25px;

    color:var(--muted);

    font-size:14px;

    line-height:1.5;

    position:relative;
    z-index:1;
}


/*===LOGIN FORM===*/
/*---form group---*/
.form-group {
    margin-bottom:16px;

    text-align:left;

    position:relative;
    z-index:1;
}


/*---form label---*/
.form-label {
    display:block;

    margin-bottom:7px;

    color:var(--text);

    font-size:13px;

    font-weight:700;
}


/*---form input---*/
.form-control {
    width:100%;
    height:48px;

    padding:0 14px;

    border:
        1px solid
        rgba(122,32,32,.16);

    border-radius:11px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.95),
            rgba(245,245,245,.82)
        );

    color:var(--text);

    outline:none;

    box-shadow:
        inset 0 1px 2px rgba(0,0,0,.04),
        0 2px 7px rgba(0,0,0,.03);

    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        background var(--transition),
        transform var(--transition);
}


/*---input focus---*/
.form-control:focus {
    border-color:var(--ram-gold);

    background:#ffffff;

    box-shadow:
        0 0 0 3px
        rgba(216,169,40,.16),
        0 5px 15px
        rgba(0,0,0,.07);

    transform:translateY(-1px);
}


/*---placeholder---*/
.form-control::placeholder {
    color:#9ca3af;
}


/*===PASSWORD===*/
/*---password wrapper---*/
.password-wrapper {
    position:relative;
    width:100%;
}


/*---password input---*/
.password-wrapper .form-control {
    padding-right:65px;
}


/*---show hide button---*/
.password-toggle {
    position:absolute;

    right:12px;
    top:50%;

    transform:translateY(-50%);

    border:none;

    background:transparent;

    color:var(--muted);

    font-size:12px;

    font-weight:600;

    cursor:pointer;

    padding:5px 3px;

    transition:
        color var(--transition),
        transform var(--transition);
}


/*---password hover---*/
.password-toggle:hover {
    color:var(--ram-dark-red);

    transform:
        translateY(-50%)
        scale(1.04);
}


/*===LOGIN BUTTON===*/
/*---primary button---*/
.login-box .btn-primary {
    width:100%;
    height:48px;

    margin-top:4px;

    border:none;

    border-radius:11px;

    background:
        linear-gradient(
            135deg,
            #b31224 0%,
            #85000f 50%,
            #69000a 100%
        );

    color:#ffffff;

    font-size:14px;

    font-weight:700;

    cursor:pointer;

    position:relative;

    overflow:hidden;

    box-shadow:
        0 8px 20px
        rgba(122,32,32,.28),
        inset 0 1px 0
        rgba(255,255,255,.28);

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        filter var(--transition);
}


/*---button glossy shine---*/
.login-box .btn-primary::before {
    content:"";

    position:absolute;

    top:0;
    left:-100%;

    width:60%;
    height:100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.24),
            transparent
        );

    transform:skewX(-20deg);

    transition:left .6s ease;
}


/*---button hover---*/
.login-box .btn-primary:hover {
    transform:translateY(-2px);

    filter:brightness(1.08);

    box-shadow:
        0 12px 28px
        rgba(122,32,32,.34),
        inset 0 1px 0
        rgba(255,255,255,.30);
}


/*---button shine hover---*/
.login-box .btn-primary:hover::before {
    left:140%;
}


/*---button active---*/
.login-box .btn-primary:active {
    transform:translateY(0);

    box-shadow:
        0 5px 12px
        rgba(122,32,32,.25);
}


/*===OTP===*/
/*---otp screen and section---*/
.otp-screen,
.otp-section {
    width:100%;

    display:block;

    text-align:center;

    position:relative;
    z-index:1;
}


/*===OTP TITLE===*/
/*---otp heading---*/
.otp-screen h2,
.otp-section h2 {
    margin:0 0 9px;

    font-size:27px;

    line-height:1.2;

    font-weight:800;

    color:var(--ram-dark-red);
}


/*===OTP DESCRIPTION===*/
/*---otp description---*/
.otp-screen > p,
.otp-section > p {
    margin:0 auto 18px;

    max-width:350px;

    color:var(--muted);

    font-size:13px;

    line-height:1.6;
}


/*===OTP TIMER===*/
/*---timer---*/
#timer,
#otpTimer {
    width:max-content;

    min-width:90px;

    margin:12px auto 18px;

    padding:8px 16px;

    border-radius:10px;

    background:
        linear-gradient(
            145deg,
            rgba(216,169,40,.16),
            rgba(255,255,255,.70)
        );

    border:
        1px solid
        rgba(216,169,40,.30);

    color:var(--ram-dark-red);

    font-size:24px;

    font-weight:800;

    letter-spacing:1px;

    box-shadow:
        inset 0 1px 0
        rgba(255,255,255,.8),
        0 5px 15px
        rgba(0,0,0,.06);
}


/*===OTP INPUT===*/
/*---single otp input---*/
.otp-screen input[name="otp"],
.otp-section input[name="otp"] {
    width:100%;

    max-width:260px;

    height:56px;

    margin:6px auto 20px;

    display:block;

    padding:0 15px;

    border:
        1px solid
        rgba(122,32,32,.18);

    border-radius:12px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.98),
            rgba(245,245,245,.88)
        );

    color:var(--ram-dark-red);

    text-align:center;

    font-size:24px;

    font-weight:800;

    letter-spacing:8px;

    outline:none;

    box-shadow:
        inset 0 1px 2px
        rgba(0,0,0,.05),
        0 5px 18px
        rgba(0,0,0,.06);

    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        transform var(--transition);
}


/*---otp input focus---*/
.otp-screen input[name="otp"]:focus,
.otp-section input[name="otp"]:focus {
    border-color:var(--ram-gold);

    box-shadow:
        0 0 0 4px
        rgba(216,169,40,.14),
        0 8px 20px
        rgba(0,0,0,.08);

    transform:translateY(-1px);
}


/*---otp placeholder---*/
.otp-screen input[name="otp"]::placeholder,
.otp-section input[name="otp"]::placeholder {
    color:#a1a1aa;

    letter-spacing:2px;
}


/*===OTP INPUT BOXES===*/
/*---multiple otp fields---*/
.otp-inputs {
    display:flex;

    align-items:center;

    justify-content:center;

    gap:8px;

    margin:20px 0;
}


/*---otp field---*/
.otp-input {
    width:46px;
    height:52px;

    border:
        1px solid
        rgba(122,32,32,.18);

    border-radius:11px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.96),
            rgba(245,245,245,.85)
        );

    color:var(--ram-dark-red);

    text-align:center;

    font-size:21px;

    font-weight:800;

    outline:none;

    box-shadow:
        inset 0 1px 2px
        rgba(0,0,0,.04),
        0 4px 12px
        rgba(0,0,0,.05);

    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        transform var(--transition);
}


/*---otp field focus---*/
.otp-input:focus {
    border-color:var(--ram-gold);

    box-shadow:
        0 0 0 3px
        rgba(216,169,40,.15),
        0 7px 18px
        rgba(0,0,0,.08);

    transform:translateY(-2px);

    background:#ffffff;
}


/*===OTP BUTTONS===*/
/*---all otp submit buttons---*/
.otp-screen button[type="submit"],
.otp-section button[type="submit"] {
    width:100%;

    height:46px;

    border:none;

    border-radius:11px;

    color:#ffffff;

    font-size:13px;

    font-weight:700;

    cursor:pointer;

    position:relative;

    overflow:hidden;

    box-shadow:
        0 7px 18px
        rgba(122,32,32,.24),
        inset 0 1px 0
        rgba(255,255,255,.25);

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        filter var(--transition);
}


/*---otp button background---*/
.otp-screen button[type="submit"],
.otp-section button[type="submit"] {
    background:
        linear-gradient(
            135deg,
            #b31224 0%,
            #85000f 50%,
            #69000a 100%
        );
}


/*---otp button hover---*/
.otp-screen button[type="submit"]:hover,
.otp-section button[type="submit"]:hover {
    transform:translateY(-2px);

    filter:brightness(1.08);

    box-shadow:
        0 11px 25px
        rgba(122,32,32,.30),
        inset 0 1px 0
        rgba(255,255,255,.28);
}


/*---otp button active---*/
.otp-screen button[type="submit"]:active,
.otp-section button[type="submit"]:active {
    transform:translateY(0);
}


/*===OTP FORMS===*/
/*---spacing between verify and resend---*/
.otp-screen form,
.otp-section form {
    margin:0 0 9px;
}


/*---resend attempt text---*/
.otp-screen form + p,
.otp-section form + p {
    margin-top:4px;

    color:var(--muted);

    font-size:12px;
}


/*===DARK LOGIN===*/
/*---dark login card---*/
[data-theme="dark"] .login-box {
    background:
        linear-gradient(
            145deg,
            rgba(35,35,35,.95),
            rgba(20,20,20,.88)
        );

    border-color:
        rgba(255,255,255,.12);

    box-shadow:
        0 25px 70px
        rgba(0,0,0,.60),
        inset 0 1px 0
        rgba(255,255,255,.08);
}


/*---dark form input---*/
[data-theme="dark"] .form-control {
    background:
        linear-gradient(
            145deg,
            rgba(40,40,40,.95),
            rgba(25,25,25,.90)
        );

    border-color:
        rgba(255,255,255,.12);

    color:#f5f5f5;

    box-shadow:
        inset 0 1px 2px
        rgba(0,0,0,.35),
        0 3px 10px
        rgba(0,0,0,.20);
}


/*---dark form focus---*/
[data-theme="dark"] .form-control:focus {
    background:#292929;
}


/*---dark otp input---*/
[data-theme="dark"] .otp-input,
[data-theme="dark"] .otp-screen input[name="otp"],
[data-theme="dark"] .otp-section input[name="otp"] {
    background:
        linear-gradient(
            145deg,
            rgba(40,40,40,.95),
            rgba(25,25,25,.90)
        );

    border-color:
        rgba(255,255,255,.12);

    color:#f5f5f5;

    box-shadow:
        inset 0 1px 2px
        rgba(0,0,0,.40),
        0 4px 14px
        rgba(0,0,0,.30);
}


/*---dark otp focus---*/
[data-theme="dark"] .otp-input:focus,
[data-theme="dark"] .otp-screen input[name="otp"]:focus,
[data-theme="dark"] .otp-section input[name="otp"]:focus {
    background:#292929;
}


/*---dark timer---*/
[data-theme="dark"] #timer,
[data-theme="dark"] #otpTimer {
    background:
        linear-gradient(
            145deg,
            rgba(216,169,40,.13),
            rgba(45,45,45,.80)
        );

    border-color:
        rgba(216,169,40,.28);

    color:#e8c45c;

    box-shadow:
        inset 0 1px 0
        rgba(255,255,255,.06),
        0 5px 15px
        rgba(0,0,0,.25);
}


/*===RESPONSIVE===*/
/*---tablet and mobile---*/
@media (max-width:600px) {

    .login-screen {
        padding:18px;
    }

    .login-box {
        padding:34px 25px 32px;

        border-radius:18px;
    }

    .login-box-logo {
        width:70px;
        height:70px;

        margin-bottom:16px;
    }

    .login-box h2 {
        font-size:25px;
    }

    .login-box > p {
        font-size:13px;

        margin-bottom:22px;
    }

    .form-control {
        height:46px;
    }

    .login-box .btn-primary {
        height:46px;
    }

    .otp-screen h2,
    .otp-section h2 {
        font-size:24px;
    }

    .otp-screen > p,
    .otp-section > p {
        font-size:13px;
    }

    #timer,
    #otpTimer {
        font-size:22px;
    }

    .otp-screen input[name="otp"],
    .otp-section input[name="otp"] {
        max-width:230px;

        height:52px;

        font-size:22px;
    }

    .otp-inputs {
        gap:6px;
    }

    .otp-input {
        width:42px;
        height:48px;

        font-size:19px;
    }
}


/*===VERY SMALL SCREENS===*/
/*---small mobile---*/
@media (max-width:380px) {

    .login-screen {
        padding:12px;
    }

    .login-box {
        padding:29px 18px;
    }

    .login-box h2 {
        font-size:23px;
    }

    .login-box-logo {
        width:65px;
        height:65px;
    }

    .otp-inputs {
        gap:4px;
    }

    .otp-input {
        width:39px;
        height:45px;
    }

    .otp-screen input[name="otp"],
    .otp-section input[name="otp"] {
        max-width:210px;

        letter-spacing:6px;
    }
}

/*===SHARED LAYOUT===*/
/*===SIDEBAR===*/
.sidebar{
    width:310px;
    height:100vh;
    position:fixed;
    top:0;
    left:0;
    z-index:1000;
    display:flex;
    flex-direction:column;
    overflow:hidden;
    background:
    linear-gradient(
        155deg,
        #8f0015,
        #520008
    );
    border-right:1px solid rgba(255,255,255,.15);
    box-shadow:
    12px 0 45px rgba(0,0,0,.25);
    transition:
    width .35s ease,
    transform .35s ease;
}
/*===SIDEBAR BRAND===*/
.sidebar-brand{
    height:120px;
    padding:20px;
    display:flex;
    align-items:center;
    gap:16px;
    flex-shrink:0;
    border-bottom:
    1px solid rgba(255,255,255,.15);
}
.sidebar-logo{
    width:72px;
    height:72px;
    object-fit:contain;
    flex-shrink:0;
    filter:
    drop-shadow(
        0 8px 15px rgba(0,0,0,.35)
    );
}
.sidebar-brand-text{
    min-width:0;
    display:flex;
    flex-direction:column;
    color:white;
    white-space:nowrap;
}
.sidebar-brand-text strong{
    font-size:22px;
    font-weight:900;
    letter-spacing:.5px;
}
.sidebar-brand-text span{
    margin-top:5px;
    font-size:11px;
    font-weight:800;
    color:#f4d77b;
}
.sidebar-brand-text small{
    margin-top:4px;
    font-size:9px;
    color:rgba(255,255,255,.75);
}
/*===SIDEBAR NAV===*/
.sidebar-nav{
    flex:1;
    padding:20px 14px;
    overflow-y:auto;
    overflow-x:hidden;
}
.sidebar-nav::-webkit-scrollbar{
    width:5px;
}
.sidebar-nav::-webkit-scrollbar-thumb{
    background:rgba(255,255,255,.2);
    border-radius:10px;
}
.nav-item{
    width:100%;
    height:58px;
    margin-bottom:10px;
    padding:0 18px;
    display:flex;
    align-items:center;
    gap:18px;
    overflow:hidden;
    border-radius:14px;
    color:rgba(255,255,255,.82);
    font-size:16px;
    font-weight:700;
    white-space:nowrap;
    transition:
    background .25s ease,
    transform .25s ease,
    color .25s ease;
}
.nav-item span{
    overflow:hidden;
    text-overflow:ellipsis;
}
.nav-item i{
    width:28px;
    min-width:28px;
    text-align:center;
    font-size:22px;
}
.nav-item:hover{
    background:
    rgba(255,255,255,.12);
    color:#fff;
    transform:
    translateX(4px);
}
.nav-item.active{
    background:
    linear-gradient(
        135deg,
        rgba(216,169,40,.38),
        rgba(255,255,255,.12)
    );
    color:white;
    box-shadow:
    inset 0 1px 0 rgba(255,255,255,.2),
    0 8px 20px rgba(0,0,0,.15);
}
.nav-item.active i{
    color:#f7d66a;
}
/*===SIDEBAR BOTTOM===*/
.sidebar-bottom{
    padding:16px;
    flex-shrink:0;
    border-top:
    1px solid rgba(255,255,255,.15);
}
.sidebar-action{
    width:100%;
    height:55px;
    padding:0 18px;
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:18px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,.15);
    background:
    rgba(255,255,255,.08);
    color:white;
    font-size:16px;
    font-weight:700;
    transition:.3s ease;
}
.sidebar-action:hover{
    background:
    rgba(255,255,255,.18);
}
/*===COLLAPSED SIDEBAR===*/
.sidebar.collapsed{
    width:100px;
}
.sidebar.collapsed .sidebar-brand{
    justify-content:center;
    padding:15px;
}
.sidebar.collapsed .sidebar-brand-text,
.sidebar.collapsed .nav-item span,
.sidebar.collapsed .sidebar-action span{
    display:none;
}
.sidebar.collapsed .sidebar-logo{
    width:65px;
    height:65px;
}
.sidebar.collapsed .nav-item,
.sidebar.collapsed .sidebar-action{
    width:70px;
    margin-left:auto;
    margin-right:auto;
    padding:0;
    justify-content:center;
}
.sidebar.collapsed .nav-item i,
.sidebar.collapsed .sidebar-action i{
    font-size:23px;
}
/*===MAIN CONTENT===*/
.main-content{
    flex:1;
    min-width:0;
    margin-left:var(--sidebar-width);
    width:calc(100% - var(--sidebar-width));
    min-height:100vh;
    display:flex;
    flex-direction:column;
    transition:
    margin-left .3s ease,
    width .3s ease;
    overflow:hidden;
}
.sidebar.collapsed ~ .main-content{
    width:calc(100% - var(--sidebar-collapsed));
    margin-left:var(--sidebar-collapsed);
}
/*===HEADER===*/
.top-header{
    height:90px;
    width:100%;
    padding:
    0 35px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:25px;
    position:sticky;
    top:0;
    z-index:900;
    background:
    rgba(255,255,255,.72);
    border-bottom:
    1px solid var(--border);
    -webkit-backdrop-filter:
    blur(20px);
    backdrop-filter:
    blur(20px);
    box-shadow:
    0 8px 30px rgba(0,0,0,.08);
}
[data-theme="dark"] .top-header{
    background:
    rgba(25,25,25,.78);
}
/*===HEADER GROUPS===*/
.header-left,
.header-right{
    display:flex;
    align-items:center;
}
.header-right{
    gap:15px;
}
/* REMOVE HEADER COLLAPSE BUTTON */
.mobile-menu{
    display:none!important;
}
/*===SEARCH===*/
.search-box{
    width:500px;
    height:52px;
    padding:
    0 18px;
    display:flex;
    align-items:center;
    gap:12px;
    border-radius:16px;
    background:
    var(--surface);
    border:
    1px solid var(--border);
    box-shadow:
    inset 0 1px 0 rgba(255,255,255,.5);
}
.search-box i{
    font-size:18px;
    color:var(--muted);
}
.search-box input{
    width:100%;
    border:0;
    outline:0;
    background:transparent;
    color:var(--text);
    font-size:15px;
}
/*===DATE TIME===*/
.date-time{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    min-width:150px;
}
.date-time strong{
    font-size:18px;
    font-weight:850;
    color:var(--ram-dark-red);
}
.date-time span{
    margin-top:4px;
    font-size:12px;
    color:var(--muted);
}
/*===HEADER ICONS===*/
.header-icon,
.logout-button{
    width:52px;
    height:52px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:15px;
    border:1px solid var(--border);
    background:
    var(--surface);
    color:var(--text);
    font-size:21px;
    box-shadow:
    inset 0 1px 0 rgba(255,255,255,.5),
    0 8px 20px rgba(0,0,0,.08);
    transition:.3s ease;
}
.header-icon:hover,
.logout-button:hover{
    transform:
    translateY(-3px);
    border-color:
    var(--ram-gold);
    color:
    var(--ram-dark-red);
}
/*===USER PROFILE===*/
.user-menu{
    display:flex;
    align-items:center;
    gap:14px;
}
.user-avatar{
    width:52px;
    height:52px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:
    linear-gradient(
        135deg,
        #b31224,
        #78000d
    );
    color:white;
    font-size:18px;
    font-weight:900;
    box-shadow:
    0 10px 25px rgba(122,32,32,.35),
    inset 0 1px 0 rgba(255,255,255,.3);
}
.user-info{
    display:flex;
    flex-direction:column;
}
.user-info strong{
    font-size:15px;
    font-weight:800;
    color:var(--text);
}
.user-info span{
    margin-top:3px;
    font-size:12px;
    color:var(--muted);
}
/*===PAGE CONTENT===*/
.page-content{
    flex:1;
    min-width:0;
    overflow:auto;
    padding:25px;
}
.table-container{
    width:100%;
    max-width:100%;
    overflow:auto;
}
/*===PAGE HEADING===*/
.page-heading{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:25px;
    margin-bottom:30px;
}
.page-kicker,
.panel-kicker{
    display:block;
    color:
    var(--ram-gold);
    font-size:13px;
    font-weight:900;
    letter-spacing:1.5px;
}
.page-heading h1{
    margin-top:8px;
    font-size:38px;
    font-weight:950;
    color:var(--text);
}
.page-heading p{
    margin-top:8px;
    font-size:16px;
    color:var(--muted);
}
.page-heading-date{
    display:flex;
    align-items:center;
    gap:12px;
    padding:
    14px 20px;
    border-radius:15px;
    background:
    var(--surface);
    border:
    1px solid var(--border);
    box-shadow:
    var(--shadow);
    font-size:14px;
}
/*===POPUPS===*/
.weather-wrapper,
.notification-wrapper{
    position:relative;
    z-index:5000;
}
.popup{
    position:absolute;
    top:65px;
    right:0;
    width:380px;
    padding:20px;
    display:none;
    border-radius:20px;
    border:
    1px solid var(--border);
    background:
    var(--surface-solid);
    box-shadow:
    0 25px 70px rgba(0,0,0,.25);
    backdrop-filter:
    blur(20px);
    -webkit-backdrop-filter:
    blur(20px);
    z-index:9999;
}
.popup.show{
    display:block;
    animation:
    weatherOpen .35s ease;
}
.notification-item{
padding:15px;
cursor:pointer;
border-bottom:1px solid var(--border);
transition:.25s ease;
}
.notification-item:hover{
background:rgba(216,169,40,.12);
transform:translateX(4px);
}
.notification-item strong{
display:block;
color:var(--text);
}
.notification-item p{
margin:5px 0;
font-size:13px;
color:var(--muted);
}
.notification-item small{
font-size:11px;
color:var(--muted);
}
@keyframes weatherOpen{
from{
    opacity:0;
    transform:
    translateY(-20px)
    scale(.95);
}
to{
    opacity:1;
    transform:
    translateY(0)
    scale(1);
}
}
.popup-title{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding-bottom:14px;
    border-bottom:
    1px solid var(--border);
    font-size:16px;
    font-weight:900;
    color:var(--text);
}
/*===WEATHER POPUP===*/
.weather-popup{
    width:360px;
    max-width:90vw;
    padding:0;
    overflow:hidden;
    position:absolute;
    border-radius:20px;
    background:
    var(--surface-solid);
    border:
    1px solid var(--border);
    box-shadow:
    0 25px 70px rgba(0,0,0,.25);
}
/*===WEATHER ANIMATION BACKGROUND===*/
.weather-animation{
    position:absolute;
    inset:0;
    overflow:hidden;
    z-index:0;
    pointer-events:none;
}
.weather-content{
    position:relative;
    z-index:2;
    padding:16px;
}
/*---WEATHER THEMES---*/
.weather-popup.sunny{
    background:
    linear-gradient(
    135deg,
    #56ccf2,
    #f2c94c
    );
}
.weather-popup.cloudy{
    background:
    linear-gradient(
    135deg,
    #667db6,
    #9ca3af
    );
}
.weather-popup.rain{
    background:
    linear-gradient(
    135deg,
    #243b55,
    #141e30
    );
}
.weather-popup.storm{
    background:
    linear-gradient(
    135deg,
    #232526,
    #414345
    );
}
/*---MOVING CLOUDS---*/
.weather-cloud{
    position:absolute;
    width:90px;
    height:35px;
    background:
    rgba(255,255,255,.25);
    border-radius:40px;
    filter:blur(.5px);
}
.weather-cloud::before,
.weather-cloud::after{
    content:"";
    position:absolute;
    background:
    rgba(255,255,255,.35);
    border-radius:50%;
}
.weather-cloud::before{
    width:45px;
    height:45px;
    top:-20px;
    left:15px;
}
.weather-cloud::after{
    width:35px;
    height:35px;
    top:-15px;
    right:12px;
}
.cloud-one{
    top:35px;
    left:-120px;
    animation:
    cloudMove 25s linear infinite;
}
.cloud-two{
    top:100px;
    left:-180px;
    opacity:.5;
    animation:
    cloudMove 35s linear infinite;
}
@keyframes cloudMove{
from{
transform:translateX(0);
}
to{
transform:translateX(600px);
}
}
/*===WEATHER HEADER LOCATION===*/
.weather-location{
    display:flex;
    align-items:center;
    gap:8px;
    color:white;
    font-size:13px;
    font-weight:700;
}
.weather-location svg{
    width:18px;
    height:18px;
}
/*===CURRENT WEATHER===*/
.weather-current{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    padding:15px 0;
    color:white;
}
.weather-main-icon{
    width:55px;
    height:55px;
    stroke-width:1.7;
    animation:
    weatherFloat 3s ease-in-out infinite;
}
@keyframes weatherFloat{
0%{
transform:translateY(0);
}
50%{
transform:translateY(-6px);
}
100%{
transform:translateY(0);
}
}
.weather-temperature{
    text-align:center;
}
.weather-temperature strong{
    display:block;
    font-size:42px;
    font-weight:950;
}
.weather-temperature span{
    font-size:14px;
}
/*---DETAILS---*/
.weather-details{
    display:grid;
    grid-template-columns:
    repeat(3,1fr);
    gap:8px;
}
.weather-detail-card{
    background:
    rgba(255,255,255,.15);
    -webkit-backdrop-filter:
    blur(10px);
    backdrop-filter:
    blur(10px);
}
.weather-detail-card svg{
    width:17px;
    height:17px;
}
.weather-detail-card small{
    display:block;
    font-size:10px;
    opacity:.8;
}
.weather-detail-card strong{
    display:block;
    font-size:13px;
}
/*---ALERT---*/
.weather-alert{
    display:flex;
    align-items:center;
    gap:8px;
    margin-top:12px;
    padding:10px;
    border-radius:12px;
    background:
    rgba(0,0,0,.15);
    color:white;
    font-size:12px;
}
.weather-alert svg{
    width:18px;
}
/*---HOURLY FORECAST---*/
.hourly-title{
    margin-top:14px;
    margin-bottom:8px;
    color:white;
    font-size:13px;
    font-weight:800;
}
.hour-icon{
    width:22px;
    height:22px;
    margin:8px auto;
    stroke-width:1.8;
}
.hourly-weather{
    display:flex;
    gap:12px;
    overflow-x:auto;
    padding-bottom:5px;
}
.hourly-weather::-webkit-scrollbar{
    height:4px;
}
.hourly-weather::-webkit-scrollbar-thumb{
    background:
    rgba(255,255,255,.3);
    border-radius:10px;
}
.hour-card{
    min-width:48px;
    padding:8px 5px;
    border-radius:12px;
    text-align:center;
    background:
    rgba(255,255,255,.12);
    color:white;
}
.hour-card svg{
    width:22px;
    height:22px;
    margin:5px 0;
}
.hour-card span{
    display:block;
    font-size:10px;
}
.hour-card strong{
    font-size:12px;
}
/*---RAIN EFFECT---*/
.weather-rain span{
    position:absolute;
    width:2px;
    height:18px;
    background:#bae6fd;
    animation:
    rainFall 1s linear infinite;
}
@keyframes rainFall{
from{
transform:translateY(-30px);
opacity:0;
}
40%{
opacity:1;
}
to{
transform:translateY(300px);
opacity:0;
}
}
/*---LIGHTNING---*/
.weather-lightning{
    position:absolute;
    inset:0;
    background:white;
    opacity:0;
}
.weather-lightning.flash{
    animation:
    lightningFlash .8s;
}
@keyframes lightningFlash{
0%{
opacity:0;
}
20%{
opacity:.6;
}
40%{
opacity:0;
}
100%{
opacity:0;
}
}
.notification-list{
    max-height:380px;
    overflow-y:auto;
}
.empty-notification{
    height:150px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:12px;
    color:var(--muted);
    font-size:14px;
}
.empty-notification i{
    font-size:35px;
    opacity:.5;
}
/*===FLOATING TOOLS===*/
.floating-tools{
    position:fixed;
    right:35px;
    bottom:35px;
    display:flex;
    flex-direction:column;
    gap:15px;
    z-index:2000;
}
.floating-button{
    width:65px;
    height:65px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    border:
    1px solid rgba(255,255,255,.7);
    background:
    linear-gradient(
        145deg,
        #ffffff,
        #ececec
    );
    color:
    var(--ram-dark-red);
    font-size:26px;
    box-shadow:
    0 15px 40px rgba(0,0,0,.20);
    transition:.3s ease;
}
.floating-button:hover{
    transform:
    translateY(-6px)
    scale(1.05);
}
.chatbot-floating{
    background:
    linear-gradient(
        135deg,
        #b31224,
        #78000d
    );
    color:white;
}
/*===CHATBOT===*/

/*---container---*/
.chatbot-panel{
    position:fixed;
    right:30px;
    bottom:100px;
    width:420px;
    height:580px;
    display:none;
    flex-direction:column;
    overflow:hidden;
    border-radius:22px;
    border:
    1px solid var(--border);
    background:
    var(--surface-solid);
    box-shadow:
    0 30px 80px rgba(0,0,0,.35);
    z-index:3000;
    -webkit-backdrop-filter:blur(20px);
    backdrop-filter:blur(20px);

}
/*---show animation---*/
.chatbot-panel.show{
    display:flex;
    animation:
    chatbotShow .25s ease;
}
@keyframes chatbotShow{
    from{
        opacity:0;
        transform:
        translateY(20px);
    }
    to{
        opacity:1;
        transform:
        translateY(0);
    }
}
/*---chat header---*/
.chatbot-header{
    min-height:70px;
    padding:15px 18px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    background:
    linear-gradient(
        135deg,
        #b31224,
        #78000d
    );
    color:white;
}
.chatbot-title{
    display:flex;
    align-items:center;
    gap:15px;
}
.chatbot-icon{
    width:45px;
    height:45px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:
    rgba(255,255,255,.18);
    font-size:20px;
}
.chatbot-title strong{
    font-size:16px;
    font-weight:900;
}
.chatbot-title span{
    display:block;
    margin-top:4px;
    font-size:11px;
    color:
    rgba(255,255,255,.8);
}
/*---close button---*/
.chatbot-header > button{
    width:38px;
    height:38px;
    border:0;
    border-radius:10px;
    background:
    rgba(255,255,255,.15);
    color:white;
    font-size:18px;
}
/*---messages---*/
.chatbot-messages{
    flex:1;
    padding:25px;
    overflow-y:auto;
    background:
    var(--background);
}
.bot-message,
.user-message{
    display:flex;
    margin-bottom:15px;
}
.bot-message{
    justify-content:flex-start;
}
.user-message{
    justify-content:flex-end;
}
.bot-message span,
.user-message span{
    max-width:85%;
    padding:
    12px 15px;
    border-radius:18px;
    font-size:14px;
    line-height:1.5;
}
.bot-message span{
    background:
    var(--surface-solid);
    border:
    1px solid var(--border);
    color:
    var(--text);
}
.user-message span{
    background:
    linear-gradient(
        135deg,
        #b31224,
        #78000d
    );
    color:white;
}
/*---suggestions---*/
.chatbot-suggestions{
    padding:14px;
    display:flex;
    gap:10px;
    overflow-x:auto;
    border-top:
    1px solid var(--border);
}
.chatbot-suggestions button{
    flex-shrink:0;
    padding:
    10px 16px;
    border-radius:25px;
    border:
    1px solid rgba(216,169,40,.45);
    background:
    rgba(216,169,40,.12);
    color:
    var(--ram-dark-red);
    font-size:14px;
    font-weight:800;
}
/*---input---*/
.chatbot-input{
    height:60px;
    padding:10px;
    display:flex;
    gap:12px;
    border-top:
    1px solid var(--border);
    background:
    var(--surface-solid);
}
.chatbot-input input{
    flex:1;
    padding:
    0 18px;
    border-radius:15px;
    border:
    1px solid var(--border);
    outline:none;
    background:
    var(--surface);
    color:
    var(--text);
    font-size:14px;
}
.chatbot-input input:focus{
    border-color:
    var(--ram-gold);
    box-shadow:
    0 0 0 4px rgba(216,169,40,.15);
}
.chatbot-input button{
    width:55px;
    border:0;
    border-radius:14px;
    background:
    linear-gradient(
        135deg,
        #b31224,
        #78000d
    );
    color:white;
    font-size:22px;
}
/*===DARK MODE CHATBOT===*/
[data-theme="dark"] .chatbot-panel{
    background:
    rgba(30,30,30,.96);
}
[data-theme="dark"] .chatbot-messages{
    background:
    #151515;
}
[data-theme="dark"] .bot-message span{
    background:
    #2b2b2b;
    color:white;
    border-color:
    rgba(255,255,255,.15);
}
[data-theme="dark"] .chatbot-input{
    background:
    #202020;
}
[data-theme="dark"] .chatbot-input input{
    background:
    #292929;
    color:white;
}
[data-theme="dark"] .chatbot-suggestions button{
    color:#f4d77b;
}
/*===MOBILE CHATBOT===*/
@media(max-width:700px){
    .chatbot-panel{
        width:
        calc(100vw - 30px);
        height:
        calc(100vh - 120px);
        right:15px;
        bottom:90px;
    }
}
/*===LOGOUT MODAL===*/
.logout-modal{
    position:fixed;
    inset:0;
    display:none;
    align-items:center;
    justify-content:center;
    background:
    rgba(0,0,0,.55);
    -webkit-backdrop-filter:
    blur(8px);
    backdrop-filter:
    blur(8px);
    z-index:5000;
}
.logout-modal.show{
    display:flex;
}
.logout-card{
    width:450px;
    padding:40px;
    text-align:center;
    border-radius:25px;
    border:
    1px solid var(--border);
    background:
    var(--surface-solid);
    box-shadow:
    0 40px 100px rgba(0,0,0,.35);
    animation:
    modalShow .25s ease;
}
@keyframes modalShow{
    from{
        opacity:0;
        transform:
        scale(.95);
    }
    to{
        opacity:1;
        transform:
        scale(1);
    }
}
.logout-icon{
    width:75px;
    height:75px;
    margin:
    0 auto 20px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:
    rgba(220,38,38,.15);
    color:
    var(--danger);
    font-size:32px;
}
.logout-card h3{
    font-size:28px;
    font-weight:950;
    color:
    var(--text);
}
.logout-card p{
    margin:
    12px 0 30px;
    font-size:15px;
    line-height:1.6;
    color:
    var(--muted);
}
.logout-actions{
    display:flex;
    gap:15px;
}
.btn-secondary,
.btn-danger{
    flex:1;
    height:50px;
    border-radius:14px;
    font-size:15px;
    font-weight:800;
}
.btn-secondary{
    border:
    1px solid var(--border);
    background:
    var(--surface);
    color:
    var(--text);
}
.btn-danger{
    border:0;
    background:
    linear-gradient(
        135deg,
        #b31224,
        #78000d
    );
    color:white;
    box-shadow:
    0 10px 25px rgba(122,32,32,.25);
}
/*===FOOTER===*/
.admin-footer{
    width:100%;
    min-height:70px;
    padding:
    20px 35px;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-wrap:wrap;
    gap:20px;
    text-align:center;
    border-top:
    1px solid var(--border);
    background:
    var(--surface);
    color:
    var(--muted);
    font-size:14px;
}
.admin-footer-left,
.admin-footer-right{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
}
.footer-divider{
    color:
    var(--ram-gold);
}
/*===DARK MODE COMPLETE FIX===*/
[data-theme="dark"] .dashboard-panel,
[data-theme="dark"] .kpi-card,
[data-theme="dark"] .popup,
[data-theme="dark"] .chatbot-panel,
[data-theme="dark"] .logout-card,
[data-theme="dark"] .admin-footer{
    background:
    rgba(35,35,35,.92);
    border-color:
    rgba(255,255,255,.12);
}
[data-theme="dark"] .bot-message span{
    background:
    #2d2d2d;
    color:
    #ffffff;
    border-color:
    rgba(255,255,255,.18);
}
[data-theme="dark"] .chatbot-input{
    background:
    #202020;
}
[data-theme="dark"] .chatbot-input input{
    background:
    #292929;
    color:white;
}
[data-theme="dark"] .quick-action,
[data-theme="dark"] .attendance-stat{
    background:
    rgba(255,255,255,.05);
    color:white;
}
[data-theme="dark"] .floating-button{
    background:
    linear-gradient(
        145deg,
        #333,
        #1d1d1d
    );
    color:white;
    border-color:
    rgba(255,255,255,.15);
}
/*===FINAL GLASS FIX===*/
.top-header,
.dashboard-panel,
.kpi-card,
.popup,
.chatbot-panel{
    -webkit-backdrop-filter:
    blur(20px);
    backdrop-filter:
    blur(20px);
}
/*===RESPONSIVE===*/
@media(max-width:1200px){
    .kpi-grid{
        grid-template-columns:
        repeat(2,1fr);
    }
}
@media(max-width:900px){
    .sidebar{
        transform:
        translateX(-100%);
    }
    .sidebar.mobile-open{
        transform:
        translateX(0);
    }
    .main-content,
    .sidebar.collapsed ~ .main-content{
        width:100%;
        margin-left:0;
    }
    .dashboard-grid{
        grid-template-columns:1fr;
    }
    .search-box{
        width:300px;
    }
}
@media(max-width:700px){
    .page-content{
        padding:20px;
    }
    .page-heading{
        flex-direction:column;
        align-items:flex-start;
    }
    .kpi-grid{
        grid-template-columns:1fr;
    }
    .attendance-summary{
        grid-template-columns:
        repeat(2,1fr);
    }
    .chatbot-panel{
        width:
        calc(100vw - 30px);
        right:15px;
    }
    .admin-footer{
        flex-direction:column;
    }
}
@media(max-width:450px){
    .attendance-summary{
        grid-template-columns:1fr;
    }
    .header-right{
        gap:6px;
    }
    .user-info{
        display:none;
    }
}