:root {
    --mp-primary: #135d66;
    --mp-primary-dark: #0f4a52;
    --mp-accent: #10b981;
    --mp-bg: #f5f7fb;
    --mp-text: #172033;
}

body {
    background: var(--mp-bg);
    color: var(--mp-text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: linear-gradient(135deg, #e8f7f5, #f5f7fb);
}

.auth-card {
    width: min(440px, 100%);
    border: 0;
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(15, 74, 82, .12);
}

.app-sidebar {
    background: #0f172a;
    color: #e5eef8;
}

.app-sidebar a {
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.app-sidebar a.active,
.app-sidebar a:hover {
    color: #fff;
    background: rgba(255,255,255,.1);
}

.desktop-sidebar {
    width: 270px;
    min-height: 100vh;
    position: fixed;
    inset: 0 auto 0 0;
    overflow-y: auto;
}

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

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--mp-primary);
    color: white;
    display: inline-grid;
    place-items: center;
    font-weight: 800;
}

.topbar {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.topbar-title {
    min-width: 0;
}

.topbar-title h1 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-card {
    border: 0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}

.btn-primary {
    background: var(--mp-primary);
    border-color: var(--mp-primary);
}

.btn-primary:hover {
    background: var(--mp-primary-dark);
    border-color: var(--mp-primary-dark);
}

.table thead th {
    color: #64748b;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.dt-container {
    padding: 14px;
}

.dt-container .row {
    row-gap: 12px;
}

.dt-search input,
.dt-length select {
    border-radius: 8px;
}

.table.dataTable {
    margin-top: 12px !important;
    margin-bottom: 12px !important;
}

.table.dataTable > tbody > tr > td,
.table.dataTable > thead > tr > th {
    vertical-align: middle;
}

@media (min-width: 992px) {
    .app-main {
        margin-left: 270px;
    }

    .mobile-menu-button {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    .desktop-sidebar {
        display: none;
    }

    .topbar {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .content-shell {
        padding: 16px !important;
    }

    .mobile-menu-button {
        width: 40px;
        height: 40px;
        display: inline-grid !important;
        place-items: center;
        flex: 0 0 auto;
    }
}

.mobile-nav.offcanvas {
    width: min(86vw, 320px);
    background: #0f172a;
    color: #e5eef8;
}

.mobile-nav .btn-close {
    filter: invert(1) grayscale(1);
    opacity: .8;
}
