* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    width: 100%;
    height: 100%;
    font-family:
        Arial,
        Helvetica,
        sans-serif;
    background: #eef1f5;
    color: #252b34;
}

button {
    font: inherit;
}

#app-shell {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}


/* ==========================================================
   TOP HEADER
   ========================================================== */

#top-header {
    height: 64px;
    flex-shrink: 0;

    display: flex;
    align-items: center;

    background: #123b68;
    color: white;

    border-bottom: 1px solid #0c2e53;
}

.brand-area {
    width: 310px;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 0 18px;
}

.brand-logo {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: white;
    color: #123b68;

    font-size: 22px;
    font-weight: 700;
}

.brand-title {
    font-size: 15px;
    font-weight: 700;
}

.brand-subtitle {
    margin-top: 2px;

    font-size: 11px;
    opacity: .78;
}

.context-area {
    display: flex;
    align-items: center;
    gap: 7px;
}

.context-button,
.user-button,
.header-icon-button {
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.08);
    color: white;

    cursor: pointer;

    border-radius: 5px;
}

.context-button {
    min-width: 125px;
    height: 34px;

    padding: 0 12px;

    text-align: left;
}

.user-area {
    margin-left: auto;

    display: flex;
    align-items: center;
    gap: 6px;

    padding-right: 12px;
}

.header-icon-button {
    width: 36px;
    height: 36px;
}

.user-button {
    height: 36px;
    padding: 0 13px;
}


/* ==========================================================
   APPLICATION BODY
   ========================================================== */

#application-body {
    flex: 1;

    display: flex;

    min-height: 0;
}


/* ==========================================================
   SIDEBAR
   ========================================================== */

#sidebar {
    width: 54px;

    display: flex;
    flex-direction: column;
    align-items: center;

    background: #164a7d;

    border-right: 1px solid #0d345b;
}

.sidebar-button {
    width: 54px;
    height: 50px;

    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.06);

    background: transparent;
    color: white;

    font-size: 20px;

    cursor: pointer;
}

.sidebar-button:hover,
.sidebar-button.active {
    background: #f03b69;
}

.sidebar-spacer {
    flex: 1;
}


/* ==========================================================
   MAIN
   ========================================================== */

#main-area {
    flex: 1;

    display: flex;
    flex-direction: column;

    min-width: 0;
    min-height: 0;
}


/* ==========================================================
   WORKSPACE TABS
   ========================================================== */

#workspace-tabs {
    height: 42px;

    flex-shrink: 0;

    display: flex;
    align-items: end;

    padding-left: 8px;

    background: #dde2e8;

    border-bottom: 1px solid #bdc5ce;
}

.workspace-tab {
    height: 34px;

    padding: 0 18px;

    border: 1px solid #bdc5ce;
    border-bottom: 0;

    background: #e9edf1;

    cursor: pointer;
}

.workspace-tab.active {
    background: white;

    border-top: 3px solid #f03b69;
}


/* ==========================================================
   WORKSPACE
   ========================================================== */

#workspace {
    flex: 1;

    overflow: auto;

    padding: 24px;
}

.welcome-card {
    max-width: 980px;

    margin: 40px auto;

    padding: 42px;

    background: white;

    border: 1px solid #d6dae0;
    border-radius: 5px;

    box-shadow:
        0 5px 20px rgba(0,0,0,.08);

    text-align: center;
}

.welcome-icon {
    width: 72px;
    height: 72px;

    margin: auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;

    background: #164a7d;
    color: white;

    font-size: 38px;
    font-weight: 700;
}

.welcome-card h1 {
    margin-bottom: 5px;
}

.welcome-card p {
    margin-top: 5px;

    color: #69717c;
}

.status-grid {
    margin-top: 35px;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 12px;
}

.status-card {
    padding: 18px;

    border: 1px solid #e0e4e9;
    border-radius: 5px;

    background: #fafbfc;
}

.status-label {
    display: block;

    margin-bottom: 8px;

    font-size: 11px;

    text-transform: uppercase;

    color: #808894;
}


/* ==========================================================
   MODAL LAYER
   ========================================================== */

#modal-layer {
    position: fixed;
    inset: 0;

    pointer-events: none;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 900px) {

    .context-area {
        display: none;
    }

    .brand-area {
        width: auto;
        flex: 1;
    }

    .status-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}
