/* DASHBOARD LAYOUT */
#dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

#sidebar {
    width: 260px;
    min-width: 260px;
    background: #2c3e50;
    transition: all 0.3s;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

#main-content {
    flex: 1;
    min-width: 0;
    background: #f4f7f6;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

/* TABLE RESPONSIVE FIX */
.wmas-table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* MOBILE SIDEBAR */
@media (max-width: 992px) {
    #sidebar {
        margin-left: -260px;
        position: absolute;
        height: 100%;
    }

    #sidebar.active {
        margin-left: 0;
    }

    #main-content {
        width: 100%;
    }
}

/* UI ELEMENTS */
#sidebar ul {
    list-style: none !important;
    padding: 0;
    margin: 0;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    margin: 2px 10px;
    border-radius: 4px;
    text-decoration: none !important;
}

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

.nav-link.active {
    background: #198754 !important;
}

/* Success green */
.user-avatar {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #34495e;
}

#sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

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

/* PAGINATION STYLES */
ul.page-numbers {
    display: flex;
    padding-left: 0;
    list-style: none;
    margin-top: 1rem;
    margin-bottom: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

ul.page-numbers li {
    display: inline-block;
}

ul.page-numbers a,
ul.page-numbers span {
    position: relative;
    display: block;
    padding: 0.5rem 0.85rem;
    color: #198754;
    text-decoration: none !important;
    background-color: #fff;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease-in-out;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

ul.page-numbers span.current {
    z-index: 3;
    color: #fff;
    background-color: #198754;
    border-color: #198754;
    box-shadow: 0 4px 6px rgba(25, 135, 84, 0.2);
}

ul.page-numbers a:hover {
    z-index: 2;
    color: #146c43;
    background-color: #f8f9fa;
    border-color: #198754;
    transform: translateY(-1px);
}

ul.page-numbers .dots {
    border: none;
    background: transparent;
    color: #6c757d;
}