/* =========================================================
   MAHARANA PRATAP PRIVATE ITI SEHORE
   ADMIN PANEL CSS
   GLASSMORPHISM DESIGN
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #0b1f3a;
    --navy-light: #164f7d;
    --gold: #c99a3d;
    --text: #172033;
    --muted: #687386;
    --white: #ffffff;
    --danger: #b42318;

    --glass-bg: rgba(255, 255, 255, 0.68);
    --glass-border: rgba(255, 255, 255, 0.75);

    --shadow:
        0 20px 60px rgba(11, 31, 58, 0.13);
}

/* =========================================================
   BODY
========================================================= */

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);

    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(42, 111, 168, 0.16),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 90%,
            rgba(201, 154, 61, 0.12),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #edf4fb 0%,
            #f9fbfd 50%,
            #e8f0f7 100%
        );
}

button,
input {
    font-family: inherit;
}

button {
    cursor: pointer;
}


/* =========================================================
   GLASS CARD
========================================================= */

.glass-card {
    background: var(--glass-bg);

    border: 1px solid var(--glass-border);

    box-shadow: var(--shadow);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}


/* =========================================================
   BACKGROUND EFFECT
========================================================= */

.glass-bg {
    position: fixed;
    inset: 0;

    pointer-events: none;

    z-index: 0;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(30, 100, 160, 0.15),
            transparent 28%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(201, 154, 61, 0.12),
            transparent 28%
        );
}


/* =========================================================
   SMALL UPPER TEXT
========================================================= */

.eyebrow {
    color: #718096;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}


/* =========================================================
   LOGIN PAGE
========================================================= */

.login-page {
    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 25px;

    position: relative;
}


/* =========================================================
   LOGIN CARD
========================================================= */

.login-card {
    width: 100%;

    max-width: 440px;

    padding: 40px;

    border-radius: 26px;

    position: relative;

    z-index: 2;
}


/* =========================================================
   ADMIN LOGO
========================================================= */

.admin-logo {
    width: 76px;

    height: 76px;

    margin: 0 auto 20px;

    border-radius: 21px;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        linear-gradient(
            145deg,
            var(--navy),
            var(--navy-light)
        );

    color: white;

    font-size: 30px;

    box-shadow:
        0 15px 35px rgba(11, 31, 58, 0.25);
}


/* =========================================================
   LOGIN TITLE
========================================================= */

.login-card .eyebrow {
    text-align: center;
}

.login-card h1 {
    text-align: center;

    color: var(--navy);

    font-size: 32px;

    margin-top: 7px;

    margin-bottom: 7px;
}

.login-subtitle {
    text-align: center;

    color: var(--muted);

    font-size: 14px;

    margin-bottom: 28px;
}


/* =========================================================
   FORM LABEL
========================================================= */

.login-card label {
    display: block;

    color: #334155;

    font-size: 13px;

    font-weight: 700;

    margin-top: 17px;

    margin-bottom: 8px;
}


/* =========================================================
   INPUT
========================================================= */

.input-wrap {
    position: relative;

    width: 100%;
}

.input-wrap > i {
    position: absolute;

    left: 16px;

    top: 50%;

    transform: translateY(-50%);

    color: #7890a8;

    font-size: 14px;

    z-index: 2;
}

.input-wrap input {
    width: 100%;

    height: 51px;

    border-radius: 14px;

    border: 1px solid rgba(91, 111, 136, 0.22);

    background: rgba(255, 255, 255, 0.78);

    color: var(--text);

    padding: 0 48px;

    outline: none;

    transition: 0.2s ease;
}

.input-wrap input::placeholder {
    color: #9aa6b5;
}

.input-wrap input:focus {
    border-color: rgba(201, 154, 61, 0.8);

    box-shadow:
        0 0 0 4px rgba(201, 154, 61, 0.1);
}


/* =========================================================
   PASSWORD TOGGLE
========================================================= */

.password-toggle {
    position: absolute;

    right: 8px;

    top: 50%;

    transform: translateY(-50%);

    width: 38px;

    height: 38px;

    border: none;

    background: transparent;

    color: #718096;

    border-radius: 10px;

    display: flex;

    align-items: center;

    justify-content: center;
}

.password-toggle:hover {
    background: rgba(11, 31, 58, 0.06);

    color: var(--navy);
}


/* =========================================================
   LOGIN BUTTON
========================================================= */

.login-btn {
    width: 100%;

    height: 52px;

    margin-top: 24px;

    border: none;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            var(--navy),
            var(--navy-light)
        );

    color: white;

    font-size: 14px;

    font-weight: 700;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    box-shadow:
        0 12px 28px rgba(11, 31, 58, 0.22);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.login-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 16px 32px rgba(11, 31, 58, 0.27);
}

