/* =========================================================
   LVRP STAFF PORTAL
   Dark cinematic command-center design
========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, Arial, Helvetica, sans-serif;
    background: #07080a;
    color: #ffffff;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}


/* =========================================================
   LOGIN
========================================================= */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;

    background:
        linear-gradient(
            rgba(5, 6, 8, 0.82),
            rgba(5, 6, 8, 0.96)
        ),
        radial-gradient(
            circle at 50% 0%,
            rgba(83, 95, 120, 0.2),
            transparent 45%
        ),
        #07080a;
}

.login-container {
    width: 100%;
    max-width: 520px;
}

.login-card {
    position: relative;
    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            rgba(24, 27, 33, 0.98),
            rgba(11, 13, 17, 0.98)
        );

    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;

    box-shadow:
        0 40px 120px rgba(0,0,0,0.65),
        inset 0 1px rgba(255,255,255,0.04);
}

.login-card::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            120deg,
            rgba(255,255,255,0.035),
            transparent 35%
        );

    pointer-events: none;
}

.login-brand {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;

    padding: 28px 30px;

    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.login-logo {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: #ffffff;
    color: #08090b;

    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1px;

    box-shadow:
        0 8px 30px rgba(255,255,255,0.08);
}

.login-brand span {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2.5px;
    color: rgba(255,255,255,0.42);
}

.login-content {
    position: relative;
    padding: 55px 40px 40px;
}

.login-badge {
    display: inline-flex;
    align-items: center;

    padding: 7px 11px;

    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 999px;

    background: rgba(255,255,255,0.04);

    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.8px;

    color: rgba(255,255,255,0.5);
}

.login-content h1 {
    margin-top: 20px;

    font-size: 46px;
    line-height: 1.05;
    letter-spacing: -1.8px;
}

.login-content > p {
    max-width: 400px;

    margin-top: 16px;

    color: rgba(255,255,255,0.54);

    line-height: 1.75;
    font-size: 14px;
}

.discord-login {
    position: relative;

    width: 100%;
    min-height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    margin-top: 32px;

    border-radius: 13px;

    background: #5865f2;
    color: #ffffff;

    font-size: 14px;
    font-weight: 800;

    box-shadow:
        0 15px 35px rgba(88,101,242,0.2);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

.discord-login:hover {
    transform: translateY(-2px);

    filter: brightness(1.06);

    box-shadow:
        0 20px 45px rgba(88,101,242,0.3);
}

.discord-icon {
    font-size: 17px;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 14px;

    margin: 30px 0 18px;
}

.login-divider::before,
.login-divider::after {
    content: "";

    height: 1px;
    flex: 1;

    background: rgba(255,255,255,0.08);
}

.login-divider span {
    white-space: nowrap;

    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1.7px;

    color: rgba(255,255,255,0.28);
}

.login-note {
    text-align: center;
    font-size: 11px !important;
    line-height: 1.6 !important;
    color: rgba(255,255,255,0.32) !important;
}

.login-footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;

    padding: 18px 30px;

    border-top: 1px solid rgba(255,255,255,0.07);

    font-size: 10px;

    color: rgba(255,255,255,0.3);
}

.login-footer a {
    color: rgba(255,255,255,0.58);
}

.login-footer a:hover {
    color: #ffffff;
}


/* =========================================================
   DASHBOARD
========================================================= */

.dashboard {
    min-height: 100vh;
    display: flex;

    background:
        radial-gradient(
            circle at 65% -10%,
            rgba(100,110,135,0.08),
            transparent 35%
        ),
        #08090b;
}


/* =========================================================
   SIDEBAR
========================================================= */

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;

    width: 260px;

    display: flex;
    flex-direction: column;

    background:
        linear-gradient(
            180deg,
            #0d0f13 0%,
            #090a0d 100%
        );

    border-right: 1px solid rgba(255,255,255,0.08);

    z-index: 20;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 13px;

    padding: 25px 22px 26px;

    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.sidebar-logo-mark {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #ffffff;
    color: #08090b;

    font-size: 14px;
    font-weight: 900;
}

.sidebar-logo strong {
    display: block;

    font-size: 15px;
    letter-spacing: 0.5px;
}

.sidebar-logo span {
    display: block;

    margin-top: 4px;

    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1.7px;

    color: rgba(255,255,255,0.34);
}

.sidebar-label {
    padding: 26px 22px 11px;

    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1.8px;

    color: rgba(255,255,255,0.28);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;

    gap: 4px;

    padding: 0 10px;
}

.sidebar-nav a,
.sidebar-bottom a {
    position: relative;

    display: flex;
    align-items: center;
    gap: 13px;

    min-height: 44px;

    padding: 0 13px;

    border-radius: 10px;

    color: rgba(255,255,255,0.48);

    font-size: 12px;
    font-weight: 700;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.sidebar-nav a span,
.sidebar-bottom a span {
    width: 19px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: rgba(255,255,255,0.3);

    font-size: 13px;
}

.sidebar-nav a:hover,
.sidebar-bottom a:hover {
    background: rgba(255,255,255,0.045);
    color: #ffffff;
}

.sidebar-nav a.active {
    background: rgba(255,255,255,0.075);
    color: #ffffff;
}

.sidebar-nav a.active::before {
    content: "";

    position: absolute;
    left: 0;
    top: 9px;
    bottom: 9px;

    width: 2px;

    border-radius: 4px;

    background: #ffffff;
}

.sidebar-nav a.active span {
    color: #ffffff;
}

.sidebar-bottom {
    margin-top: auto;

    padding: 14px 10px;

    border-top: 1px solid rgba(255,255,255,0.07);
}


/* =========================================================
   MAIN
========================================================= */

.dashboard-main {
    width: calc(100% - 260px);

    margin-left: 260px;

    min-height: 100vh;
}


/* =========================================================
   HEADER
========================================================= */

.dashboard-header {
    min-height: 116px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding: 28px 42px;

    border-bottom: 1px solid rgba(255,255,255,0.07);

    background:
        rgba(8,9,11,0.7);

    backdrop-filter: blur(18px);

    position: sticky;
    top: 0;
    z-index: 10;
}

.dashboard-eyebrow {
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 2.2px;

    color: rgba(255,255,255,0.28);
}

.dashboard-header h1 {
    margin-top: 6px;

    font-size: 28px;
    letter-spacing: -0.8px;
}

.dashboard-header p {
    margin-top: 6px;

    color: rgba(255,255,255,0.4);

    font-size: 12px;
}


/* =========================================================
   STAFF USER
========================================================= */

.staff-user {
    display: flex;
    align-items: center;
    gap: 11px;
}

.staff-avatar {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #c9ccd2
        );

    color: #08090b;

    font-size: 13px;
    font-weight: 900;
}

.staff-user strong {
    display: block;

    font-size: 12px;
}

.staff-user span {
    display: block;

    margin-top: 2px;

    font-size: 9px;

    color: rgba(255,255,255,0.35);
}

.logout-button {
    margin-left: 14px;

    padding: 9px 13px;

    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 9px;

    background: rgba(255,255,255,0.025);

    color: rgba(255,255,255,0.45);

    cursor: pointer;

    font-size: 10px;
    font-weight: 800;

    transition: 0.2s ease;
}

.logout-button:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.06);
}


