/**
 * Hotel Management System - Modern Dashboard UI
 * Inspired by modern admin dashboard designs
 */

:root {
    --sidebar-bg: #3d5a5a;
    --sidebar-dark: #2f4747;
    --primary-gold: #c9a962;
    --primary-gold-hover: #b89a52;
    --bg-light: #f0f4f4;
    --card-bg: #ffffff;
    --text-dark: #2d3748;
    --text-muted: #718096;
    --text-light: #a0aec0;
    --border-color: #e2e8f0;
    --success: #48bb78;
    --danger: #f56565;
    --warning: #ed8936;
    --info: #4299e1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.6;
}

/* Admin Wrapper */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-gold);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info {
    flex: 1;
}

.user-name {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    margin: 0;
}

.user-email {
    color: rgba(255,255,255,0.6);
    font-size: 11px;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 15px 15px;
}

.sidebar-nav .nav {
    gap: 5px;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: rgba(255,255,255,0.7);
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 500;
}

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

.sidebar-nav .nav-link.active {
    background: var(--primary-gold);
    color: #fff;
}

.sidebar-nav .nav-link i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 20px 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.active-users {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.user-avatars {
    display: flex;
    align-items: center;
}

.user-avatars img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--sidebar-bg);
    margin-left: -8px;
}

.user-avatars img:first-child {
    margin-left: 0;
}

.more-users {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-gold);
    color: #fff;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--sidebar-bg);
    margin-left: -8px;
}

.active-label {
    color: rgba(255,255,255,0.6);
    font-size: 11px;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 500;
    background: rgba(255,255,255,0.05);
}

.logout-btn:hover {
    background: rgba(220,53,69,0.2);
    color: #f56565;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top Header */
.top-header {
    background: var(--card-bg);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
}

.page-title {
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.notification-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s;
}

.notification-btn:hover {
    background: var(--primary-gold);
    color: #fff;
}

.notification-btn i {
    font-size: 18px;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: var(--danger);
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Content Wrapper */
.content-wrapper {
    padding: 30px;
    flex: 1;
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: 16px;
    border: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    overflow: hidden;
    margin-bottom: 24px;
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 20px 24px;
    font-weight: 600;
    color: var(--text-dark);
}

.card-body {
    padding: 24px;
}

/* Stat Cards - Modern Style */
.stat-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.stat-card.primary::before { background: var(--primary-gold); }
.stat-card.success::before { background: var(--success); }
.stat-card.danger::before { background: var(--danger); }
.stat-card.info::before { background: var(--info); }
.stat-card.warning::before { background: var(--warning); }

.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 15px;
}

.stat-card.primary .stat-icon { background: rgba(201,169,98,0.1); color: var(--primary-gold); }
.stat-card.success .stat-icon { background: rgba(72,187,120,0.1); color: var(--success); }
.stat-card.danger .stat-icon { background: rgba(245,101,101,0.1); color: var(--danger); }
.stat-card.info .stat-icon { background: rgba(66,153,225,0.1); color: var(--info); }
.stat-card.warning .stat-icon { background: rgba(237,137,54,0.1); color: var(--warning); }

.stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.stat-card .stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table thead th {
    background: var(--bg-light);
    border: none;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    padding: 15px 20px;
}

.table tbody td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Buttons */
.btn {
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 500;
    font-size: 13px;
    border: none;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary-gold);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201,169,98,0.3);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-dark);
}

/* ============================================
   DASHBOARD MOBILE STYLES
   ============================================ */

