/*:root {
    --primary: #3b82f6;*/ /* Xanh dương chính */
    /*--bg-light: #f8fafc;*/ /* Màu nền xám nhạt */
    /*--sidebar-w: 260px;*/ /* Độ rộng menu trái */
    /*--border: #e2e8f0;
    --text-main: #1e293b;
    --text-muted: #64748b;
}*/

.public-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.public-main {
    flex: 1 0 auto;
}

.public-skip-link {
    position: fixed;
    left: 16px;
    top: 12px;
    z-index: 2000;
    transform: translateY(-140%);
    border-radius: 6px;
    background: #111111;
    color: #ffffff;
    font-weight: 800;
    padding: 10px 14px;
    text-decoration: none;
    transition: transform 0.18s ease;
}

.public-skip-link:focus {
    transform: translateY(0);
    color: #ffffff;
}

.public-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(10px);
}

.public-nav {
    width: min(1220px, 100%);
    min-height: 64px;
    margin: 0 auto;
    padding: 10px clamp(14px, 4vw, 28px);
    display: grid;
    grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr);
    align-items: center;
    gap: 20px;
}

.public-brand {
    color: #111111;
    font-size: 1.35rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.public-brand:focus-visible,
.public-links a:focus-visible {
    outline: 3px solid rgba(212, 175, 55, 0.55);
    outline-offset: 4px;
    border-radius: 6px;
}

.public-links {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(10px, 2vw, 22px);
}

.public-links a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    color: #333333;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

.public-brand:hover,
.public-brand:focus-visible,
.public-links a:hover,
.public-links a:focus-visible,
.public-links a.is-active {
    color: #d4af37;
}

.public-links a.is-active {
    border-bottom-color: #d4af37;
}

.public-footer {
    flex-shrink: 0;
    padding: 24px 0;
    border-top: 1px solid #e9ecef;
    background: #111111;
    color: #ffffff;
}

.public-footer-inner {
    width: min(1220px, 100%);
    margin: 0 auto;
    padding: 0 clamp(14px, 4vw, 28px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.public-main:focus {
    outline: none;
}

.public-surface {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
}

.public-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 999px;
    background: #fbf7ec;
    color: #111111;
    font-size: 0.88rem;
    font-weight: 800;
    padding: 6px 12px;
    overflow-wrap: anywhere;
}

@media (max-width: 575.98px) {
    .public-nav {
        align-items: center;
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding-bottom: 12px;
    }

    .public-links {
        width: 100%;
        justify-content: center;
        gap: 8px;
    }

    .public-links a {
        min-height: 44px;
        border: 1px solid #e9ecef;
        border-radius: 999px;
        padding: 0 12px;
        font-size: 0.92rem;
        background: #ffffff;
    }

    .public-links a.is-active {
        border-color: rgba(212, 175, 55, 0.7);
        background: #fbf7ec;
    }

    .public-footer-inner {
        display: block;
        text-align: center;
    }
}

/* Cấu trúc nền tảng */
/*html, body {
    height: 100%;
    margin: 0;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

.app-wrapper {
    display: flex;
    min-height: 100vh;
}*/

/* --- SIDEBAR --- */
/*.sidebar {
    width: var(--sidebar-w);
    background: white;
    border-right: 1px solid var(--border);
    position: fixed;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    padding: 24px;
    border-bottom: 1px solid #f1f5f9;
}

    .sidebar-brand h2 {
        font-size: 1.2rem;
        font-weight: 700;
        margin: 0;
        color: var(--text-main);
    }

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.nav-link-custom {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    color: var(--text-muted);
    text-decoration: none !important;
    font-weight: 500;
    transition: 0.2s;
}

    .nav-link-custom i {
        width: 25px;
        font-size: 1.1rem;
        margin-right: 10px;
    }

    .nav-link-custom:hover {
        background: #f1f5f9;
        color: var(--primary);
    }

    .nav-link-custom.active {
        background: #eff6ff;
        color: var(--primary);
        border-right: 4px solid var(--primary);
    }*/

/* --- MAIN CONTENT --- */
/*.main-content {
    flex: 1;
    margin-left: var(--sidebar-w);*/ /* Đẩy nội dung sang phải để không bị sidebar che */
    /*padding: 2rem;
}*/

/* --- CÁC CARD THỐNG KÊ (4 ô ở trên) --- */
/*.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.card-stat {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

    .card-stat .label {
        color: var(--text-muted);
        font-size: 0.9rem;
    }

    .card-stat .value {
        font-size: 1.6rem;
        font-weight: 700;
        display: block;
        margin: 5px 0;
    }*/

/* --- BẢNG DỮ LIỆU (DATAGRIDVIEW) --- */
/*.table-container {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.table-custom {
    width: 100%;
    border-collapse: collapse;
}

    .table-custom th {
        background: #f8fafc;
        padding: 12px 20px;
        text-align: left;
        color: var(--text-muted);
        font-size: 0.85rem;
        border-bottom: 1px solid var(--border);
    }

    .table-custom td {
        padding: 15px 20px;
        border-bottom: 1px solid #f1f5f9;
    }*/

/* Màu sắc trạng thái Badge */
/*.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.bg-confirmed {
    background: #dbeafe;
    color: #1e40af;
}*/
/* Đã xác nhận */
/*.bg-checkin {
    background: #dcfce7;
    color: #166534;
}*/
/* Đã nhận phòng */
/*.bg-waiting {
    background: #fef3c7;
    color: #92400e;
}*/
/* Chờ xác nhận */

/*.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.room-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    border: 1px solid var(--border);
    position: relative;
}
.room-status-tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}
.status-available { background: #dcfce7; color: #166534; }*/ /* Trống */
/*.status-occupied { background: #fee2e2; color: #991b1b; }*/  /* Có khách */
/*.status-cleaning { background: #fef3c7; color: #92400e; }*/  /* Dọn dẹp */


:root {
    --bg-light: #f5f6fa;
    --sidebar-width: 260px;
    --primary-color: #000;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --status-empty: #dcfce7;
    --status-empty-text: #166534;
    --status-occupied: #fee2e2;
    --status-occupied-text: #991b1b;
    --status-maintenance: #fef9c3;
    --status-maintenance-text: #854d0e;
    --status-cleaning: #e0e7ff;
    --status-cleaning-text: #3730a3;
    --status-booked: #cffafe;
    --status-booked-text: #164e63;
}

body {
    background-color: var(--bg-light);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1f2937;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    background-color: #fff;
    border-right: 1px solid var(--border-color);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.sidebar-header {
    margin-bottom: 2rem;
    padding-left: 0.5rem;
}

    .sidebar-header h2 {
        font-weight: 800;
        font-size: 1.25rem;
        margin: 0;
    }

    .sidebar-header p {
        font-size: 0.75rem;
        color: var(--text-muted);
        margin: 0;
    }

.nav-item-sidebar {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    margin-bottom: 0.25rem;
}

    .nav-item-sidebar:hover, .nav-item-sidebar.active {
        background-color: var(--bg-light);
        color: var(--primary-color);
    }

    .nav-item-sidebar.active {
        font-weight: 600;
    }

    .nav-item-sidebar i {
        font-size: 1.1rem;
        width: 20px;
        text-align: center;
    }

.sidebar-footer {
    margin-top: auto;
}

/* Main Content */
.main-wrapper {
    margin-left: var(--sidebar-width);
    padding: 2rem;
    min-height: 100vh;
    background-color: var(--bg-light);
}

/* Custom Cards */
.card-custom {
    background-color: #fff;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    height: 100%;
}

.card-title-sm {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.card-value {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.card-subtext {
    font-size: 0.75rem;
    color: #10b981;
}

    .card-subtext.negative {
        color: #ef4444;
    }

/* Badges */
.badge-status {
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.badge-empty {
    background-color: var(--status-empty);
    color: var(--status-empty-text);
}

.badge-occupied {
    background-color: var(--status-occupied);
    color: var(--status-occupied-text);
}

.badge-maintenance {
    background-color: var(--status-maintenance);
    color: var(--status-maintenance-text);
}

.badge-cleaning {
    background-color: var(--status-cleaning);
    color: var(--status-cleaning-text);
}

.badge-booked {
    background-color: var(--status-booked);
    color: var(--status-booked-text);
}

.badge-reserved {
    background-color: #fce7f3;
    color: #9d174d;
}
/* Light pink for reserved */

/* Tables */
.table-custom {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
}

    .table-custom th {
        font-weight: 600;
        color: var(--text-muted);
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        border-bottom: 1px solid var(--border-color);
    }

    .table-custom td {
        padding: 1rem;
        background-color: #fff;
        vertical-align: middle;
        font-size: 0.85rem;
        border-top: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
    }

    .table-custom tr td:first-child {
        border-left: 1px solid var(--border-color);
        border-top-left-radius: 0.5rem;
        border-bottom-left-radius: 0.5rem;
    }

    .table-custom tr td:last-child {
        border-right: 1px solid var(--border-color);
        border-top-right-radius: 0.5rem;
        border-bottom-right-radius: 0.5rem;
    }

.btn-icon-only {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.25rem;
    border-radius: 0.25rem;
}

    .btn-icon-only:hover {
        background-color: var(--bg-light);
        color: var(--primary-color);
    }

/* User Profile in Sidebar */
.dropdown-toggle-user {
    color: var(--primary-color);
    transition: background-color 0.2s;
}

    .dropdown-toggle-user:hover, .dropdown-toggle-user:focus {
        background-color: var(--bg-light);
        color: var(--primary-color);
    }

    .dropdown-toggle-user::after {
        display: none;
    }

.user-avatar {
    width: 36px;
    height: 36px;
    background-color: #4f46e5;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.user-info {
    line-height: 1.2;
}

.user-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary-color);
}

.user-role {
    font-size: 0.75rem;
    color: #4f46e5;
    font-weight: 600;
}