/* =========================================================
   CONTENT
========================================================= */

.dashboard-content {
    padding: 36px 42px 55px;
}


/* =========================================================
   STAT CARDS
========================================================= */

.dashboard-cards {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 14px;
}

.dashboard-card {
    position: relative;

    min-height: 145px;

    padding: 23px;

    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            rgba(24,27,33,0.95),
            rgba(12,14,18,0.95)
        );

    border: 1px solid rgba(255,255,255,0.07);

    overflow: hidden;
}

.dashboard-card::after {
    content: "";

    position: absolute;

    width: 100px;
    height: 100px;

    right: -35px;
    top: -35px;

    border-radius: 50%;

    background: rgba(255,255,255,0.025);
}

.dashboard-card-label {
    display: block;

    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1.6px;

    color: rgba(255,255,255,0.32);
}

.dashboard-card strong {
    display: block;

    margin-top: 16px;

    font-size: 37px;
    line-height: 1;

    letter-spacing: -1px;
}

.dashboard-card small {
    display: block;

    margin-top: 12px;

    font-size: 10px;

    color: rgba(255,255,255,0.34);
}


/* =========================================================
   SECTIONS
========================================================= */

.dashboard-section {
    margin-top: 25px;

    padding: 25px;

    border-radius: 17px;

    background:
        linear-gradient(
            145deg,
            rgba(16,18,22,0.94),
            rgba(10,11,14,0.94)
        );

    border: 1px solid rgba(255,255,255,0.07);
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 21px;
}

