/* TailAdmin-inspired lite theme for HMS staff portal */

.ta-body {
    font-family: 'Outfit', ui-sans-serif, system-ui, sans-serif;
    background-color: #f9fafb;
    color: #101828;
}

.ta-main {
    background-color: #f9fafb;
}

.ta-sidebar {
    box-shadow: 0 1px 3px 0 rgb(16 24 40 / 0.06);
}

.ta-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.ta-scrollbar::-webkit-scrollbar-thumb {
    background: #e4e7ec;
    border-radius: 999px;
}

/* Nav — TailAdmin lite */
.nav-section-title {
    margin-bottom: 0.75rem;
    padding-left: 0.75rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #98a2b3;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
    border-radius: 0.5rem;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #344054;
    transition: background-color 0.15s, color 0.15s;
}

.nav-link:hover {
    background-color: #f2f4f7;
    color: #101828;
}

.nav-link-active {
    background-color: var(--brand-50, #eff6ff) !important;
    color: var(--brand-700, #1d4ed8) !important;
}

.nav-link-active svg {
    color: var(--brand-600, #2563eb);
}

.nav-link-sub {
    margin-left: 0.75rem;
    padding-left: 1.5rem;
    font-size: 0.8125rem;
    font-weight: 400;
    color: #667085;
}

.nav-link-sub.nav-link-active {
    color: var(--brand-700, #1d4ed8) !important;
    font-weight: 500;
}

/* Cards & KPIs */
.kpi-card,
.ta-card {
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px 0 rgb(16 24 40 / 0.05);
    padding: 1.25rem;
    transition: box-shadow 0.2s;
}

.kpi-card:hover,
.ta-card:hover {
    box-shadow: 0 4px 8px -2px rgb(16 24 40 / 0.08);
}

.kpi-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #667085;
}

.kpi-value {
    margin-top: 0.25rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #101828;
}

.kpi-sub {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #98a2b3;
}

/* Tables */
.ta-table-wrap {
    overflow: hidden;
    border-radius: 0.75rem;
    border: 1px solid #e4e7ec;
    background: #fff;
    box-shadow: 0 1px 2px 0 rgb(16 24 40 / 0.05);
}

.ta-table-wrap table thead {
    background: #f9fafb;
}

.ta-table-wrap table th {
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #667085;
    text-align: left;
}

.ta-table-wrap table td {
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    color: #344054;
    border-top: 1px solid #f2f4f7;
}

.ta-table-wrap table tbody tr:hover {
    background: #f9fafb;
}

/* Alerts */
.ta-alert {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    border: 1px solid;
}

.ta-alert-success {
    background: #ecfdf3;
    border-color: #abefc6;
    color: #027a48;
}

.ta-alert-error {
    background: #fef3f2;
    border-color: #fecdca;
    color: #b42318;
}

.ta-alert-info {
    background: #eff8ff;
    border-color: #b2ddff;
    color: #175cd3;
}

/* Buttons — keep brand integration */
.btn-brand {
    border-radius: 0.5rem;
    font-weight: 500;
    transition: background-color 0.15s, box-shadow 0.15s;
}

.btn-brand:hover {
    box-shadow: 0 4px 12px -2px rgb(37 99 235 / 0.35);
}

/* Room status badges */
.status-available { background-color: #ecfdf3; color: #027a48; }
.status-occupied { background-color: #eff8ff; color: #175cd3; }
.status-reserved { background-color: #fffaeb; color: #b54708; }
.status-maintenance { background-color: #fef3f2; color: #b42318; }

/* Override dark sidebar from branding — lite theme always */
.sidebar-branded {
    background-color: #ffffff !important;
}

/* Form inputs in staff UI */
.form-input,
input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="tel"],
input[type="password"],
select,
textarea {
    border-color: #d0d5dd;
    border-radius: 0.5rem;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--brand-primary, #465fff);
    box-shadow: 0 0 0 3px rgb(70 95 255 / 0.12);
}
