* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1769e0;
    --primary-dark: #0f56bd;
    --sidebar: #07152d;
    --sidebar-light: #102750;
    --text: #172033;
    --muted: #718096;
    --light: #f5f7fb;
    --border: #e5e9f0;
    --white: #ffffff;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--light);
    color: var(--text);
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
}


/* ========================================
   PAGE
======================================== */

.dashboard-page {
    min-height: 100vh;
    display: flex;
}


/* ========================================
   SIDEBAR
======================================== */

.sidebar {
    width: 255px;
    min-height: 100vh;

    background: linear-gradient(
        180deg,
        #07152d 0%,
        #0b2552 55%,
        #1554a7 100%
    );

    color: #ffffff;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 28px 14px 22px;

    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;

    z-index: 100;
}

.sidebar-top {
    width: 100%;
}


/* BRAND */

.sidebar-brand {
    display: block;

    padding: 0 12px 25px;

    color: #ffffff;

    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.sidebar-brand span {
    color: #48d4dc;
}


/* USER */

.sidebar-user {
    display: flex;
    align-items: center;

    gap: 12px;

    padding: 13px 12px;

    margin-bottom: 30px;

    border-radius: 10px;

    background: rgba(255, 255, 255, 0.08);
}

.sidebar-avatar {
    width: 40px;
    height: 40px;

    flex-shrink: 0;

    border-radius: 50%;

    background: #2ac4ce;
    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 13px;
    font-weight: 800;
}

.sidebar-user-info {
    min-width: 0;

    display: flex;
    flex-direction: column;
}

.sidebar-user-info strong {
    overflow: hidden;

    color: #ffffff;

    font-size: 13px;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.sidebar-user-info span {
    margin-top: 2px;

    color: rgba(255, 255, 255, 0.65);

    font-size: 11px;
}


/* NAV SECTIONS */

.sidebar-section {
    margin-bottom: 28px;
}

.sidebar-label {
    padding: 0 13px;

    margin-bottom: 9px;

    color: rgba(255, 255, 255, 0.45);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.5px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;

    gap: 4px;
}

.sidebar-link {
    min-height: 44px;

    display: flex;
    align-items: center;

    gap: 13px;

    padding: 0 13px;

    border-radius: 8px;

    color: rgba(255, 255, 255, 0.72);

    font-size: 13px;
    font-weight: 600;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.sidebar-link:hover {
    color: #ffffff;

    background: rgba(255, 255, 255, 0.08);
}

.sidebar-link.active {
    color: #ffffff;

    background: linear-gradient(
        90deg,
        rgba(52, 202, 215, 0.75),
        rgba(23, 105, 224, 0.75)
    );

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.12);
}

.nav-icon {
    width: 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 15px;
}


/* LOGOUT */

.sidebar-logout {
    width: 100%;
    min-height: 45px;

    display: flex;
    align-items: center;

    gap: 13px;

    padding: 0 13px;

    border: 0;
    border-radius: 8px;

    background: transparent;

    color: rgba(255, 255, 255, 0.72);

    cursor: pointer;

    font-size: 13px;
    font-weight: 600;

    text-align: left;

    transition: 0.2s;
}

.sidebar-logout:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}


/* ========================================
   MAIN AREA
======================================== */

.dashboard-main {
    width: calc(100% - 255px);

    min-height: 100vh;

    margin-left: 255px;
}


/* ========================================
   TOP BAR
======================================== */

.dashboard-topbar {
    min-height: 88px;

    padding: 22px 45px;

    background: #ffffff;

    border-bottom: 1px solid var(--border);

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.page-label {
    color: var(--primary);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.4px;
}

.dashboard-topbar h1 {
    margin-top: 3px;

    font-size: 25px;
    line-height: 1.2;
}

.topbar-user {
    display: flex;
    align-items: center;

    gap: 10px;
}

.topbar-avatar {
    width: 40px;
    height: 40px;

    border-radius: 50%;

    background: var(--primary);
    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 13px;
    font-weight: 800;
}

.topbar-user div:last-child {
    display: flex;
    flex-direction: column;
}

.topbar-user strong {
    font-size: 13px;
}

.topbar-user span {
    margin-top: 2px;

    color: var(--muted);

    font-size: 11px;
}


/* ========================================
   CONTENT
======================================== */

.dashboard-content {
    max-width: 1180px;

    margin: 0 auto;

    padding: 38px 40px 60px;
}


/* ========================================
   WELCOME
======================================== */

.welcome-section {
    background: #ffffff;

    padding: 30px;

    border-radius: 14px;

    margin-bottom: 22px;

    border: 1px solid var(--border);

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.035);
}

.welcome-label {
    margin-bottom: 6px;

    color: var(--muted);

    font-size: 13px;
}

.welcome-section h2 {
    margin-bottom: 5px;

    font-size: 27px;
}

.welcome-section p:last-child {
    color: var(--muted);

    font-size: 13px;
}


/* ========================================
   BALANCES
======================================== */

.balance-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 20px;

    margin-bottom: 42px;
}

