body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.page-header h3 {
    margin: 0;
}

.tabulator {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}

.modal-backdrop {
    z-index: 1040;
}

.form-label {
    font-weight: 500;
}

.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 2rem;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    background: #fff;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.login-container h3 {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Sidebar */
.app-sidebar {
    position: fixed;
    left: 0;
    top: 56px;
    width: 250px;
    height: calc(100vh - 56px);
    background: #212529;
    overflow-y: auto;
    overflow-x: hidden;
    transition: width 0.2s ease;
    z-index: 1030;
}

.app-sidebar.collapsed {
    width: 0;
}

.app-content {
    margin-left: 250px;
    padding: 1rem;
    padding-top: calc(56px + 1rem);
    transition: margin-left 0.2s ease;
}

.app-content.sidebar-collapsed {
    margin-left: 0;
    padding-top: 1rem;
}

/* Sidebar nav */
.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-group {
    margin-bottom: 0.25rem;
}

.sidebar-group-header {
    display: block;
    padding: 0.75rem 1rem 0.25rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #6c757d;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.sidebar-group-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav a {
    display: block;
    color: #adb5bd;
    padding: 0.45rem 1rem 0.45rem 1.5rem;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.15s ease;
    font-size: 0.875rem;
}

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

.sidebar-nav a.active {
    border-left-color: #0d6efd;
    background: rgba(13, 110, 253, 0.15);
    color: #fff;
}

.sidebar-nav a i {
    margin-right: 0.5rem;
    width: 1.2em;
    text-align: center;
}

.sidebar-divider {
    border-top: 1px solid #343a40;
    margin: 0.5rem 1rem;
}

/* Responsive */
@media (max-width: 991.98px) {
    .app-sidebar {
        width: 0;
    }
    .app-sidebar.mobile-open {
        width: 250px;
    }
    .app-content {
        margin-left: 0;
    }
}
