    * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    color: #2c3e50;
    margin: 0;
    padding: 0;
    transition: margin-left 0.3s ease;
    min-height: 100vh;
}

body:has(.login-container) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin-left: 0 !important;
}

body.sidebar-open {
    margin-left: 250px;
}

.container {
    max-width: 1200px;
    margin: 30px auto 0;
    padding: 20px;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 12px;
    margin-bottom: 0;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 100;
    flex-wrap: wrap;
    gap: 10px;
    word-break: break-word;
}

header h1 {
    font-size: clamp(16px, 4vw, 28px);
    margin: 0;
    flex: 1;
    font-weight: 700;
    letter-spacing: 0.5px;
    min-width: 0;
    overflow-wrap: break-word;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 8px 12px;
    transition: transform 0.3s ease;
    -webkit-appearance: none;
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
    flex-shrink: 0;
}

.hamburger.show {
    display: block;
}

.hamburger:hover {
    transform: scale(1.1);
}

.hamburger:active {
    transform: scale(0.95);
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    left: -250px;
    top: 0;
    width: 250px;
    height: 100vh;
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 50%, #1a252f 100%);
    overflow-y: auto;
    transition: left 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    box-shadow: 8px 0 24px rgba(0,0,0,0.35);
}

.sidebar.open {
    left: 0;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    animation: fadeIn 0.3s ease;
}

.sidebar-overlay.show {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.sidebar-header {
    padding: 30px 20px;
    border-bottom: 2px solid rgba(255,255,255,0.15);
    text-align: center;
    color: white;
    background: rgba(0,0,0,0.2);
}

.sidebar-header h2 {
    font-size: 20px;
    margin: 0;
    color: white;
    border: none;
    padding: 0;
    font-weight: 700;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    display: none;
    transition: transform 0.3s ease;
}

.close-btn:hover {
    transform: rotate(90deg);
}

.close-btn.show {
    display: block;
}

nav {
    background-color: transparent;
    padding: 10px 0;
    margin-bottom: 0;
}

nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
}

nav ul li {
    margin: 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

nav ul li a {
    display: block;
    padding: 16px 20px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-size: 15px;
    font-weight: 500;
}

nav ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(180deg, #667eea, #764ba2);
    transform: scaleY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav ul li a:hover {
    background-color: rgba(255,255,255,0.12);
    padding-left: 28px;
    color: white;
}

nav ul li a:hover::before {
    transform: scaleY(1);
}

nav ul li a.active {
    background: linear-gradient(90deg, rgba(102,126,234,0.3) 0%, transparent 100%);
    color: white;
    padding-left: 24px;
}

nav ul li a.active::before {
    transform: scaleY(1);
}

nav ul li a.active:hover {
    padding-left: 24px;
}

/* Sidebar Menu Separator & Sections */
.nav-separator {
    border-top: 1px solid rgba(255,255,255,0.15);
    margin-top: 15px;
    padding-top: 15px;
}

.user-info {
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    margin-bottom: 10px;
    padding: 0 20px;
}

.user-info strong {
    color: rgba(255,255,255,0.85);
    font-weight: 600;
}

.logout-link {
    color: #ff5252;
}

.logout-link:hover {
    color: #ff7070;
}

/* Role Badge Styles */
.role-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.role-badge.role-admin {
    background: #dc3545;
    color: white;
}

.role-badge.role-manager {
    background: #007bff;
    color: white;
}

.role-badge.role-karyawan {
    background: #28a745;
    color: white;
}

/* User Management Styles */
.user-form-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
}

.form-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
    font-size: 13px;
}

.form-group input,
.form-group select {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* User Table Styles */
.table-responsive {
    overflow-x: auto;
    margin-bottom: 20px;
}

.user-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.user-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.user-table thead th {
    padding: 14px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #dee2e6;
}

.user-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid #e0e0e0;
}

.user-table tbody tr:hover {
    background: #f8f9fa;
}

.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-edit,
.btn-delete {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-edit {
    background: #ffc107;
    color: #333;
}

.btn-edit:hover {
    background: #ffb300;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.btn-delete {
    background: #dc3545;
    color: white;
}

.btn-delete:hover {
    background: #c82333;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.main-content {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
    font-size: 28px;
    font-weight: 700;
}

h3 {
    color: #2c3e50;
    margin-top: 20px;
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 20px;
}

.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="date"],
input[type="time"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background-color: #f9f9fb;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
    background-color: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

input[type="text"]:disabled,
input[type="email"]:disabled,
select:disabled {
    background-color: #f0f0f2;
    cursor: not-allowed;
    border-color: #d8d8de;
}

button,
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    -webkit-appearance: none;
    appearance: none;
    min-height: 44px;
    touch-action: manipulation;
}

