/* Custom Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.login-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.sidebar {
    position: fixed;
    top: 56px;
    left: 0;
    height: calc(100vh - 56px);
    overflow-y: auto;
}

.main-content {
    margin-left: 250px;
    padding: 20px;
}

.navbar-brand {
    font-weight: bold;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
    margin-bottom: 1rem;
}

.card-header {
    font-weight: 600;
}

.table th {
    border-top: none;
    font-weight: 600;
    color: var(--primary-color);
}

.btn {
    border-radius: 0.375rem;
}

.alert {
    border: none;
    border-radius: 0.5rem;
}

/* Sidebar active state */
.nav-link.active {
    background-color: var(--secondary-color);
    color: white !important;
    border-radius: 0.375rem;
}

/* Stats cards hover effect */
.card:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease-in-out;
}

/* Form styles */
.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        position: static;
        height: auto;
        width: 100% !important;
    }
    
    .main-content {
        margin-left: 0;
    }
}

/* Print styles for payslips */
@media print {
    .no-print {
        display: none !important;
    }
    
    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
}
/* Fix table display issues */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    margin-bottom: 1rem;
    background-color: transparent;
}

.table th,
.table td {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
}

.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6;
}

.table tbody + tbody {
    border-top: 2px solid #dee2e6;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.05);
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.075);
}

/* Ensure content is visible */
.card-body {
    padding: .25rem;
}

/* Make sure table is visible */
.table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

/* Fix any hidden elements */
.d-none {
    display: none !important;
}

/* Ensure text is visible */
.text-muted {
    color: #6c757d !important;
}

.text-success {
    color: #198754 !important;
}

.text-info {
    color: #0dcaf0 !important;
}

.text-warning {
    color: #ffc107 !important;
}
/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 56px; /* Height of navbar */
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
    padding: 0.5rem 1rem;
}

.sidebar .nav-link.active {
    color: #2470dc;
    background-color: #e7f1ff;
}

.sidebar .nav-link:hover {
    color: #2470dc;
    background-color: #f8f9fa;
}

/* Main content area */
main {
    margin-left: 0;
}

@media (min-width: 768px) {
    main {
        margin-left: 250px;
    }
}

/* Ensure tables are visible */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    margin-bottom: 1rem;
    background-color: transparent;
}

.table th,
.table td {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
}

.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.05);
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.075);
}
/* Enhanced Sidebar Styles */
.sidebar {
    position: fixed;
    top: 56px;
    left: 0;
    width: 250px;
    height: calc(100vh - 56px);
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-link {
    font-size: 1.05rem !important;
    font-weight: 500;
    padding: 0.85rem 1rem !important;
    margin: 0.15rem 0.75rem !important;
    border-radius: 8px !important;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    color: #495057;
}

.sidebar-sublink {
    font-size: 0.95rem !important;
    padding: 0.65rem 1rem !important;
    margin: 0.1rem 0.5rem !important;
}

.sidebar-link:hover:not(.active) {
    background-color: #e9ecef !important;
    color: #000 !important;
    transform: translateX(5px);
}

.sidebar-link.active {
    font-weight: 600;
    background-color: #0d6efd !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.sidebar-chevron {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.sidebar-link[aria-expanded="true"] .sidebar-chevron {
    transform: rotate(180deg);
}

.logout-link {
    border-top: 1px solid #dee2e6;
    padding-top: 1rem !important;
    margin-top: 1rem !important;
}

.logout-link:hover {
    background-color: #f8d7da !important;
    color: #dc3545 !important;
}

/* Enhanced Main Content Area */
.main-content {
    margin-left: 250px;
    padding: 1.5rem 2rem;
    min-height: calc(100vh - 56px);
    background-color: #f8f9fa;
}

/* Card Enhancements */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: white;
    border-bottom: 1px solid #e3e6f0;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.card-body {
    padding: 1.5rem;
}

/* Table Enhancements */
.table {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    color: #495057;
    border-top: none;
    padding: 1rem 0.75rem;
    background-color: #f8f9fa;
}

.table td {
    padding: 0.75rem;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* Button Enhancements */
.btn {
    border-radius: 6px;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        box-shadow: none;
    }
    
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
    
    .sidebar-link {
        font-size: 1rem !important;
        padding: 0.75rem 1rem !important;
    }
}

/* Content Area Typography */
.main-content h1,
.main-content h2,
.main-content h3,
.main-content h4,
.main-content h5,
.main-content h6 {
    font-weight: 600;
    color: #2c3e50;
}

.main-content h1 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.main-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.main-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* Stats and Numbers */
.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
}

.stat-card .stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Form Enhancements */
.form-control, .form-select {
    border-radius: 6px;
    border: 1px solid #d1d3e2;
    padding: 0.5rem 0.75rem;
}

.form-control:focus, .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Badge Enhancements */
.badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}

/* Alert Enhancements */
.alert {
    border: none;
    border-radius: 8px;
    padding: 1rem 1.5rem;
}

/* Ensure proper spacing */
.container-fluid {
    padding: 0;
}

.row {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

.col, .col-1, .col-10, .col-11, .col-12, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-auto, .col-lg, .col-lg-1, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-auto, .col-md, .col-md-1, .col-md-10, .col-md-11, .col-md-12, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-auto, .col-sm, .col-sm-1, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-auto, .col-xl, .col-xl-1, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-auto {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}