.section-eyebrow {
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1.7px;

    color: rgba(255,255,255,0.28);
}

.section-heading h2 {
    margin-top: 5px;

    font-size: 18px;
    letter-spacing: -0.3px;
}


/* =========================================================
   QUICK ACTIONS
========================================================= */

.quick-actions {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 11px;
}

.quick-action {
    min-height: 72px;

    display: flex;
    align-items: center;
    gap: 15px;

    padding: 15px;

    border-radius: 12px;

    background: rgba(255,255,255,0.025);

    border: 1px solid rgba(255,255,255,0.055);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.quick-action:hover {
    transform: translateY(-2px);

    background: rgba(255,255,255,0.045);

    border-color: rgba(255,255,255,0.11);
}

.quick-action > span {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 10px;

    background: rgba(255,255,255,0.055);

    color: rgba(255,255,255,0.7);

    font-size: 14px;
}

.quick-action strong {
    display: block;

    font-size: 12px;
}

.quick-action small {
    display: block;

    margin-top: 4px;

    font-size: 10px;

    color: rgba(255,255,255,0.34);
}


/* =========================================================
   EMPTY STATE
========================================================= */

.empty-state {
    min-height: 220px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    border: 1px dashed rgba(255,255,255,0.08);

    border-radius: 13px;

    background: rgba(255,255,255,0.012);
}

.empty-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: rgba(255,255,255,0.04);

    color: rgba(255,255,255,0.3);

    margin-bottom: 14px;
}

.empty-state h3 {
    font-size: 13px;
}

.empty-state p {
    max-width: 360px;

    margin-top: 8px;

    font-size: 10px;
    line-height: 1.6;

    color: rgba(255,255,255,0.3);
}


/* =========================================================
   STATUS GRID
========================================================= */

.status-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 11px;
}

.status-item {
    min-height: 74px;

    display: flex;
    align-items: center;
    gap: 13px;

    padding: 16px;

    border-radius: 12px;

    background: rgba(255,255,255,0.025);

    border: 1px solid rgba(255,255,255,0.055);
}

.status-item strong {
    display: block;

    font-size: 12px;
}

.status-item small {
    display: block;

    margin-top: 4px;

    font-size: 10px;

    color: rgba(255,255,255,0.33);
}

.status-dot {
    width: 8px;
    height: 8px;

    flex-shrink: 0;

    border-radius: 50%;
}

.status-dot.online {
    background: #55d98a;

    box-shadow:
        0 0 14px rgba(85,217,138,0.55);
}

.status-dot.pending {
    background: #e4b35a;

    box-shadow:
        0 0 14px rgba(228,179,90,0.35);
}


/* =========================================================
   APPLICATIONS
========================================================= */

.application-stats {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 12px;

    margin-bottom: 20px;
}

.application-table {
    overflow: hidden;

    border-radius: 13px;

    border: 1px solid rgba(255,255,255,0.06);
}

.application-type-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 11px;
}

.application-type-card {
    padding: 18px;

    border-radius: 13px;

    background: rgba(255,255,255,0.025);

    border: 1px solid rgba(255,255,255,0.055);

    transition: 0.2s ease;
}

.application-type-card:hover {
    background: rgba(255,255,255,0.045);

    border-color: rgba(255,255,255,0.1);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .dashboard-cards {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .application-stats {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 850px) {

    .sidebar {
        position: static;

        width: 100%;
        min-height: auto;
    }

    .dashboard {
        display: block;
    }

    .dashboard-main {
        width: 100%;
        margin-left: 0;
    }

    .sidebar-nav {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .sidebar-bottom {
        margin-top: 10px;
    }

    .dashboard-header {
        position: static;

        align-items: flex-start;
        flex-direction: column;
    }

    .staff-user {
        width: 100%;
    }

}

@media (max-width: 650px) {

    .dashboard-content {
        padding: 22px 16px 40px;
    }

    .dashboard-header {
        padding: 22px 16px;
    }

    .dashboard-cards,
    .quick-actions,
    .status-grid,
    .application-stats,
    .application-type-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-section {
        padding: 18px;
    }

    .login-page {
        padding: 15px;
    }

    .login-brand {
        padding: 22px;
    }

    .login-content {
        padding: 40px 23px 28px;
    }

    .login-content h1 {
        font-size: 37px;
    }

    .login-footer {
        flex-direction: column;
    }

}