:root {

    --bg: #f4f7fb;

    --surface: #ffffff;
    --surface-soft: #f8fafc;

    --border: #e5eaf1;

    --text: #172033;
    --muted: #718096;

    --primary: #1769e0;
    --primary-dark: #0f56bd;

    --navy: #0e1b31;
    --sidebar: #0b172a;
    --sidebar-soft: #14243c;

    --success: #21a366;
    --danger: #d84a5a;

    --shadow:
        0 14px 40px rgba(22, 38, 66, .08);
}


/* =========================================================
   GLOBAL
========================================================= */

* {
    box-sizing: border-box;
}


html,
body {

    margin: 0;

    min-height: 100%;

    font-family:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--text);

    background: var(--bg);
}


button,
input {
    font: inherit;
}


a {
    color: inherit;
    text-decoration: none;
}



/* =========================================================
   BRAND
========================================================= */

.brand-mark {

    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    flex: 0 0 auto;

    border-radius: 13px;

    color: #ffffff;

    font-size: 22px;
    font-weight: 800;

    background:
        linear-gradient(
            145deg,
            #2379ed,
            #1254bb
        );

    box-shadow:
        0 9px 24px
        rgba(23, 105, 224, .24);
}


.brand-mark.small {

    width: 38px;
    height: 38px;

    border-radius: 10px;

    font-size: 18px;
}


.brand-name {

    font-size: 14px;

    letter-spacing: .15em;

    font-weight: 800;
}


.brand-subtitle {

    margin-top: 3px;

    color: var(--muted);

    font-size: 8px;

    letter-spacing: .16em;

    font-weight: 700;
}


.eyebrow,
.topbar-kicker {

    color: var(--primary);

    font-size: 10px;

    letter-spacing: .16em;

    font-weight: 800;
}



/* =========================================================
   LOGIN
========================================================= */

.login-page {

    min-height: 100vh;

    display: grid;

    place-items: center;

    padding: 40px 24px;

    background:

        radial-gradient(
            circle at 15% 10%,
            rgba(23,105,224,.09),
            transparent 32%
        ),

        radial-gradient(
            circle at 85% 90%,
            rgba(14,27,49,.06),
            transparent 32%
        ),

        var(--bg);
}


.login-shell {

    width: min(430px, 100%);
}


/* Login brand */

.login-brand {

    display: flex;

    align-items: center;

    gap: 13px;

    margin-bottom: 22px;

    padding-left: 5px;
}


.login-brand .brand-subtitle {

    color: #7b8798;
}



/* Login card */

.login-card {

    padding: 34px 40px 35px;

    background:
        rgba(255,255,255,.97);

    border: 1px solid var(--border);

    border-radius: 18px;

    box-shadow: var(--shadow);

    text-align: left;
}



/* =========================================================
   LOGIN AVATAR
========================================================= */

.login-avatar-wrap {

    width: 92px;
    height: 92px;

    margin: 0 auto 21px;

    padding: 4px;

    border-radius: 50%;

    background: #ffffff;

    border: 1px solid #dce5f0;

    box-shadow:
        0 8px 24px
        rgba(25, 59, 105, .12);
}


.login-avatar {

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center 24%;

    border-radius: 50%;
}



/* Login typography */

.login-card .eyebrow {

    text-align: center;
}


.login-card h1 {

    margin: 8px 0 8px;

    font-size: 29px;

    letter-spacing: -.025em;

    text-align: center;
}


.login-description {

    margin: 0 auto 27px;

    max-width: 310px;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.6;

    text-align: center;
}



/* Error */

.alert {

    padding: 11px 13px;

    margin-bottom: 20px;

    border-radius: 9px;

    font-size: 13px;
}


.alert-error {

    color: #9d2937;

    background: #fff1f3;

    border: 1px solid #ffd6db;
}



/* Form */

.login-card label {

    display: block;

    margin: 0 0 8px;

    color: #344054;

    font-size: 12px;

    font-weight: 700;
}


.login-card input {

    width: 100%;

    height: 48px;

    padding: 0 14px;

    margin-bottom: 18px;

    color: var(--text);

    background: #ffffff;

    border: 1px solid #d8dee8;

    border-radius: 9px;

    outline: none;

    transition: .18s ease;
}


.login-card input:focus {

    border-color: var(--primary);

    box-shadow:
        0 0 0 3px
        rgba(23,105,224,.10);
}



/* Password */

.password-wrap {

    position: relative;
}


.password-wrap input {

    padding-right: 60px;
}


.password-toggle {

    position: absolute;

    top: 0;
    right: 8px;

    height: 48px;

    border: 0;

    background: transparent;

    color: var(--primary);

    cursor: pointer;

    font-size: 11px;

    font-weight: 700;
}



