@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Rajdhani:wght@600;700&display=swap');

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    background:
        radial-gradient(
            circle at 15% 5%,
            rgba(24, 88, 170, 0.15),
            transparent 30%
        ),
        #070b11;

    color: #edf3fb;

    font-family: 'Inter', sans-serif;
}


/* HEADER */

.csk-header {
    height: 86px;

    border-bottom: 1px solid rgba(255,255,255,0.07);

    background:
        linear-gradient(
            180deg,
            rgba(15,23,35,0.97),
            rgba(7,11,17,0.96)
        );

    position: sticky;
    top: 0;

    z-index: 100;
}

.csk-header::after {
    content: '';

    position: absolute;

    left: 0;
    right: 0;
    bottom: -1px;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(47,139,255,.6),
            transparent
        );
}

.csk-header-inner {
    max-width: 1500px;

    height: 100%;

    margin: auto;

    padding: 0 34px;

    display: flex;

    align-items: center;

    gap: 45px;
}


/* LOGO */

.csk-logo {
    text-decoration: none;

    font-family: 'Rajdhani', sans-serif;

    font-size: 27px;

    font-weight: 700;

    letter-spacing: 2px;

    color: #ffffff;

    white-space: nowrap;
}

.csk-logo span {
    color: #3b92ff;
}


/* NAV */

.csk-nav {
    display: flex;

    align-items: center;

    height: 100%;

    gap: 4px;
}

.csk-nav a {
    height: 100%;

    display: flex;

    align-items: center;

    padding: 0 18px;

    position: relative;

    color: #8997aa;

    text-decoration: none;

    font-size: 13px;

    font-weight: 600;

    transition: .25s;
}

.csk-nav a:hover {
    color: #ffffff;
}

.csk-nav a.active {
    color: #ffffff;
}

.csk-nav a.active::after {
    content: '';

    position: absolute;

    left: 18px;
    right: 18px;
    bottom: 0;

    height: 2px;

    background: #398eff;

    box-shadow:
        0 0 14px rgba(57,142,255,.9);
}


/* USER AREA */

.csk-user-area {
    margin-left: auto;

    display: flex;

    align-items: center;

    gap: 26px;
}

.system-status {
    display: flex;

    align-items: center;

    gap: 9px;

    color: #8b98aa;

    font-size: 12px;

    font-weight: 600;
}

.status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #44d487;

    box-shadow:
        0 0 10px rgba(68,212,135,.7);
}

.user-box {
    display: flex;

    align-items: center;

    gap: 18px;
}

.user-box > div {
    display: flex;

    flex-direction: column;

    align-items: flex-end;
}

.user-box strong {
    font-size: 13px;
}

.user-box span {
    margin-top: 3px;

    color: #667589;

    font-size: 9px;

    letter-spacing: 1.4px;
}

.logout-button {
    text-decoration: none;

    color: #8795a8;

    font-size: 12px;

    transition: .2s;
}

.logout-button:hover {
    color: #ffffff;
}


/* DASHBOARD */

.dashboard {
    max-width: 1500px;

    margin: auto;

    padding: 55px 34px 80px;
}


/* HERO */

.hero {
    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    margin-bottom: 40px;
}

.eyebrow {
    color: #398eff;

    font-size: 10px;

    letter-spacing: 2px;

    font-weight: 800;

    margin-bottom: 12px;
}

.hero h1 {
    margin: 0;

    font-family: 'Rajdhani', sans-serif;

    font-size: 42px;

    line-height: 1;

    letter-spacing: -1px;
}

.hero p {
    color: #718096;

    margin: 11px 0 0;

    font-size: 13px;
}

.hero-status {
    display: flex;

    align-items: center;

    gap: 10px;

    color: #718096;

    font-size: 10px;

    letter-spacing: 1.5px;

    font-weight: 700;
}

.hero-status span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #44d487;
}


/* STATS */

.stats-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 16px;

    margin-bottom: 25px;
}

.stat-card {
    min-height: 145px;

    padding: 25px;

    border: 1px solid rgba(255,255,255,.065);

    background:
        linear-gradient(
            145deg,
            rgba(19,29,43,.9),
            rgba(10,15,23,.9)
        );

    position: relative;

    overflow: hidden;
}

.stat-card::after {
    content: '';

    position: absolute;

    width: 110px;
    height: 110px;

    right: -60px;
    top: -60px;

    border: 1px solid rgba(57,142,255,.15);

    transform: rotate(45deg);
}

