:root {
    --silver-sidebar-width: 250px;
    --silver-border: #e9ecef;
    --silver-background: #f6f7f9;
    --silver-dark: #191919;
    --silver-red: #dc3545;
}


html,
body {
    margin: 0;
    min-height: 100%;
    background: var(--silver-background);
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}


/* -----------------------------------------------------
   LOGIN
----------------------------------------------------- */

.login-wrapper {
    min-height: 100vh;

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

    padding: 24px;

    background:
        radial-gradient(
            circle at top right,
            rgba(220, 53, 69, .08),
            transparent 35%
        ),
        #f7f8fa;
}


.login-card {
    width: 100%;
    max-width: 430px;

    padding: 42px;

    background: #fff;

    border: 1px solid var(--silver-border);
    border-radius: 18px;

    box-shadow:
        0 18px 50px rgba(0, 0, 0, .08);
}


.brand-mark {
    width: 54px;
    height: 54px;

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

    background: var(--silver-red);
    color: #fff;

    border-radius: 14px;

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


.brand-mark-sm {
    width: 39px;
    height: 39px;

    border-radius: 10px;

    font-size: 20px;
}


.login-title {
    font-size: 28px;
    font-weight: 700;
}


/* -----------------------------------------------------
   APP
----------------------------------------------------- */

.app-layout {
    min-height: 100vh;
}


.sidebar {
    position: fixed;

    top: 0;
    bottom: 0;
    left: 0;

    width: var(--silver-sidebar-width);

    background: #fff;

    border-right: 1px solid var(--silver-border);

    z-index: 1000;

    overflow-y: auto;
}


.sidebar-brand {
    height: 76px;

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

    padding: 0 22px;

    border-bottom: 1px solid var(--silver-border);
}


.sidebar-nav {
    padding: 18px 12px;
}


.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 11px 13px;
    margin-bottom: 3px;

    border-radius: 8px;

    color: #495057;

    text-decoration: none;

    transition: all .15s ease;
}


.sidebar-link:hover {
    background: #f5f5f5;
    color: #111;
}


.sidebar-link.active {
    background: rgba(220, 53, 69, .10);
    color: var(--silver-red);
    font-weight: 600;
}


.sidebar-section {
    margin:
        24px 12px
        8px;

    color: #adb5bd;

    text-transform: uppercase;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: .08em;
}


.disabled-link {
    opacity: .45;
    pointer-events: none;
}


.main-wrapper {
    margin-left: var(--silver-sidebar-width);
    min-height: 100vh;
}


.topbar {
    height: 76px;

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

    padding: 0 28px;

    background: #fff;

    border-bottom: 1px solid var(--silver-border);
}


.page-content {
    padding: 28px;
}


/* -----------------------------------------------------
   CARDS
----------------------------------------------------- */

.metric-card {
    background: #fff;

    border:
        1px solid var(--silver-border);

    border-radius: 13px;

    padding: 22px;
}


.metric-label {
    color: #6c757d;

    font-size: 14px;
}


.metric-value {
    margin-top: 4px;

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


/* -----------------------------------------------------
   TABLES
----------------------------------------------------- */

.content-card {
    background: #fff;

    border:
        1px solid var(--silver-border);

    border-radius: 13px;

    overflow: hidden;
}


.content-card-header {
    padding: 19px 22px;

    border-bottom:
        1px solid var(--silver-border);
}


.content-card-body {
    padding: 22px;
}


.table > :not(caption) > * > * {
    padding:
        .85rem .75rem;
}


/* -----------------------------------------------------
   MOBILE
----------------------------------------------------- */

@media (
    max-width: 991.98px
) {

    .sidebar {
        transform:
            translateX(-100%);

        transition:
            transform .2s ease;
    }


    .sidebar.open {
        transform:
            translateX(0);
    }


    .main-wrapper {
        margin-left: 0;
    }

}

/* -----------------------------------------------------
   DASHBOARD
----------------------------------------------------- */

.dashboard-metric-icon {
    width: 42px;
    height: 42px;

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

    border-radius: 10px;

    background: rgba(220, 53, 69, .08);

    color: var(--silver-red);

    font-size: 19px;
}


.metric-card {
    transition:
        transform .15s ease,
        box-shadow .15s ease;
}


.metric-card:hover {
    transform:
        translateY(-2px);

    box-shadow:
        0 8px 24px
        rgba(0, 0, 0, .05);
}