:root {
    --primary-color: rgb(2, 12, 41);
    --primary-dark: #2e59d9;
    --secondary-color: #1cc88a;
    --gray-dark: #5a5c69;
    --gray-light: #f8f9fc;
    --sidebar-width: 14rem;
    --topbar-height: 4.375rem;
    --topbar-color: linear-gradient(180deg, var(--primary-color) 10%, rgb(3, 14, 46) 100%);
    --text-light: rgba(255, 255, 255, 0.8);
    --text-dark: #3a3b45;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--gray-light);
    display: flex;
    min-height: 100vh;
    color: var(--text-dark);
}

/* ========== Sidebar Styles ========== */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--primary-color) 10%, rgb(3, 14, 46) 100%);
    color: white;
    height: 100vh;
    position: fixed;
    transition: all 0.3s;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: scroll;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 1rem;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.sidebar-brand {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 0.05rem;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.sidebar-brand i {
    margin-right: 0.5rem;
}

.sidebar-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin: 0 1rem 1rem;
    flex-shrink: 0;
}

.sidebar-heading {
    padding: 0 1rem;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: rgba(253, 207, 3, 0.986);
    margin-top: 1.5rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s;
    color: rgb(0, 0, 0);
}

.nav-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link i {
    margin-right: 0.5rem;
    font-size: 0.85rem;
    min-width: 20px;
    text-align: center;
}

.nav-link .arrow {
    margin-left: auto;
    transition: transform 0.3s;
}

.nav-link.collapsed .arrow {
    transform: rotate(-90deg);
}

.collapse {
    display: none;
}

.collapse.show {
    display: block;
}

.nav-collapse {
    background-color: rgba(0, 0, 0, 0.2);
}

.nav-collapse .nav-link {
    padding-left: 2rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-size: 0.85rem;
}

/* ========== Topbar Styles ========== */
.topbar {
    height: var(--topbar-height);
    background: var(--topbar-color);
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    position: fixed;
    left: var(--sidebar-width);
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 1.5rem;
}

.topbar-divider {
    width: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    height: 2.5rem;
    margin: 0 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    color: white;
}

.user-info img {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.user-name {
    font-weight: 600;
    margin-right: 0.5rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    border-radius: 0.35rem;
    padding: 0.5rem 0;
    min-width: 12rem;
    display: none;
    z-index: 1100;
}

.user-info:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    display: block;
    white-space: nowrap;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: var(--gray-light);
    color: var(--primary-dark);
}

.dropdown-item i {
    margin-right: 0.5rem;
    width: 1rem;
    text-align: center;
}

/* ========== Main Content Styles ========== */
.main-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--topbar-height);
    padding: 1.5rem;
    width: 100%;
    min-height: calc(100vh - var(--topbar-height));
    background-color: var(--gray-light);
}

.card {
    background-color: white;
    border-radius: 0.35rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.card-header {
    border-bottom: 1px solid #e3e6f0;
    padding: 1rem 1.5rem;
    font-weight: 700;
    color: var(--gray-dark);
    background-color: #f8f9fc;
}

.card-body {
    padding: 1.5rem;
}

/* ========== Form Styles ========== */
.form-container {
    max-width: 700px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 0.35rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
}

.form-header {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--gray-dark);
}

.form-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e3e6f0;
}

.section-title {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.required-field::after {
    content: " *";
    color: #dc3545;
}

/* ========== Table Styles ========== */
.table-container {
    background-color: white;
    border-radius: 0.35rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
    padding: 1rem;
    overflow-x: auto;
}

.top-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #f8f9fc;
    border-radius: 0.35rem;
}

.action-buttons .btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    margin-right: 0.5rem;
}

/* ========== Media Styles ========== */
.member-photo {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
}

.member-photo2 {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

.photo-preview {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    margin-bottom: 1rem;
}

.photo-preview2 {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

/* ========== Status & Badges ========== */
.status-badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    border-radius: 0.25rem;
    font-weight: 600;
}

.info-card {
    border-left: 4px solid var(--primary-dark);
    padding-left: 1rem;
}

.gender-icon {
    font-size: 1.2rem;
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* ========== Calendar Styles ========== */
.calendar {
    background-color: white;
    border-radius: 0.35rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
    overflow: hidden;
}

.calendar-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    text-align: center;
    position: relative;
}

.calendar-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
}

.calendar-nav a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
}

.calendar-title {
    margin: 0;
    font-size: 1.25rem;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background-color: #f8f9fc;
    font-weight: bold;
    text-align: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e3e6f0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background-color: #e3e6f0;
}

.calendar-day {
    min-height: 100px;
    background-color: white;
    padding: 0.5rem;
    position: relative;
}

.calendar-day.empty {
    background-color: #f9f9f9;
}

