:root {
    --nhi-primary: #087E70;
    --nhi-primary-dark: #066358;
    --nhi-secondary: #16A6A0;
    --nhi-bg: #EAF5F3;
    --nhi-surface: #FFFFFF;
    --nhi-text: #253746;
    --nhi-muted: #5C7080;
    --nhi-border: #D5E8E5;
    --sidebar-width: 268px;
}

body {
    font-family: 'Be Vietnam Pro', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--nhi-bg);
    color: var(--nhi-text);
    font-size: 14.5px;
    line-height: 1.5;
    margin: 0;
    padding-bottom: 68px; /* Space for mobile bottom nav */
}

@media (min-width: 992px) {
    body {
        padding-bottom: 0;
    }
}

/* Sidebar Desktop */
.nhi-sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #065F54 0%, #087E70 55%, #0A6E63 100%);
    color: #fff;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1030;
    overflow-y: auto;
    transition: transform 0.25s ease;
    box-shadow: 4px 0 20px rgba(8, 126, 112, 0.14);
}

.nhi-sidebar-brand {
    padding: 1.1rem 1.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #fff;
}

.nhi-sidebar-brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    padding: 3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.nhi-nav-section {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.65);
    padding: 0.9rem 1.2rem 0.35rem;
    font-weight: 700;
}

.nhi-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.62rem 1.15rem;
    margin: 0.15rem 0.65rem;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.18s ease;
}

.nhi-nav-link:hover, .nhi-nav-link.active {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-weight: 600;
}

.nhi-nav-link i {
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
}

/* Main Content Wrapper */
.nhi-main {
    margin-left: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

@media (min-width: 992px) {
    .nhi-main {
        margin-left: var(--sidebar-width);
    }
}

/* Topbar */
.nhi-topbar {
    background: #ffffff;
    border-bottom: 1px solid var(--nhi-border);
    padding: 0.65rem 1.25rem;
    position: sticky;
    top: 0;
    z-index: 1020;
}

/* Cards & Stat Cards */
.nhi-card {
    background: var(--nhi-surface);
    border: 1px solid var(--nhi-border);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(8, 126, 112, 0.04);
}

.stat-card {
    background: #fff;
    border: 1px solid var(--nhi-border);
    border-radius: 12px;
    padding: 1.1rem 1.15rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(8, 126, 112, 0.08);
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Buttons */
.btn-nhi-primary {
    background-color: var(--nhi-primary);
    border-color: var(--nhi-primary);
    color: #fff;
    font-weight: 600;
    border-radius: 9px;
    padding: 0.5rem 1rem;
}

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

/* Soft Status Badges */
.badge-soft-teal { background: #E0F5F2; color: #087E70; font-weight: 600; padding: 0.38em 0.75em; border-radius: 6px; }
.badge-soft-primary { background: #E3F2FD; color: #0D47A1; font-weight: 600; padding: 0.38em 0.75em; border-radius: 6px; }
.badge-soft-success { background: #E6F4EA; color: #137333; font-weight: 600; padding: 0.38em 0.75em; border-radius: 6px; }
.badge-soft-warning { background: #FEF7E0; color: #B06000; font-weight: 600; padding: 0.38em 0.75em; border-radius: 6px; }
.badge-soft-danger { background: #FCE8E6; color: #C5221F; font-weight: 600; padding: 0.38em 0.75em; border-radius: 6px; }
.badge-soft-purple { background: #F3E8FD; color: #681DA8; font-weight: 600; padding: 0.38em 0.75em; border-radius: 6px; }
.badge-soft-info { background: #E4F7FB; color: #007B83; font-weight: 600; padding: 0.38em 0.75em; border-radius: 6px; }
.badge-soft-secondary { background: #F1F3F4; color: #5F6368; font-weight: 600; padding: 0.38em 0.75em; border-radius: 6px; }

/* Timeline Component */
.case-timeline {
    position: relative;
    padding-left: 1.75rem;
}
.case-timeline::before {
    content: '';
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 9px;
    width: 2px;
    background: #CBE4E0;
}
.timeline-item {
    position: relative;
    margin-bottom: 1.15rem;
    background: #F8FCFB;
    border: 1px solid #DFECEA;
    border-radius: 10px;
    padding: 0.85rem 1rem;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.45rem;
    top: 1rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--nhi-primary);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--nhi-primary);
}

/* Mobile Bottom Navigation (Mục 13.2 Tài liệu 02) */
.nhi-mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: #fff;
    border-top: 1px solid var(--nhi-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1035;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
}
.nhi-mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--nhi-muted);
    font-size: 11px;
    font-weight: 600;
    flex: 1;
    padding: 6px 0;
}
.nhi-mobile-bottom-nav a i {
    font-size: 1.2rem;
    margin-bottom: 2px;
}
.nhi-mobile-bottom-nav a.active {
    color: var(--nhi-primary);
}
