:root {
    --hms-blue: #0d6efd;
    --hms-deep: #0a3d62;
    --hms-green: #20c997;
    --hms-soft: #f4f8fb;
    --hms-border: #dce7f1;
}

body {
    background: var(--hms-soft);
    color: #22313f;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background:
        linear-gradient(135deg, rgba(13,110,253,.92), rgba(32,201,151,.82)),
        url("../images/hospital-bg.svg");
    background-size: cover;
    padding: 24px;
}

.auth-card {
    width: min(960px, 100%);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(10, 61, 98, .24);
    overflow: hidden;
}

.auth-side {
    background: linear-gradient(160deg, #0a3d62, #0d6efd);
    color: #fff;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 268px;
    flex: 0 0 268px;
    background: #082f49;
    color: #d8eefb;
    padding: 20px 16px;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 1040;
}

.brand {
    color: #fff;
    text-decoration: none;
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
}

.brand:hover {
    color: #fff;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--hms-green);
    display: grid;
    place-items: center;
    font-size: 22px;
}

.brand small {
    display: block;
    color: #bde8f6;
}

.sidebar .nav-link {
    color: #c8dce9;
    border-radius: 8px;
    padding: 11px 12px;
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 4px;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.topbar {
    min-height: 72px;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.content-wrap {
    padding: 24px;
}

.metric-card {
    border: 1px solid var(--hms-border);
    border-radius: 8px;
    background: #fff;
    padding: 20px;
    height: 100%;
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--hms-blue);
}

.metric-icon.green {
    background: var(--hms-green);
}

.panel {
    background: #fff;
    border: 1px solid var(--hms-border);
    border-radius: 8px;
    padding: 20px;
}

.table thead th {
    background: #eef6ff;
    color: #0a3d62;
}

.btn {
    border-radius: 8px;
}

.badge {
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        transform: translateX(-100%);
        transition: transform .2s ease;
    }

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

    .content-wrap {
        padding: 16px;
    }
}

@media print {
    .sidebar,
    .topbar,
    .no-print,
    .dataTables_filter,
    .dataTables_length,
    .dataTables_info,
    .dataTables_paginate {
        display: none !important;
    }

    .main-content,
    .content-wrap {
        padding: 0;
        margin: 0;
    }

    .panel {
        border: 0;
    }
}