.calendar-day-number {
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.calendar-day.today .calendar-day-number {
    background-color: var(--primary-dark);
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.calendar-event {
    font-size: 0.75rem;
    background-color: #e3f2fd;
    border-left: 3px solid var(--primary-dark);
    padding: 0.25rem 0.5rem;
    margin-bottom: 0.25rem;
    border-radius: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.calendar-event:hover {
    background-color: #bbdefb;
}

/* ========== Utility Classes ========== */
.filtered-totals-row {
    background-color: #f8f9fc;
    font-weight: bold;
}

.filtered-totals-row th {
    border-top: 2px solid #dee2e6;
}

.datesearchbox {
    padding: 1rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.datesearchbox label {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* ========== Mobile Responsiveness ========== */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 1050;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .topbar {
        left: 0;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
}

.no-scroll {
    overflow: hidden;
}

   .nav-item .nav-link {
            position: relative;
            color: rgba(255, 255, 255, 0.8);
            padding: 0.75rem 1rem;
            font-weight: 600;
            font-size: 0.85rem;
        }
        
        .nav-item .nav-link i {
            font-size: 0.85rem;
            margin-right: 0.25rem;
        }
        
        .nav-item .nav-link:hover {
            color: #fff;
            background-color: rgba(255, 255, 255, 0.1);
        }
        
        .nav-item .nav-link.active {
            color: #fff;
            font-weight: 700;
        }
        
        .nav-item .nav-link[data-bs-toggle="collapse"]::after {
            display: inline-block;
            font-style: normal;
            font-variant: normal;
            text-rendering: auto;
            -webkit-font-smoothing: antialiased;
            font-family: "Font Awesome 6 Free";
            font-weight: 900;
            content: "\f107";
            margin-left: auto;
            transition: transform 0.3s;
        }
        
        .nav-item .nav-link[data-bs-toggle="collapse"].collapsed::after {
            transform: rotate(-90deg);
        }
        
        .collapse-inner {
            border-radius: 0.35rem;
            box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
        }
        
        .collapse-inner .collapse-item {
            padding: 0.5rem 1rem;
            margin: 0 0.5rem;
            display: block;
            color: #3a3b45;
            text-decoration: none;
            border-radius: 0.35rem;
            white-space: nowrap;
            font-weight: 600;
            font-size: 0.85rem;
        }
        
        .collapse-inner .collapse-item:hover {
            background-color: #eaecf4;
        }
        
        .collapse-inner .collapse-item.active {
            color: #4e73df;
            font-weight: 700;
        }
        
        /* Topbar Styles */
        .topbar {
            height: var(--topbar-height);
            box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
            background-color: #fff;
        }
        
        .topbar .navbar-search {
            width: 25rem;
        }
        
        .topbar .navbar-search input {
            font-size: 0.85rem;
            height: auto;
        }
        
        .topbar .topbar-divider {
            width: 0;
            border-right: 1px solid #e3e6f0;
            height: calc(var(--topbar-height) - 2rem);
            margin: auto 1rem;
        }
        
        .topbar .nav-item .nav-link {
            height: var(--topbar-height);
            display: flex;
            align-items: center;
            padding: 0 0.75rem;
            color: #d1d3e2;
        }
        
        .topbar .nav-item .nav-link:hover {
            color: #b7b9cc;
        }
        
        .topbar .nav-item .nav-link .badge-counter {
            position: absolute;
            transform: scale(0.7);
            transform-origin: top right;
            right: 0.25rem;
            margin-top: -0.25rem;
        }
        
        .topbar .dropdown-list {
            padding: 0;
            border: none;
            overflow: hidden;
            width: 20rem !important;
        }
        
        .topbar .dropdown-list .dropdown-header {
            background-color: var(--primary-color);
            border: 1px solid var(--primary-color);
            padding-top: 0.75rem;
            padding-bottom: 0.75rem;
            color: #fff;
        }
        
        .topbar .dropdown-list .dropdown-item {
            white-space: normal;
            padding-top: 0.5rem;
            padding-bottom: 0.5rem;
            border-left: 1px solid #e3e6f0;
            border-right: 1px solid #e3e6f0;
            border-bottom: 1px solid #e3e6f0;
            line-height: 1.3rem;
        }
        
        .topbar .dropdown-list .dropdown-item .icon-circle {
            height: 2.5rem;
            width: 2.5rem;
            border-radius: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .topbar .dropdown-list .dropdown-item .text-truncate {
            max-width: 13.375rem;
        }
        
        .topbar .dropdown-list .dropdown-item:active {
            background-color: #eaecf4;
            color: #3a3b45;
        }
        
        /* Main Content */
        #content-wrapper {
            width: 100%;
            overflow-x: hidden;
            margin-left: var(--sidebar-width);
            transition: all 0.3s;
        }
        
        /* Dashboard Cards */
        .card {
            border: none;
            border-radius: 0.35rem;
            box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
        }
        
        .card-header {
            background-color: #f8f9fc;
            border-bottom: 1px solid #e3e6f0;
        }
        
        .card-body {
            padding: 1.25rem;
        }
        
        .dashboard-card-icon {
            font-size: 2rem;
            opacity: 0.3;
        }
        
      
        
        /* Progress Bars */
        .progress-sm {
            height: 0.5rem;
        }
        
        /* Charts */
        .chart-area {
            position: relative;
            height: 10rem;
            width: 100%;
        }
        
        .chart-pie {
            position: relative;
            height: 15rem;
            width: 100%;
        }
        
        /* Room Status */
        .room-card {
            border-radius: 0.35rem;
            transition: all 0.3s;
            cursor: pointer;
        }
        
        .room-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
        }
        
        .room-status {
            font-size: 0.75rem;
            padding: 0.25rem 0.5rem;
            border-radius: 0.25rem;
        }
        
        .status-vacant {
            background-color: rgba(28, 200, 138, 0.1);
            color: var(--success-color);
        }
        
        .status-occupied {
            background-color: rgba(231, 74, 59, 0.1);
            color: var(--danger-color);
        }
        
        .status-reserved {
            background-color: rgba(54, 185, 204, 0.1);
            color: var(--info-color);
        }
        
        .status-maintenance {
            background-color: rgba(246, 194, 62, 0.1);
            color: var(--warning-color);
        }
        
       