.login-btn:active {
    transform: translateY(0);
}


/* =========================================================
   LOGIN ERROR
========================================================= */

.login-message {
    min-height: 20px;

    margin-top: 12px;

    text-align: center;

    color: var(--danger);

    font-size: 13px;
}


/* =========================================================
   BACK TO WEBSITE
========================================================= */

.back-link {
    display: block;

    margin-top: 22px;

    text-align: center;

    color: #355a7d;

    font-size: 13px;

    text-decoration: none;
}

.back-link:hover {
    color: var(--navy);
}


/* =========================================================
   DEMO INFORMATION
========================================================= */

.demo-note {
    display: flex;

    gap: 9px;

    margin-top: 24px;

    padding: 13px;

    border-radius: 13px;

    background:
        rgba(201, 154, 61, 0.09);

    border:
        1px solid rgba(201, 154, 61, 0.22);

    color: #6b5a35;

    font-size: 11px;

    line-height: 1.5;
}

.demo-note i {
    margin-top: 2px;
}


/* =========================================================
   DASHBOARD LAYOUT
========================================================= */

.dashboard-shell {
    min-height: 100vh;

    display: flex;
}


/* =========================================================
   SIDEBAR
========================================================= */

.admin-sidebar {
    width: 255px;

    min-height: 100vh;

    flex: 0 0 255px;

    padding: 24px 15px;

    background:
        rgba(11, 31, 58, 0.97);

    color: white;

    display: flex;

    flex-direction: column;

    position: relative;

    z-index: 100;
}


/* =========================================================
   SIDEBAR BRAND
========================================================= */

.sidebar-brand {
    display: flex;

    align-items: center;

    gap: 12px;

    padding:
        5px 10px 27px;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.1);
}

.brand-icon {
    width: 44px;

    height: 44px;

    border-radius: 13px;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        rgba(255, 255, 255, 0.1);

    color: #e3c47d;

    font-size: 18px;
}

.sidebar-brand strong {
    display: block;

    font-size: 16px;
}

.sidebar-brand small {
    display: block;

    color: #aebdce;

    font-size: 11px;

    margin-top: 3px;
}


/* =========================================================
   SIDEBAR NAV
========================================================= */

.admin-nav {
    padding-top: 22px;

    display: flex;

    flex-direction: column;

    gap: 6px;
}

.admin-nav-item,
.sidebar-link {
    width: 100%;

    min-height: 45px;

    border: none;

    border-radius: 12px;

    background: transparent;

    color: #b8c6d6;

    text-decoration: none;

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 12px 13px;

    font-size: 13px;

    text-align: left;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.admin-nav-item i,
.sidebar-link i {
    width: 19px;

    text-align: center;
}

.admin-nav-item:hover,
.sidebar-link:hover {
    background:
        rgba(255, 255, 255, 0.07);

    color: white;
}

.admin-nav-item.active {
    background:
        rgba(201, 154, 61, 0.16);

    color: #f1d38e;
}


/* =========================================================
   SIDEBAR BOTTOM
========================================================= */

.sidebar-bottom {
    margin-top: auto;

    padding-top: 15px;

    border-top:
        1px solid rgba(255, 255, 255, 0.1);

    display: flex;

    flex-direction: column;

    gap: 5px;
}

.logout-btn {
    color: #e8b4b4;
}


/* =========================================================
   MAIN AREA
========================================================= */

.admin-main {
    min-width: 0;

    flex: 1;

    padding: 22px;
}


/* =========================================================
   TOP BAR
========================================================= */

.admin-topbar {
    min-height: 78px;

    border-radius: 19px;

    padding: 14px 20px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;
}

.admin-topbar h1 {
    color: var(--navy);

    font-size: 25px;

    margin-top: 4px;
}


/* =========================================================
   ADMIN USER
========================================================= */

.admin-user {
    display: flex;

    align-items: center;

    gap: 10px;
}

.user-avatar {
    width: 42px;

    height: 42px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        rgba(11, 31, 58, 0.08);

    color: var(--navy);
}

.admin-user strong {
    display: block;

    font-size: 13px;
}

.admin-user small {
    display: block;

    color: var(--muted);

    font-size: 11px;

    margin-top: 2px;
}


/* =========================================================
   MOBILE SIDEBAR BUTTON
========================================================= */

.mobile-sidebar-btn {
    display: none;

    width: 40px;

    height: 40px;

    border: none;

    border-radius: 11px;

    background:
        rgba(11, 31, 58, 0.08);

    color: var(--navy);

    align-items: center;

    justify-content: center;
}


/* =========================================================
   CONTENT
========================================================= */

.admin-content {
    padding-top: 22px;
}

.dashboard-section {
    display: none;
}

.dashboard-section.active {
    display: block;
}


/* =========================================================
   WELCOME CARD
========================================================= */

.welcome-card {
    min-height: 130px;

    border-radius: 20px;

    padding: 25px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 20px;
}

.welcome-card h2,
.panel-heading h2 {
    color: var(--navy);

    font-size: 21px;

    margin:
        5px 0 7px;
}

.welcome-card p:not(.eyebrow) {
    color: var(--muted);

    font-size: 13px;

    line-height: 1.6;
}

.welcome-icon {
    width: 64px;

    height: 64px;

    border-radius: 18px;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        rgba(11, 31, 58, 0.08);

    color: var(--navy);

    font-size: 25px;
}


/* =========================================================
   STATISTICS
========================================================= */

.stats-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 16px;

    margin-bottom: 20px;
}