/* Button */

.btn-primary {

    width: 100%;

    height: 48px;

    border: 0;

    border-radius: 9px;

    color: #ffffff;

    background: var(--primary);

    cursor: pointer;

    font-size: 13px;

    font-weight: 750;

    box-shadow:
        0 8px 18px
        rgba(23,105,224,.18);

    transition: .18s ease;
}


.btn-primary:hover {

    background: var(--primary-dark);

    transform: translateY(-1px);
}


.btn-login {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 17px;

    margin-top: 3px;
}


.login-arrow {

    font-size: 18px;
}



/* Footer */

.login-footer {

    display: flex;

    justify-content: center;

    gap: 7px;

    margin-top: 25px;

    color: #9aa5b4;

    font-size: 10px;
}



/* =========================================================
   APPLICATION
========================================================= */

.app-page {

    display: flex;

    min-height: 100vh;

    background: var(--bg);
}



/* =========================================================
   SIDEBAR
========================================================= */

.sidebar {

    position: fixed;

    inset: 0 auto 0 0;

    z-index: 10;

    width: 250px;

    display: flex;

    flex-direction: column;

    padding: 25px 15px 18px;

    color: #ffffff;

    background: var(--sidebar);
}



/* Sidebar brand */

.sidebar-brand {

    display: flex;

    align-items: center;

    gap: 11px;

    padding: 0 10px 29px;
}


.sidebar-brand-photo {

    width: 40px;
    height: 40px;

    flex: 0 0 auto;

    padding: 2px;

    border-radius: 50%;

    background: #ffffff;

    border: 1px solid
        rgba(255,255,255,.12);

    overflow: hidden;

    box-shadow:
        0 5px 14px
        rgba(0,0,0,.20);
}


.sidebar-brand-photo img {

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center 24%;

    border-radius: 50%;
}


.sidebar-brand-text .brand-name {

    font-size: 12px;
}


.sidebar-brand-text .brand-subtitle {

    color: #72839d;
}



/* Sidebar sections */

.sidebar-section-label {

    padding: 0 12px;

    margin: 15px 0 9px;

    color: #60728f;

    font-size: 9px;

    letter-spacing: .16em;

    font-weight: 800;
}


.nav-menu {

    display: grid;

    gap: 4px;
}


.nav-item {

    min-height: 43px;

    display: flex;

    align-items: center;

    gap: 11px;

    padding: 0 12px;

    border-radius: 8px;

    color: #aab8cc;

    font-size: 12px;

    font-weight: 650;
}


.nav-item.active {

    color: #ffffff;

    background: #162a47;

    box-shadow:
        inset 3px 0 0
        var(--primary);
}


.nav-item.disabled {

    opacity: .55;

    cursor: default;
}


.nav-icon {

    width: 20px;

    color: #8ea3c0;

    text-align: center;

    font-size: 15px;
}


.nav-item.active .nav-icon {

    color: #65a4ff;
}


.nav-soon {

    margin-left: auto;

    color: #657893;

    font-size: 7px;

    letter-spacing: .1em;
}



/* Sidebar bottom */

.sidebar-bottom {

    margin-top: auto;

    padding: 14px 12px 2px;

    border-top:
        1px solid #1b2b43;
}


.status-row {

    display: flex;

    align-items: center;

    gap: 8px;

    color: #7f91ab;

    font-size: 10px;
}


.status-dot {

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--success);

    box-shadow:
        0 0 0 3px
        rgba(33,163,102,.10);
}



/* =========================================================
   MAIN SHELL
========================================================= */

.main-shell {

    width: calc(100% - 250px);

    min-height: 100vh;

    margin-left: 250px;
}



/* =========================================================
   TOPBAR
========================================================= */

.topbar {

    min-height: 84px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 18px 34px;

    background:
        rgba(255,255,255,.94);

    border-bottom:
        1px solid var(--border);
}


.topbar h1 {

    margin: 3px 0 0;

    font-size: 22px;

    letter-spacing: -.02em;
}



/* User */

.topbar-user {

    display: flex;

    align-items: center;

    gap: 12px;
}


.user-copy {

    display: grid;

    gap: 2px;

    text-align: right;
}


.user-copy strong {

    font-size: 12px;
}


.user-copy span {

    color: var(--muted);

    font-size: 10px;
}



/* Top avatar */

.topbar-avatar {

    width: 38px;
    height: 38px;

    padding: 2px;

    border-radius: 50%;

    background: #ffffff;

    border: 1px solid #dce5f0;

    box-shadow:
        0 4px 12px
        rgba(22,38,66,.08);

    overflow: hidden;
}