.stat-card > span {
    display: block;

    color: #67768a;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1.5px;
}

.stat-card strong {
    display: block;

    margin-top: 13px;

    font-family: 'Rajdhani', sans-serif;

    font-size: 38px;

    font-weight: 700;
}

.stat-card small {
    color: #5e6b7c;

    font-size: 11px;
}


/* PANEL */

.dashboard-panel {
    border: 1px solid rgba(255,255,255,.065);

    background: rgba(11,17,26,.85);
}

.panel-heading {
    min-height: 90px;

    padding: 20px 26px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-bottom: 1px solid rgba(255,255,255,.055);
}

.panel-label {
    color: #398eff;

    font-size: 9px;

    letter-spacing: 1.8px;

    font-weight: 800;
}

.panel-heading h2 {
    margin: 4px 0 0;

    font-size: 18px;
}

.primary-button {
    border: 1px solid rgba(57,142,255,.55);

    background: rgba(57,142,255,.09);

    color: #7eb7ff;

    padding: 11px 17px;

    font-family: inherit;

    font-size: 11px;

    font-weight: 700;

    cursor: pointer;

    transition: .2s;
}

.primary-button:hover {
    background: #398eff;

    color: #ffffff;
}


/* EMPTY */

.empty-state {
    min-height: 300px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;
}

.empty-line {
    width: 38px;
    height: 2px;

    background: #398eff;

    margin-bottom: 20px;

    box-shadow:
        0 0 15px rgba(57,142,255,.6);
}

.empty-state h3 {
    margin: 0;

    font-size: 16px;
}

.empty-state p {
    max-width: 430px;

    color: #617084;

    font-size: 12px;

    line-height: 1.7;
}


/* LOGIN */

.login-body {
    min-height: 100vh;

    display: flex;

    justify-content: center;

    align-items: center;
}

.login-shell {
    width: 100%;

    max-width: 410px;
}

.login-brand {
    text-align: center;

    font-family: 'Rajdhani', sans-serif;

    font-weight: 700;

    font-size: 31px;

    letter-spacing: 3px;
}

.login-brand span {
    color: #398eff;
}

.login-subtitle {
    margin-top: 5px;

    margin-bottom: 30px;

    text-align: center;

    color: #536174;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 2px;
}

.login-card {
    padding: 32px;

    border: 1px solid rgba(255,255,255,.07);

    background:
        linear-gradient(
            150deg,
            rgba(18,27,40,.97),
            rgba(8,12,19,.97)
        );
}

.login-card-top {
    margin-bottom: 25px;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.5px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;

    color: #76859a;

    font-size: 10px;

    margin-bottom: 8px;
}

.form-group input {
    width: 100%;

    height: 46px;

    border: 1px solid rgba(255,255,255,.09);

    outline: none;

    padding: 0 13px;

    background: rgba(0,0,0,.2);

    color: white;

    font-family: inherit;

    transition: .2s;
}

.form-group input:focus {
    border-color: #398eff;
}

.login-button {
    width: 100%;

    height: 47px;

    margin-top: 6px;

    border: 0;

    background:
        linear-gradient(
            90deg,
            #256fc7,
            #398eff
        );

    color: white;

    font-family: inherit;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1px;

    cursor: pointer;
}

.alert-error {
    margin-bottom: 20px;

    padding: 12px;

    border: 1px solid rgba(255,88,88,.25);

    background: rgba(255,88,88,.06);

    color: #ff8d8d;

    font-size: 11px;
}

.login-footer {
    margin-top: 20px;

    text-align: center;

    color: #3c4756;

    font-size: 9px;

    letter-spacing: 1.5px;
}


/* MOBILE */

@media (max-width: 900px) {

    .csk-header {
        height: auto;
    }

    .csk-header-inner {
        padding: 20px;

        flex-wrap: wrap;
    }

    .csk-nav {
        order: 3;

        width: 100%;

        overflow-x: auto;
    }

    .csk-nav a {
        height: 45px;

        padding: 0 14px;
    }

    .system-status {
        display: none;
    }

    .dashboard {
        padding: 35px 20px 60px;
    }

    .stats-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }
}


@media (max-width: 560px) {

    .csk-user-area {
        gap: 10px;
    }

    .user-box > div {
        display: none;
    }

    .hero {
        align-items: flex-start;

        flex-direction: column;

        gap: 22px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}