﻿body {
}
.room-board {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    justify-content: center;
}

.room-box {
    width: 250px;
    background-color: #f8f9fa;
    border: 2px solid #007bff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 1rem;
    text-align: center;
    transition: transform 0.2s ease;
}

    .room-box:hover {
        transform: scale(1.03);
    }

.room-title {
    font-weight: bold;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #007bff;
}

.criticalpatient-title {
    font-weight: bold;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #9d0101;
}

.criticalpatient-box {
    width: 550px;
    background-color: #f8f9fa;
    border: 2px solid #007bff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 1rem;
    text-align: center;
    transition: transform 0.2s ease;
}

    .room-box:hover {
        transform: scale(1.03);
    }

.people-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .people-list li {
        padding: 0.25rem 0;
        border-bottom: 1px solid #dee2e6;
    }

        .people-list li:last-child {
            border-bottom: none;
        }


:root {
    --bg: #f6f8fb;
    --card: #fff;
    --text: #1f2937;
    --muted: #6b7280;
    --ring: #e5e7eb;
    --shadow: 0 8px 24px rgba(16,24,40,.08);
    --radius: 18px;
    --green: #10b981;
    --blue: #3b82f6;
    --purple: #8b5cf6;
    --red: #ef4444;
}

* {
    box-sizing: border-box
}

html, body {
    height: 100%
}

body {
    margin: 0;
    font-family: Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
    color: var(--text);
    background: var(--bg)
}

.container {
    max-width: 1280px;
    margin: 24px auto;
    padding: 0 20px
}

/* ====== Stats cards ====== */
.stats {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 16px;
    margin-bottom: 20px
}

@media (max-width:1100px) {
    .stats {
        grid-template-columns: repeat(2,1fr)
    }
}

@media (max-width:560px) {
    .stats {
        grid-template-columns: 1fr
    }
}

.stat {
    position: relative;
    background: var(--card);
    border: 1px solid var(--ring);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
    transition: transform .15s, box-shadow .15s, border-color .15s;
    cursor: pointer;
    outline: none
}

    .stat:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 32px rgba(16,24,40,.12)
    }

    .stat:focus-visible {
        box-shadow: 0 0 0 4px #c7d2fe
    }

    .stat.active {
        border-color: #93c5fd
    }

    .stat .icon {
        width: 44px;
        height: 44px;
        display: grid;
        place-items: center;
        border-radius: 12px;
        color: #fff;
        margin-bottom: 12px
    }

.icon.green {
    background: var(--green)
}

.icon.blue {
    background: var(--blue)
}

.icon.purple {
    background: var(--purple)
}

.icon.red {
    background: var(--red)
}

.stat h4 {
    margin: 0 0 6px;
    font-weight: 600;
    font-size: 14px;
    color: var(--muted);
    letter-spacing: .4px;
    text-transform: uppercase
}

.stat .value {
    font-size: 32px;
    line-height: 1;
    font-weight: 700
}

.stat .hint {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--muted)
}

    .stat .hint i {
        font-size: 12px
    }

/* ====== Generic cards / layout ====== */
.card {
    background: #ffffffb5;
    border: 1px solid var(--ring);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden
}

.card-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--ring);
    display: flex;
    align-items: center;
    justify-content: space-between
}

    .card-header h3 {
        margin: 0;
        font-size: 16px;
        font-weight: 600;
        font-family: Arial;
    }

.card-body {
    padding: 16px
}

.hidden {
    display: none
}

/* ====== Charts placeholder ====== */
.chart-area {
    height: 320px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--muted)
}

/* ====== Rooms grid ====== */
.rooms {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 12px
}

@media (max-width:1100px) {
    .rooms {
        grid-template-columns: repeat(2,1fr)
    }
}

@media (max-width:640px) {
    .rooms {
        grid-template-columns: 1fr
    }
}

.room {
    border: 1px solid var(--ring);
    border-radius: 14px;
    padding: 12px;
    background: #ffffff75;
}

    .room .top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 8px
    }

    .room .name {
        font-weight: 600;
        font-family: Arial;
        
    }

.badge {
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 999px;
    font-weight: 600
}

    .badge.green {
        background: #ecfdf5;
        color: #047857;
        border: 1px solid #a7f3d0
    }

    .badge.gray {
        background: #f3f4f6;
        color: #374151;
        border: 1px solid #e5e7eb
    }

    .badge.red {
        background: #fef2f2;
        color: #b91c1c;
        border: 1px solid #fecaca
    }

.room ul {
    list-style: none;
    margin: 0;
    padding: 0
}

.room li {
    padding: 6px 0;
    border-top: 1px dashed #e5e7eb;
    font-size: 14px
}

    .room li:first-child {
        border-top: 0
    }

/* ====== Tables (Customers / Beds) ====== */
.table {
    width: 100%;
    border-collapse: collapse
}

    .table th, .table td {
        padding: 10px 12px;
        border-bottom: 1px solid #eef2f7;
        text-align: left;
        font-size: 14px
    }

    .table th {
        color: #374151;
        background: #fafbff
    }

.kpis {
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

.kpi {
    background: #f8fafc;
    border: 1px dashed #e5e7eb;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 13px;
    color: #374151;
    font-family: Arial;
}

.subtle {
    color: var(--muted);
    font-size: 12px;
    margin-top: 6px
}

/* ====== Critical list ====== */
.critical .card-header {
    background: #fff5f5;
    border-bottom-color: #fecaca
}

.critical h3 {
    color: #b91c1c
}

.critical-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px dashed #fde2e2
}

    .critical-item:first-child {
        border-top: 0
    }

    .critical-item i {
        color: #ef4444;
        margin-top: 3px
    }