:root {
    --primary-color: #0d6efd;
    --dark-bg: #1a1d20;
    --card-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #333;
}

.navbar {
    background-color: var(--dark-bg);
}

.card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease;
}

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

.btn {
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 500;
}

.login-container {
    max-width: 400px;
    margin: 100px auto;
}

.table {
    background: white;
    border-radius: 12px;
    overflow: visible; /* Fix: allow sticky headers to work */
}

.table thead {
    background: #f8f9fa;
}

/* Layout Refactor: Fixed Sidebar & Single Page Scroll */
#wrapper {
    display: flex;
    overflow: visible; /* Avoid hidden on parent of sticky elements */
}

#sidebar-wrapper {
    position: fixed;
    height: 100vh;
    width: 250px;
    z-index: 1000; /* Adjusted to be below Bootstrap modals (1040+) */
    overflow-y: auto;
    overflow-x: hidden; /* Fix: remove horizontal scroll */
    background-color: #212529;
}

#page-content-wrapper {
    margin-left: 250px;
    width: calc(100% - 250px);
    min-height: 100vh;
}

.navbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    background-color: #fff !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Sticky Table Header global class */
.sticky-header-table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.sticky-header-table thead th {
    position: sticky !important;
    top: 66px !important;
    background-color: #ffffff !important;
    color: #004085 !important; /* Dark blue from image */
    font-weight: 700 !important;
    box-shadow: 0 4px 4px -2px rgba(0,0,0,0.15) !important;
    z-index: 1020 !important;
    border-bottom: 1px solid #dee2e6 !important;
    padding: 12px 8px !important;
}

/* Fix for table-responsive breaking sticky */
.table-responsive {
    overflow: visible !important; /* Allow sticky to escape container */
}

/* Responsive Sidebar Toggle Support */
#sidebar-wrapper, #page-content-wrapper {
    transition: all 0.3s ease;
}

#wrapper.toggled #sidebar-wrapper {
    margin-left: -250px;
}

#wrapper.toggled #page-content-wrapper {
    margin-left: 0;
    width: 100%;
}