button::before,
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    transition: left 0.3s ease;
    z-index: -1;
}

button:hover,
.btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

button.btn-success {
    background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

button.btn-success:hover {
    background: linear-gradient(135deg, #1e8449 0%, #27ae60 100%);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.4);
}

button.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

button.btn-danger:hover {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

button.btn-warning {
    background: linear-gradient(135deg, #f39c12 0%, #d68910 100%);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

button.btn-warning:hover {
    background: linear-gradient(135deg, #d68910 0%, #f39c12 100%);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
}

button.btn-secondary {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    box-shadow: 0 4px 15px rgba(149, 165, 166, 0.3);
}

button.btn-secondary:hover {
    background: linear-gradient(135deg, #7f8c8d 0%, #95a5a6 100%);
    box-shadow: 0 8px 25px rgba(149, 165, 166, 0.4);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border-radius: 8px;
}

table thead {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
}

table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
}

table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e0e6ed;
    font-size: 14px;
}

table tbody tr {
    transition: all 0.3s ease;
}

table tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

table tbody tr:hover {
    background-color: #eef2ff;
    box-shadow: inset 0 0 10px rgba(102, 126, 234, 0.1);
}

.action-buttons {
    display: flex;
    gap: 6px;
}

.action-buttons .btn {
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 6px;
}

.message {
    padding: 16px 18px;
    margin-bottom: 20px;
    border-radius: 8px;
    border-left: 4px solid;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border-color: #28a745;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #e74c3c;
}

.message.warning {
    background-color: #fff3cd;
    color: #856404;
    border-color: #f39c12;
}

.message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-color: #667eea;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.form-row.full {
    grid-template-columns: 1fr;
}

.button-group {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.button-group button {
    flex: 1;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.no-data {
    text-align: center;
    padding: 50px 30px;
    color: #7f8c8d;
    font-style: italic;
    font-size: 16px;
}

footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    text-align: center;
    padding: 25px 20px;
    margin-top: 40px;
    margin-left: 0;
    font-weight: 500;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

/* ===================== SETTING GAJI PAGE STYLES ===================== */

.page-title {
    font-size: 26px;
    color: #2c3e50;
    margin-bottom: 30px;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
    font-weight: 700;
}

.form-container {
    background: white;
    padding: 24px;
    margin-bottom: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    animation: slideUp 0.3s ease-out;
}

.section-title {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
    border-left: 4px solid #667eea;
    padding-left: 12px;
}

.form-row-salary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row.full {
    grid-template-columns: 1fr;
}

@media (min-width: 769px) {
    .form-row-salary {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 14px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background-color: #f9f9fb;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    background-color: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-description {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 4px;
    font-style: italic;
}

.form-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e6ed;
}

.form-buttons button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-buttons .btn-primary {
    background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.form-buttons .btn-primary:hover {
    background: linear-gradient(135deg, #1e8449 0%, #27ae60 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.4);
}

.form-buttons .btn-reset {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(149, 165, 166, 0.3);
}

.form-buttons .btn-reset:hover {
    background: linear-gradient(135deg, #7f8c8d 0%, #95a5a6 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(149, 165, 166, 0.4);
}

.employee-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;
}

.employee-table thead {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
}

.employee-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.employee-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e0e6ed;
    font-size: 14px;
}

.employee-table tbody tr {
    transition: all 0.3s ease;
}

.employee-table tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

.employee-table tbody tr:hover {
    background-color: #eef2ff;
    box-shadow: inset 0 0 10px rgba(102, 126, 234, 0.1);
}

.employee-table .currency {
    text-align: right;
    font-family: 'Courier New', monospace;
    font-weight: 500;
    color: #27ae60;
}

.employee-table .no-salary {
    color: #e74c3c;
    font-weight: 600;
}

.employee-table .btn-edit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.employee-table .btn-edit:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Tablet & Mobile Responsive - Base Mobile First */
@media (max-width: 480px) {
    /* Extra Small Phones */
    body {
        background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
        margin-left: 0;
    }

    header {
        padding: 12px 10px;
        gap: 8px;
    }

    header h1 {
        font-size: 16px;
        margin: 0;
    }

    .hamburger {
        display: block !important;
        font-size: 24px;
        padding: 8px 10px;
        margin: 0;
    }

    .container {
        padding: 10px 8px;
        margin: 0;
        background: #f5f5f5;
    }

    .main-content {
        padding: 12px 10px;
        border-radius: 8px;
        background: white;
        margin: 10px 0;
    }

    h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .form-group {
        margin-bottom: 12px;
    }

    label {
        font-size: 13px;
        margin-bottom: 5px;
    }

    input[type="text"],
    input[type="email"],
    input[type="date"],
    input[type="time"],
    input[type="password"],
    select,
    textarea {
        padding: 12px 10px;
        font-size: 16px;
        min-height: 44px;
        border-radius: 6px;
    }

    button,
    .btn {
        padding: 12px 16px;
        font-size: 14px;
        min-height: 44px;
        width: 100%;
        margin-bottom: 8px;
        border-radius: 6px;
    }

    .button-group {
        flex-direction: column;
        gap: 8px;
    }

    .button-group button {
        width: 100%;
    }

    .action-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .action-buttons .btn {
        width: 100%;
        padding: 10px 12px;
        font-size: 12px;
    }

    /* Table Mobile - Horizontal Scroll */
    .table-responsive {
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        margin: 15px 0;
        border-radius: 8px;
    }

    table {
        font-size: 12px;
        min-width: 100%;
        width: 100%;
        margin-top: 15px;
        border-collapse: collapse;
        display: table;
    }

    table th,
    table td {
        padding: 10px 8px;
        white-space: nowrap;
        border-bottom: 1px solid #e0e6ed;
    }

    table th {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
        color: white;
        font-weight: 600;
        font-size: 11px;
        padding: 10px 8px;
    }

    table td {
        font-size: 11px;
    }

    table tbody tr {
        transition: all 0.3s ease;
    }

    table tbody tr:nth-child(even) {
        background-color: #f9fafb;
    }

    table tbody tr:hover {
        background-color: #eef2ff;
    }

    .message {
        padding: 12px 10px;
        font-size: 13px;
        margin-bottom: 15px;
        border-radius: 6px;
    }

    .sidebar {
        width: 85vw;
        max-width: 280px;
        top: 0;
    }

    .form-container {
        padding: 12px;
        margin-bottom: 15px;
    }

    .form-description {
        font-size: 11px;
    }

    footer {
        padding: 15px 10px;
        font-size: 12px;
    }

    .no-data {
        padding: 20px 10px;
        font-size: 13px;
    }

    .page-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
}

/* Tablet - Medium Devices */
@media (min-width: 481px) and (max-width: 768px) {
    body {
        background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
        margin-left: 0;
    }

    header {
        padding: 18px 15px;
    }

    header h1 {
        font-size: 22px;
    }

    .hamburger.show {
        display: block !important;
        font-size: 26px;
    }

    .container {
        padding: 12px;
        margin: 0;
    }

    .main-content {
        padding: 20px;
        border-radius: 8px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 18px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    input[type="text"],
    input[type="email"],
    input[type="date"],
    input[type="time"],
    input[type="password"],
    select,
    textarea {
        padding: 12px;
        font-size: 16px;
        min-height: 44px;
    }

    button,
    .btn {
        padding: 12px 20px;
        font-size: 14px;
        min-height: 44px;
    }

    .action-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .action-buttons .btn {
        width: 100%;
    }

    .button-group {
        flex-direction: column;
    }

    .button-group button {
        width: 100%;
    }

    /* Table Responsive */
    .table-responsive {
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        border-radius: 8px;
        margin: 15px 0;
    }

    table {
        font-size: 12px;
        min-width: 750px;
        width: auto;
        margin-top: 20px;
        border-collapse: collapse;
        display: table;
    }

    table th,
    table td {
        padding: 10px 8px;
        white-space: nowrap;
        border-bottom: 1px solid #e0e6ed;
    }

    table th {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
        color: white;
        font-weight: 600;
        padding: 10px 8px;
    }

    table tbody tr {
        transition: all 0.3s ease;
    }

    table tbody tr:nth-child(even) {
        background-color: #f9fafb;
    }

    table tbody tr:hover {
        background-color: #eef2ff;
    }
}

/* Login Page Styling */
.login-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-container form {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 420px;
    animation: slideUp 0.5s ease-out;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    font-size: 32px;
    color: #2c3e50;
    margin: 0 0 8px 0;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.login-header p {
    color: #7f8c8d;
    font-size: 14px;
    margin: 0;
    font-weight: 500;
}

.login-container .form-group {
    margin-bottom: 20px;
}

.login-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
}

.login-container input[type="text"],
.login-container input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    background-color: #f9f9fb;
    transition: all 0.3s ease;
}

.login-container input[type="text"]:focus,
.login-container input[type="password"]:focus {
    outline: none;
    border-color: #667eea;
    background-color: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.login-container input::placeholder {
    color: #b0bec5;
}

.login-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    margin-top: 10px;
}

.login-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.login-btn:active {
    transform: translateY(0);
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 14px 16px;
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
    display: none;
}

.error-message.show {
    display: block;
}

/* Modal/Dialog Base Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    display: none;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 10px;
    width: 95%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

.modal-header {
    padding: 20px;
    font-weight: 700;
    font-size: 18px;
    color: #2c3e50;
    border-bottom: 2px solid #e0e6ed;
}

.modal-body {
    padding: 20px;
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e0e6ed;
    text-align: right;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.modal-close-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
}

/* Desktop sidebar (always visible) */
@media (min-width: 769px) {
    body {
        margin-left: 250px;
        background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    }
    
    footer {
        margin-left: 250px;
    }
    
    .sidebar {
        left: 0;
        box-shadow: 8px 0 24px rgba(0,0,0,0.15);
    }
    
    .hamburger {
        display: none !important;
    }
    
    .close-btn {
        display: none !important;
    }
    
    .sidebar-overlay {
        display: none !important;
    }
    
    .container {
        margin-top: 20px;
        max-width: calc(100vw - 250px - 40px);
    }

    .table-responsive {
        overflow-x: visible;
        overflow-y: visible;
        margin: 15px 0;
    }

    table {
        width: 100%;
        display: table;
        margin-top: 20px;
    }

    table th,
    table td {
        white-space: normal;
        border-bottom: 1px solid #e0e6ed;
        padding: 14px 16px;
    }

    table th {
        padding: 14px 16px;
    }

    button,
    .btn {
        min-height: auto;
        width: auto;
        padding: 10px 20px;
    }
    
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Login page responsive */
@media (max-width: 768px) {
    .login-container form {
        padding: 30px;
        max-width: 100%;
    }

    .login-header h1 {
        font-size: 26px;
    }

    .login-header p {
        font-size: 13px;
    }

    .login-btn {
        padding: 12px 20px;
        font-size: 15px;
    }
}

/* ===== DASHBOARD STYLING ===== */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    background: #f5f7fa;
    min-height: calc(100vh - 100px);
}

@media (min-width: 769px) {
    body > .dashboard-container {
        margin-left: 250px;
    }
}

@media (max-width: 768px) {
    body > .dashboard-container {
        margin-left: 0 !important;
    }
}

.welcome-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.welcome-section h1 {
    margin: 0;
    font-size: 32px;
    margin-bottom: 10px;
}

.welcome-section p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-left: 4px solid #667eea;
    transition: transform 0.3s;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.stat-card.warning {
    border-left-color: #ff9800;
}

.stat-card.danger {
    border-left-color: #f44336;
}

.stat-card.success {
    border-left-color: #4caf50;
}

.stat-card.info {
    border-left-color: #2196f3;
}

.stat-label {
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    font-weight: 600;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    line-height: 1;
}

.stat-subtext {
    color: #999;
    font-size: 13px;
    margin: 0;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.chart-container {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.chart-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.chart-wrapper {
    position: relative;
    height: 300px;
}

.admin-section {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.admin-section h2 {
    color: #856404;
    margin-top: 0;
}

.admin-section h3 {
    color: #856404;
}

.payroll-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.payroll-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    border: 2px solid #ffc107;
    text-align: center;
}

.payroll-label {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.payroll-value {
    font-size: 28px;
    font-weight: bold;
    color: #2196f3;
    margin-bottom: 5px;
}

.top-earners-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.top-earners-table th {
    background: #f5f5f5;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #ddd;
    font-weight: bold;
    color: #333;
}

.top-earners-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.top-earners-table tr:hover {
    background: #fafafa;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.action-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 14px;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.action-btn.secondary {
    background: #2196f3;
}

.action-btn.secondary:hover {
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

/* Dashboard Mobile Responsive */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .welcome-section h1 {
        font-size: 24px;
    }
    
    .dashboard-container {
        padding: 15px;
    }
}

