@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
    --ink: #1e293b;
    --muted: #738096;
    --line: #e9edf3;
    --surface: #fff;
    --canvas: #f6f8fb;
    --brand: #3159d9;
}

body {
    background: var(--canvas);
    color: var(--ink);
    font-family: 'DM Sans', sans-serif;
    font-size: .94rem;
}

h1, h2, h3, h4, h5, .brand-name {
    font-family: Manrope, sans-serif;
}

.sidebar {
    background: #fff;
    border-right: 1px solid var(--line);
    bottom: 0;
    display: flex;
    flex-direction: column;
    left: 0;
    overflow-y: auto;
    position: fixed;
    top: 0;
    width: 252px;
    z-index: 1030;
}

.brand {
    align-items: center;
    color: var(--ink);
    display: flex;
    gap: .7rem;
    padding: 1.5rem 1.35rem 1.8rem;
    text-decoration: none;
}

.brand-mark {
    align-items: center;
    background: #e9efff;
    border-radius: 13px;
    color: var(--brand);
    display: inline-flex;
    height: 43px;
    justify-content: center;
    width: 43px;
}

.brand-name {
    font-size: 1.06rem;
    font-weight: 800;
    letter-spacing: -.04em;
}

.nav-caption, .eyebrow {
    color: #9aa5b5;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .11em;
    margin: 0 1.35rem .6rem;
}

.side-link {
    border-radius: 9px;
    color: #758197;
    display: flex;
    gap: .8rem;
    margin: .2rem .8rem;
    padding: .72rem .85rem;
    text-decoration: none;
    transition: all .15s ease;
}

.side-link:hover, .side-link.active {
    background: #eff3ff;
    color: var(--brand);
}

.side-link i {
    text-align: center;
    width: 18px;
}

.main-content {
    margin-left: 252px;
    min-width: 0;
    min-height: 100vh;
    padding: 2rem 2.3rem 3rem;
}

.topbar {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.8rem;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -.055em;
    margin: 0;
}

.page-subtitle {
    color: var(--muted);
    margin: .35rem 0 0;
}

.metric-card, .content-card {
    background: var(--surface);
    border: 1px solid #edf0f5;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(29, 47, 81, .035);
}

.metric-card {
    height: 100%;
    padding: 1.2rem 1.25rem;
}

.metric-heading {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 600;
}

.metric-number {
    font-family: Manrope, sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -.055em;
    margin: .55rem 0 .15rem;
}

.metric-note {
    color: #9aa5b5;
    font-size: .76rem;
}

.metric-icon {
    align-items: center;
    border-radius: 11px;
    display: flex;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.content-card {
    overflow: hidden;
}

.dashboard-welcome {
    background:
        radial-gradient(circle at 88% 15%, rgba(49, 89, 217, .10), transparent 30%),
        linear-gradient(115deg, #fff 0%, #f9faff 100%);
}

.dashboard-recent {
    min-height: 310px;
}

.dashboard-recent .empty-state {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 245px;
}

.section-heading {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    padding: 1.2rem 1.4rem;
}

.section-heading h2 {
    font-size: 1rem;
    font-weight: 800;
    margin: 0;
}

.filters {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    padding: 1rem 1.35rem;
}

.filters .form-select, .filters .form-control {
    border-color: var(--line);
    font-size: .82rem;
    min-height: 39px;
}

.table {
    --bs-table-bg: transparent;
    margin: 0;
    vertical-align: middle;
}

.table thead th {
    background: #fbfcfe;
    border-bottom-color: var(--line);
    color: #8994a6;
    font-size: .69rem;
    font-weight: 700;
    letter-spacing: .06em;
    padding: .85rem 1rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.table tbody td {
    border-bottom-color: #f0f2f6;
    color: #4b586d;
    font-size: .83rem;
    padding: .9rem 1rem;
}

.table tbody tr:hover {
    background: #fafbfe;
}

.asset-title {
    color: var(--ink);
    font-weight: 700;
}

.asset-tag, .text-small {
    color: #94a0b1;
    font-size: .74rem;
}

.status-badge {
    border-radius: 20px;
    font-size: .7rem;
    font-weight: 700;
    padding: .42rem .65rem;
}

.table-actions {
    display: flex;
    gap: .25rem;
}

.table-actions .btn {
    align-items: center;
    border: 0;
    border-radius: 8px;
    color: #7c8799;
    display: inline-flex;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.table-actions .btn:hover {
    background: #eff3ff;
    color: var(--brand);
}

.form-control, .form-select {
    border-color: #e3e8ef;
    border-radius: 8px;
    min-height: 43px;
}

.btn {
    border-radius: 8px;
    font-weight: 600;
}

.auth-page {
    align-items: center;
    background: radial-gradient(circle at top left, #edf2ff, transparent 42%), var(--canvas);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 1.5rem;
}

.auth-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 18px 55px rgba(30, 47, 80, .08);
    max-width: 440px;
    padding: 2.5rem;
    width: 100%;
}

.auth-card .eyebrow {
    margin: 0 0 .55rem;
}

.auth-card h1 {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -.05em;
}

.empty-state {
    color: var(--muted);
    padding: 3.5rem 1rem;
    text-align: center;
}

.mobile-sidebar-toggle {
    display: none;
}

@media (max-width: 991.98px) {
    .sidebar {
        left: -270px;
        transition: left .2s ease;
    }

    .sidebar.show {
        left: 0;
    }

    .main-content {
        margin-left: 0;
        padding: 1.4rem 1rem 2rem;
    }

    .mobile-sidebar-toggle {
        display: inline-flex;
    }
}

@media (max-width: 575.98px) {
    .page-title {
        font-size: 1.4rem;
    }

    .auth-card {
        padding: 1.7rem;
    }
}