.stat-card {
    min-height: 100px;

    border-radius: 18px;

    padding: 20px;

    display: flex;

    align-items: center;

    gap: 15px;
}

.stat-icon {
    width: 46px;

    height: 46px;

    flex-shrink: 0;

    border-radius: 14px;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        rgba(11, 31, 58, 0.08);

    color: var(--navy);
}

.stat-card span {
    display: block;

    color: var(--muted);

    font-size: 11px;

    margin-bottom: 4px;
}

.stat-card strong {
    display: block;

    color: var(--navy);

    font-size: 24px;
}


/* =========================================================
   PANEL
========================================================= */

.panel-card {
    border-radius: 20px;

    padding: 23px;
}

.panel-heading {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin-bottom: 18px;
}


/* =========================================================
   BUTTONS
========================================================= */

.outline-btn,
.danger-btn {
    border-radius: 10px;

    padding: 9px 13px;

    background:
        rgba(255, 255, 255, 0.65);

    border:
        1px solid rgba(11, 31, 58, 0.15);

    color: var(--navy);

    font-size: 12px;

    font-weight: 700;
}

.outline-btn:hover {
    background: white;
}

.danger-btn {
    color: #a52a2a;

    border-color:
        rgba(165, 42, 42, 0.2);
}

.danger-btn:hover {
    background:
        rgba(180, 35, 24, 0.06);
}


/* =========================================================
   TABLE
========================================================= */

.table-wrap {
    width: 100%;

    overflow-x: auto;
}

.data-table {
    width: 100%;

    min-width: 650px;

    border-collapse: collapse;
}

.data-table th {
    padding: 12px;

    background:
        rgba(11, 31, 58, 0.06);

    color: #526173;

    text-align: left;

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.5px;
}

.data-table td {
    padding: 13px 12px;

    border-bottom:
        1px solid rgba(11, 31, 58, 0.08);

    color: #344054;

    font-size: 12px;
}

.data-table tbody tr:hover td {
    background:
        rgba(255, 255, 255, 0.35);
}


/* =========================================================
   EMPTY STATE
========================================================= */

.empty-state {
    padding: 45px 15px;

    text-align: center;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.7;
}

.empty-state i {
    display: block;

    margin-bottom: 12px;

    color: #9aa8b8;

    font-size: 30px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .stats-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 760px) {

    .admin-sidebar {

        position: fixed;

        top: 0;

        left: 0;

        bottom: 0;

        width: 260px;

        transform:
            translateX(-105%);

        transition:
            transform 0.25s ease;

        box-shadow:
            15px 0 40px rgba(0, 0, 0, 0.2);

    }

    .admin-sidebar.open {
        transform:
            translateX(0);
    }


    .admin-main {

        width: 100%;

        padding: 12px;

    }


    .mobile-sidebar-btn {

        display: flex;

        flex-shrink: 0;

    }


    .admin-user > div:not(.user-avatar) {

        display: none;

    }


    .admin-topbar {

        padding:
            12px 14px;

    }


    .admin-topbar h1 {

        font-size: 20px;

    }


    .welcome-card {

        padding: 19px;

    }


    .stats-grid {

        grid-template-columns:
            1fr 1fr;

        gap: 10px;

    }


    .stat-card {

        padding: 15px;

        gap: 10px;

    }


    .stat-icon {

        width: 40px;

        height: 40px;

    }


    .stat-card strong {

        font-size: 20px;

    }


    .panel-card {

        padding: 16px;

    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .login-page {

        padding: 15px;

    }


    .login-card {

        padding: 28px 20px;

        border-radius: 22px;

    }


    .login-card h1 {

        font-size: 28px;

    }


    .stats-grid {

        grid-template-columns:
            1fr;

    }


    .welcome-icon {

        display: none;

    }


    .panel-heading {

        flex-direction: column;

        align-items: flex-start;

    }

}