.balance-card {
    padding: 28px;

    border-radius: 14px;

    background: #ffffff;

    border: 1px solid var(--border);

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.035);
}

.balance-card-header {
    margin-bottom: 13px;

    color: var(--muted);

    font-size: 13px;
}

.balance-card h3 {
    font-size: 29px;
}


/* ========================================
   QUICK ACTIONS
======================================== */

.quick-actions {
    margin-top: 10px;
}

.section-title {
    margin-bottom: 18px;
}

.section-title h2 {
    margin-top: 4px;

    font-size: 21px;
}

.action-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 16px;
}

.action-card {
    min-height: 175px;

    padding: 23px;

    border-radius: 12px;

    background: #ffffff;

    border: 1px solid var(--border);

    color: var(--text);

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.035);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.action-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.08);
}

.action-icon {
    width: 38px;
    height: 38px;

    margin-bottom: 20px;

    border-radius: 8px;

    background: #edf4ff;

    color: var(--primary);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 16px;
    font-weight: 800;
}

.action-card h3 {
    margin-bottom: 7px;

    color: var(--primary);

    font-size: 16px;
}

.action-card p {
    color: var(--muted);

    font-size: 12px;

    line-height: 1.5;
}


/* ========================================
   TABLET
======================================== */

@media (max-width: 1050px) {

    .sidebar {
        width: 225px;
    }

    .dashboard-main {
        width: calc(100% - 225px);

        margin-left: 225px;
    }

    .action-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-topbar {
        padding: 22px 30px;
    }

    .dashboard-content {
        padding: 30px;
    }
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 800px) {

    .dashboard-page {
        display: block;
    }

    .sidebar {
        width: 100%;
        min-height: auto;

        position: relative;

        padding: 18px;

        display: block;
    }

    .sidebar-brand {
        padding: 0 5px 18px;
    }

    .sidebar-user {
        margin-bottom: 18px;
    }

    .sidebar-section {
        margin-bottom: 15px;
    }

    .sidebar-label {
        padding-left: 5px;
    }

    .sidebar-nav {
        display: grid;

        grid-template-columns: repeat(2, 1fr);
    }

    .sidebar-logout {
        margin-top: 10px;
    }

    .dashboard-main {
        width: 100%;

        margin-left: 0;
    }

    .dashboard-topbar {
        padding: 20px;
    }

    .dashboard-content {
        padding: 25px 18px 45px;
    }

    .balance-grid {
        grid-template-columns: 1fr;
    }

}


/* ========================================
   SMALL MOBILE
======================================== */

@media (max-width: 500px) {

    .dashboard-topbar {
        align-items: flex-start;

        flex-direction: column;
    }

    .topbar-user {
        width: 100%;
    }

    .action-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-nav {
        grid-template-columns: 1fr;
    }

    .welcome-section {
        padding: 23px;
    }

    .welcome-section h2 {
        font-size: 23px;
    }

    .balance-card {
        padding: 23px;
    }

}