.topbar-avatar img {

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center 24%;

    border-radius: 50%;
}



/* Logout */

.logout-btn {

    width: 32px;
    height: 32px;

    display: grid;

    place-items: center;

    color: #78869a;

    border:
        1px solid var(--border);

    border-radius: 8px;

    font-size: 17px;

    transition: .18s ease;
}


.logout-btn:hover {

    color: var(--danger);

    border-color: #f1c9ce;

    background: #fff7f8;
}



/* =========================================================
   CONTENT
========================================================= */

.content {

    padding: 31px 34px 55px;
}



/* =========================================================
   WELCOME CARD
========================================================= */

.welcome-card {

    min-height: 175px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 32px 36px;

    overflow: hidden;

    position: relative;

    color: #ffffff;

    border-radius: 15px;

    background:
        linear-gradient(
            115deg,
            #10213b 0%,
            #17385f 100%
        );

    box-shadow:
        0 16px 32px
        rgba(14,27,49,.12);
}


.welcome-copy {

    position: relative;

    z-index: 2;
}


.welcome-card .eyebrow {

    color: #77afff;
}


.welcome-card h2 {

    margin: 9px 0 8px;

    font-size: 24px;

    letter-spacing: -.025em;
}


.welcome-card p {

    margin: 0;

    max-width: 570px;

    color: #aebed4;

    font-size: 12px;

    line-height: 1.6;
}



/* Welcome profile */

.welcome-profile {

    width: 92px;
    height: 92px;

    flex: 0 0 auto;

    margin-right: 8px;

    padding: 4px;

    border-radius: 50%;

    background:
        rgba(255,255,255,.10);

    border:
        1px solid
        rgba(255,255,255,.18);

    box-shadow:
        0 10px 25px
        rgba(0,0,0,.18);

    overflow: hidden;
}


.welcome-profile img {

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center 24%;

    border-radius: 50%;
}



/* =========================================================
   EMPTY STATE
========================================================= */

.empty-state {

    min-height: 290px;

    display: grid;

    place-items: center;

    align-content: center;

    margin-top: 20px;

    background: var(--surface);

    border:
        1px solid var(--border);

    border-radius: 15px;

    box-shadow:
        0 8px 25px
        rgba(22,38,66,.035);
}


.empty-icon {

    width: 48px;
    height: 48px;

    display: grid;

    place-items: center;

    margin-bottom: 12px;

    color: #6b9ce2;

    background: #edf5ff;

    border-radius: 13px;

    font-size: 21px;
}


.empty-state h3 {

    margin: 0 0 5px;

    font-size: 14px;
}


.empty-state p {

    margin: 0;

    color: var(--muted);

    font-size: 11px;
}



/* =========================================================
   FOOTER
========================================================= */

.app-footer {

    display: flex;

    justify-content: space-between;

    padding: 0 34px 25px;

    color: #9aa5b4;

    font-size: 9px;

    letter-spacing: .03em;
}



/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 800px) {

    .sidebar {

        width: 72px;

        padding-left: 9px;
        padding-right: 9px;
    }


    .sidebar-brand {

        justify-content: center;

        padding-left: 0;
        padding-right: 0;
    }


    .sidebar-brand-text,
    .sidebar-section-label,
    .nav-item span:not(.nav-icon),
    .sidebar-bottom {

        display: none;
    }


    .nav-item {

        justify-content: center;

        padding: 0;
    }


    .main-shell {

        width: calc(100% - 72px);

        margin-left: 72px;
    }


    .topbar,
    .content {

        padding-left: 20px;
        padding-right: 20px;
    }


    .user-copy {

        display: none;
    }


    .welcome-card {

        padding: 25px;
    }


    .welcome-profile {

        width: 76px;
        height: 76px;

        margin-right: 0;
    }


    .app-footer {

        padding-left: 20px;
        padding-right: 20px;
    }
}



@media (max-width: 520px) {

    .login-card {

        padding:
            30px
            22px
            30px;
    }


    .login-page {

        padding:
            25px
            15px;
    }


    .login-avatar-wrap {

        width: 82px;
        height: 82px;

        margin-bottom: 18px;
    }


    .topbar {

        min-height: 74px;
    }


    .topbar h1 {

        font-size: 19px;
    }


    .content {

        padding-top: 20px;
    }


    .welcome-card {

        min-height: 150px;
    }


    .welcome-card h2 {

        font-size: 20px;
    }


    .welcome-profile {

        width: 64px;
        height: 64px;
    }


    .app-footer {

        padding-left: 20px;
        padding-right: 20px;
    }

}