/* Mobile dashboard specific */
@media (max-width: 767.98px) {
    /* Dashboard header - stack on mobile */
    .content-wrapper > .d-flex.justify-content-between.align-items-center {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px;
    }
    
    .content-wrapper > .d-flex .text-end {
        text-align: left !important;
        width: 100%;
    }
    
    /* Time display smaller */
    #current-time {
        font-size: 1.2rem !important;
    }
    
    /* Statistics cards - 2 column grid on mobile */
    .row.mb-4 > .col-xl-3.col-md-6 {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding: 0 6px;
    }
    
    .row.mb-4 {
        display: flex;
        flex-wrap: wrap;
        margin: 0 -6px;
    }
    
    .stat-card {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .stat-card .stat-value {
        font-size: 1.25rem;
    }
    
    .stat-card .stat-label {
        font-size: 0.7rem;
    }
    
    .stat-card small {
        font-size: 0.6rem;
    }
    
    .stat-card .stat-icon {
        font-size: 1.5rem;
    }
    
    /* Charts - full width on mobile */
    .row.mb-4 > .col-lg-6 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding: 0 6px;
        margin-bottom: 15px;
    }
    
    /* Recent activities cards - single column, full width */
    .row.mb-4 > .col-lg-4 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding: 0 6px;
        margin-bottom: 15px;
    }
    
    /* Make recent reservations table scrollable */
    .table-responsive {
        font-size: 0.85rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table-responsive th,
    .table-responsive td {
        white-space: nowrap;
    }
}

/* ============================================
   MOBILE GRID SYSTEM - ALL PAGES
   ============================================ */

/* Mobile view - grid layouts for all pages */
@media (max-width: 767.98px) {
    /* Cards grid - 2 columns on mobile */
    .card-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    /* Room and guest items - 2 columns on mobile */
    #roomsGrid > [class*="col-"] {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding: 0 6px;
    }
    
    #roomsGrid {
        display: flex;
        flex-wrap: wrap;
        margin: 0 -6px;
    }
    
    /* Statistics cards (guests page) - 2 columns on mobile */
    #guestsPageStats > .col-md-4 {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding: 0 6px;
        margin-bottom: 12px;
    }
    
    /* Stats row container - full width on mobile */
    #guestsPageStats {
        display: flex;
        flex-wrap: wrap;
        margin: 0 -6px;
        width: 100%;
    }
    
    /* Ensure guests statistics section fits screen */
    #guestsPageStats .card {
        margin-bottom: 0;
    }
    
    /* Check-in page statistics - 2 columns on mobile */
    #checkinPageStats > .col-md-6 {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding: 0 6px;
    }
    
    #checkinPageStats {
        display: flex;
        flex-wrap: wrap;
        margin: 0 -6px;
        width: 100%;
    }
    
    #checkinPageStats .card {
        margin-bottom: 0;
    }
    
    /* Reservations page statistics - 2 columns on mobile (6 cards = 3 rows) */
    #reservationsPageStats > .col-md-2 {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding: 0 6px;
        margin-bottom: 12px;
    }
    
    #reservationsPageStats {
        display: flex;
        flex-wrap: wrap;
        margin: 0 -6px;
        width: 100%;
    }
    
    #reservationsPageStats .card {
        margin-bottom: 0;
    }
    
    /* Billing page statistics - 2 columns on mobile (4 cards = 2 rows) */
    #billingPageStats > .col-md-3 {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding: 0 6px;
        margin-bottom: 12px;
    }
    
    #billingPageStats {
        display: flex;
        flex-wrap: wrap;
        margin: 0 -6px;
        width: 100%;
    }
    
    #billingPageStats .card {
        margin-bottom: 0;
    }
    
    /* Inventory page statistics - 2 columns on mobile (4 cards = 2 rows) */
    #inventoryPageStats > .col-md-3 {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding: 0 6px;
        margin-bottom: 12px;
    }
    
    #inventoryPageStats {
        display: flex;
        flex-wrap: wrap;
        margin: 0 -6px;
        width: 100%;
    }
    
    #inventoryPageStats .card {
        margin-bottom: 0;
    }
    
    /* Housekeeping page statistics - 2 columns on mobile (4 cards = 2 rows) */
    #housekeepingPageStats > .col-md-3 {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding: 0 6px;
        margin-bottom: 12px;
    }
    
    #housekeepingPageStats {
        display: flex;
        flex-wrap: wrap;
        margin: 0 -6px;
        width: 100%;
    }
    
    #housekeepingPageStats .card {
        margin-bottom: 0;
    }
    
    /* Staff page statistics - 2 columns on mobile (3 cards) */
    #staffPageStats > .col-md-4 {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding: 0 6px;
        margin-bottom: 12px;
    }
    
    #staffPageStats {
        display: flex;
        flex-wrap: wrap;
        margin: 0 -6px;
        width: 100%;
    }
    
    #staffPageStats .card {
        margin-bottom: 0;
    }
    
    /* Users page statistics - 2 columns on mobile (3 cards) */
    #usersPageStats > .col-md-4 {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding: 0 6px;
        margin-bottom: 12px;
    }
    
    #usersPageStats {
        display: flex;
        flex-wrap: wrap;
        margin: 0 -6px;
        width: 100%;
    }
    
    #usersPageStats .card {
        margin-bottom: 0;
    }
    
    /* Settings page - 1 column on mobile */
    .settings-page .col-md-6 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding: 0 6px;
    }
    
    .settings-page .row {
        display: flex;
        flex-wrap: wrap;
        margin: 0 -6px;
    }
    
    /* Data cards (rooms, guests, etc) - 2 columns */
    .data-card,
    .room-card,
    .guest-card,
    .reservation-card {
        margin-bottom: 12px;
    }
    
    /* Tables - horizontal scroll */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Form grids - stack fields */
    .form-row {
        display: block;
    }
    
    .form-row > [class*="col-"] {
        width: 100%;
        padding: 0;
        margin-bottom: 15px;
    }
    
    /* Action buttons - full width on mobile */
    .btn-group-mobile {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    
    .btn-group-mobile .btn {
        width: 100%;
    }
    
    /* Stats/items counters - 2 column grid */
    .stats-grid,
    .items-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    /* List groups - full width */
    .list-group-item {
        padding: 10px;
    }
    
    /* Reduce padding on mobile */
    .content-wrapper {
        padding: 10px;
    }
    
    .card-body {
        padding: 15px;
    }
    
    /* Page title smaller */
    .page-title {
        font-size: 1.1rem;
    }
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

/* Tablet and below (max-width: 991.98px) */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        width: 280px;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 1000;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    /* Mobile menu toggle button */
    .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border: none;
        background: transparent;
        cursor: pointer;
        color: var(--text-dark);
        font-size: 1.5rem;
        margin-right: 10px;
        z-index: 1001;
    }
    
    .menu-toggle:hover {
        color: var(--primary-gold);
    }
    
    .content-wrapper {
        padding: 20px;
    }
    
    .top-header {
        padding: 15px 20px;
    }
    
    .page-title {
        font-size: 18px;
    }
    
    /* Stat cards responsive */
    .stat-card {
        padding: 20px;
    }
    
    .stat-card .stat-value {
        font-size: 24px;
    }
    
    /* Table responsive */
    .table-responsive {
        border: none;
    }
    
    /* Cards */
    .card-body {
        padding: 20px;
    }
    
    /* Buttons */
    .btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* Mobile phones (max-width: 767.98px) */
@media (max-width: 767.98px) {
    body {
        font-size: 13px;
    }
    
    .content-wrapper {
        padding: 15px;
    }
    
    .top-header {
        padding: 12px 15px;
    }
    
    .header-left {
        gap: 12px;
    }
    
    .page-title {
        font-size: 16px;
    }
    
    .menu-toggle {
        font-size: 20px;
        padding: 0;
    }
    
    .header-right {
        gap: 10px;
    }
    
    .notification-btn {
        width: 36px;
        height: 36px;
    }
    
    /* Stat cards */
    .stat-card {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .stat-card .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .stat-card .stat-value {
        font-size: 22px;
    }
    
    .stat-card .stat-label {
        font-size: 12px;
    }
    
    /* Cards */
    .card {
        margin-bottom: 15px;
    }
    
    .card-header {
        padding: 15px 20px;
        font-size: 14px;
    }
    
    .card-body {
        padding: 15px;
    }
    
    /* Tables */
    .table thead th {
        padding: 12px 15px;
        font-size: 11px;
    }
    
    .table tbody td {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    /* Form controls */
    .form-control,
    .form-select {
        font-size: 13px;
        padding: 8px 12px;
    }
    
    /* Buttons */
    .btn {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    /* Modals */
    .modal-dialog {
        margin: 10px;
    }
    
    .modal-content {
        border-radius: 12px;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-body {
        padding: 15px 20px;
    }
    
    .modal-footer {
        padding: 15px 20px;
    }
    
    /* Page header buttons */
    .d-flex.justify-content-between.align-items-center.mb-4 {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
    }
    
    .d-flex.justify-content-between.align-items-center.mb-4 h2 {
        font-size: 20px;
    }
    
    .d-flex.justify-content-between.align-items-center.mb-4 .btn,
    .d-flex.justify-content-between.align-items-center.mb-4 > div {
        width: 100%;
    }
    
    .d-flex.justify-content-between.align-items-center.mb-4 .btn {
        justify-content: center;
    }
}

/* Small mobile phones (max-width: 575.98px) */
@media (max-width: 575.98px) {
    .content-wrapper {
        padding: 12px;
    }
    
    .top-header {
        padding: 10px 12px;
    }
    
    .page-title {
        font-size: 14px;
    }
    
    /* Stat cards - full width on mobile */
    .stat-card {
        padding: 15px;
    }
    
    .stat-card .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .stat-card .stat-value {
        font-size: 20px;
    }
    
    /* Tables - smaller padding */
    .table thead th {
        padding: 10px 12px;
        font-size: 10px;
    }
    
    .table tbody td {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    /* Badges */
    .badge {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    /* Button groups */
    .btn-group {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .btn-group .btn {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    /* Form rows */
    .row .col-md-6,
    .row .col-md-4,
    .row .col-md-3,
    .row .col-md-8 {
        margin-bottom: 10px;
    }
    
    /* Sidebar navigation */
    .sidebar {
        width: 260px;
    }
    
    .sidebar-nav .nav-link {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .sidebar-nav .nav-link i {
        font-size: 16px;
    }
    
    .user-avatar {
        width: 40px;
        height: 40px;
    }
    
    .user-name {
        font-size: 13px;
    }
    
    .user-email {
        font-size: 10px;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .page-title {
        font-size: 13px;
    }
    
    .stat-card .stat-value {
        font-size: 18px;
    }
    
    .btn {
        padding: 6px 12px;
        font-size: 11px;
    }
}

/* Print styles */
@media print {
    .sidebar,
    .top-header,
    .menu-toggle,
    .sidebar-overlay {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ============================================
   COLOR CONSISTENCY FIXES
   ============================================ */

/* Base text color for all elements */
body, 
body * {
    color: var(--text-dark);
}

/* Ensure text colors are consistent */
.text-muted {
    color: var(--text-muted) !important;
}

.text-dark {
    color: var(--text-dark) !important;
}

.text-light {
    color: var(--text-light) !important;
}

/* Force consistent colors on common elements */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--text-dark) !important;
}

p, span, div, 
label, 
.card-title,
.card-text,
.table,
.table th,
.table td {
    color: var(--text-dark);
}

small, .small {
    color: var(--text-muted);
}

/* Override Bootstrap's default text colors */
.text-primary {
    color: var(--primary-gold) !important;
}

.text-secondary {
    color: var(--text-muted) !important;
}

.text-success {
    color: var(--success) !important;
}

.text-danger {
    color: var(--danger) !important;
}

.text-warning {
    color: var(--warning) !important;
}

.text-info {
    color: var(--info) !important;
}

/* Links */
a:not(.btn):not(.nav-link) {
    color: var(--primary-gold);
}

a:not(.btn):not(.nav-link):hover {
    color: var(--primary-gold-hover);
}

/* Sidebar specific - ensure light text on dark background */
.sidebar,
.sidebar-header,
.sidebar-nav,
.sidebar-footer {
    color: #fff;
}

.sidebar .user-name {
    color: #fff !important;
}

.sidebar .user-email {
    color: rgba(255,255,255,0.6) !important;
}

.sidebar-nav .nav-link {
    color: rgba(255,255,255,0.7) !important;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    color: #fff !important;
}

.sidebar-nav .nav-link span {
    color: inherit !important;
}

.sidebar-nav .nav-link i {
    color: inherit !important;
}

/* Ensure background colors are consistent */
.bg-light {
    background-color: var(--bg-light) !important;
}

/* Status badges - ensure white text for visibility */
.badge.status-available,
.badge.status-occupied,
.badge.status-maintenance,
.badge.status-cleaning,
.badge.status-reserved {
    color: #fff !important;
    font-weight: 500;
}

.badge.status-available {
    background-color: var(--success);
}

.badge.status-occupied {
    background-color: var(--danger);
}

.badge.status-maintenance {
    background-color: var(--warning);
}

.badge.status-cleaning {
    background-color: var(--info);
}

.badge.status-reserved {
    background-color: var(--primary-gold);
}

/* Form color consistency */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 0.2rem rgba(201, 169, 98, 0.25);
}

/* Alert color consistency */
.alert {
    border: none;
    border-radius: 10px;
}

.alert-primary {
    background-color: rgba(201, 169, 98, 0.1);
    color: var(--primary-gold);
}

.alert-success {
    background-color: rgba(72, 187, 120, 0.1);
    color: var(--success);
}

.alert-danger {
    background-color: rgba(245, 101, 101, 0.1);
    color: var(--danger);
}

.alert-warning {
    background-color: rgba(237, 137, 54, 0.1);
    color: var(--warning);
}

.alert-info {
    background-color: rgba(66, 153, 225, 0.1);
    color: var(--info);
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.sidebar-overlay.show {
    display: block;
}

/* Mobile menu toggle - base styles */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

@media (min-width: 992px) {
    .sidebar-overlay {
        display: none !important;
    }
}

/* ========================================
   PUBLIC WEBSITE - ROOMS PAGE STYLES
   ======================================== */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #2c3e50 0%, #3d5a5a 100%);
    padding: 120px 0 60px;
    margin-top: 0;
    text-align: center;
    color: white;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.page-header .lead {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    font-weight: 300;
}

/* Filter Section */
.filter-section {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 30px;
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

.filter-section .form-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.filter-section .form-control,
.filter-section .form-select {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.filter-section .form-control:focus,
.filter-section .form-select:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.1);
}

.btn-primary-custom {
    background: linear-gradient(135deg, #c9a962 0%, #b89a52 100%);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(201, 169, 98, 0.3);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 169, 98, 0.4);
    color: white;
}

/* Room Cards */
.room-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    background: white;
}

.room-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.room-card .card-img-top {
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.room-card:hover .card-img-top {
    transform: scale(1.05);
}

.room-card .position-relative {
    overflow: hidden;
}

/* Price Tag */
.price-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #c9a962 0%, #b89a52 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 5;
}

.room-card .card-body {
    padding: 25px;
}

.room-card .card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.room-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    color: #718096;
    font-size: 0.95rem;
}

.room-info i {
    color: var(--primary-gold);
}

.room-card .card-text {
    color: #718096;
    line-height: 1.6;
    margin-bottom: 20px;
}

.total-price {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.total-price .price {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 700;
}

.total-price .nights {
    color: #718096;
    font-size: 0.9rem;
}

/* Section Padding */
.section-padding {
    padding: 80px 0;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results i {
    font-size: 5rem;
    color: #e2e8f0;
    margin-bottom: 20px;
}

.no-results h3 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 10px;
}

.no-results p {
    color: #718096;
    max-width: 400px;
    margin: 0 auto 20px;
}

/* Footer */
.footer {
    background: #2c3e50;
    padding: 60px 0 30px;
    color: white;
}

.footer h5 {
    color: var(--primary-gold);
    font-weight: 600;
    margin-bottom: 20px;
}

.footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-gold);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .page-header {
        padding: 100px 0 40px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .filter-section {
        margin-top: -20px;
        padding: 20px;
    }
    
    .room-card .card-img-top {
        height: 200px;
    }
    
    .price-tag {
        font-size: 0.9rem;
        padding: 8px 15px;
    }
    
    .section-padding {
        padding: 40px 0;
    }
}
