/* ─── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #e8ecf1;
    color: #2c3e50;
    min-height: 100vh;
}

#app {
    min-height: 100vh;
}

/* ─── Navbar ─────────────────────────────────────────────────── */
.navbar {
    background: #1a365d;
    color: white;
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-brand {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.navbar-user {
    font-size: 14px;
    opacity: 0.9;
}

.navbar-role {
    font-size: 11px;
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-logout {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}

.btn-logout:hover {
    background: rgba(255,255,255,0.25);
}

/* ─── Breadcrumb / Back navigation ───────────────────────────── */
.page-header {
    background: white;
    border-bottom: 1px solid #d1d8e0;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-back {
    background: none;
    border: 1px solid #cbd5e0;
    color: #4a5568;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.btn-back:hover {
    background: #f7fafc;
    border-color: #a0aec0;
}

.page-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a365d;
}

/* ─── Login ──────────────────────────────────────────────────── */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a365d 0%, #2d5a8e 100%);
}

.login-card {
    background: white;
    border-radius: 12px;
    padding: 48px 40px;
    width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.login-card h1 {
    text-align: center;
    color: #1a365d;
    margin-bottom: 8px;
    font-size: 24px;
}

.login-card .subtitle {
    text-align: center;
    color: #718096;
    margin-bottom: 32px;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49,130,206,0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-row .form-group {
    flex: 1;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: #2b6cb0;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #2c5282;
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.login-error {
    background: #fed7d7;
    color: #c53030;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 16px;
}

.login-hint {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: #a0aec0;
}

/* ─── Dashboard ──────────────────────────────────────────────── */
.dashboard {
    padding: 32px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.dashboard h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 24px;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.dashboard-card {
    background: white;
    border-radius: 12px;
    padding: 28px 24px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    border: 2px solid transparent;
    text-align: center;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-color: #3182ce;
}

.dashboard-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 16px;
}

.dashboard-card .card-icon {
    font-size: 40px;
    margin-bottom: 12px;
    color: #3b6a9c;
}

.dashboard-card .card-icon svg {
    width: 48px;
    height: 48px;
    stroke: #3b6a9c;
    fill: none;
    stroke-width: 1.5;
}

.dashboard-card .card-subtitle {
    font-size: 12px;
    color: #718096;
    margin-top: 8px;
}

/* ─── Page Container ─────────────────────────────────────────── */
.page-container {
    padding: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ─── Tabs ───────────────────────────────────────────────────── */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 24px;
}

.tab {
    padding: 10px 20px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #718096;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.tab:hover {
    color: #2d3748;
}

.tab.active {
    color: #2b6cb0;
    border-bottom-color: #2b6cb0;
}

/* ─── Leave Request Layout ───────────────────────────────────── */
.leave-request-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.leave-request-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.leave-request-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ─── Calendar ───────────────────────────────────────────────── */
.calendar-container {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.calendars-row {
    display: flex;
    gap: 24px;
}

.calendar-single {
    flex: 1;
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.calendar-nav button {
    background: none;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    padding: 4px 10px;
    cursor: pointer;
    color: #4a5568;
    font-size: 14px;
}

.calendar-nav button:hover {
    background: #edf2f7;
}

.calendar-nav .cal-month-year {
    font-weight: 600;
    font-size: 14px;
    color: #2d3748;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
}

.calendar-grid .day-header {
    font-size: 11px;
    font-weight: 600;
    color: #a0aec0;
    padding: 4px 0;
}

.calendar-grid .day-cell {
    padding: 6px 2px;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: background 0.15s;
}

.calendar-grid .day-cell:hover {
    background: #edf2f7;
}

.calendar-grid .day-cell.empty {
    cursor: default;
}

.calendar-grid .day-cell.today {
    border: 2px solid #e53e3e;
}

.calendar-grid .day-cell.selected {
    background: #3182ce;
    color: white;
}

.calendar-grid .day-cell.approved {
    background: #c6f6d5;
    color: #276749;
}

.calendar-grid .day-cell.sent {
    background: #fefcbf;
    color: #975a16;
}

.calendar-grid .day-cell.holiday {
    background: #e9d8fd;
    color: #553c9a;
}

.calendar-legend {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #718096;
}

.legend-color {
    width: 14px;
    height: 14px;
    border-radius: 3px;
}

.legend-color.today { border: 2px solid #e53e3e; background: white; }
.legend-color.selected { background: #3182ce; }
.legend-color.approved { background: #48bb78; }
.legend-color.sent { background: #fefcbf; border: 1px solid #d69e2e; }
.legend-color.holiday { background: #805ad5; }

/* ─── Balance Table ──────────────────────────────────────────── */
.balance-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.balance-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 12px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: #4a5568;
    padding: 10px 12px;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

.data-table td {
    padding: 10px 12px;
    font-size: 13px;
    border-bottom: 1px solid #edf2f7;
    color: #2d3748;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.data-table th.num {
    text-align: right;
}

/* ─── Request Form ───────────────────────────────────────────── */
.request-form-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.request-form-card .form-group label .required {
    color: #e53e3e;
    margin-left: 2px;
}

/* Whole-day toggle */
.whole-day-group {
    margin-bottom: 16px;
}

.whole-day-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #2d3748;
    cursor: pointer;
    padding: 8px 14px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    background: #f7fafc;
    transition: all 0.2s;
    user-select: none;
}

.whole-day-label:hover {
    border-color: #3182ce;
    background: #ebf8ff;
}

.whole-day-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2b6cb0;
    cursor: pointer;
    margin: 0;
}

.whole-day-label .whole-day-hint {
    font-size: 12px;
    color: #a0aec0;
    font-weight: 400;
}

.whole-day-label:has(input:checked) {
    border-color: #2b6cb0;
    background: #ebf8ff;
}

.time-hidden {
    opacity: 0.35;
    pointer-events: none;
}

.hours-readonly {
    background: #edf2f7 !important;
    color: #4a5568;
}

.hours-hint {
    font-size: 13px;
    color: #2b6cb0;
    background: #ebf8ff;
    border: 1px solid #bee3f8;
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 12px;
}

.btn-submit {
    padding: 10px 24px;
    background: #2b6cb0;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
}

.btn-submit:hover {
    background: #2c5282;
}

.btn-danger {
    padding: 6px 14px;
    background: #e53e3e;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-danger:hover {
    background: #c53030;
}

.btn-success {
    padding: 6px 14px;
    background: #38a169;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-success:hover {
    background: #2f855a;
}

.btn-sm {
    padding: 4px 10px;
    font-size: 12px;
}

/* ─── Status Badges ──────────────────────────────────────────── */
.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-badge.pending { background: #fefcbf; color: #975a16; }
.status-badge.sent { background: #fed7aa; color: #9c4221; }
.status-badge.approved { background: #c6f6d5; color: #276749; }
.status-badge.rejected { background: #fed7d7; color: #c53030; }

/* ─── Leave Balances Page ────────────────────────────────────── */
.balances-page {
    max-width: 900px;
}

.balances-page .balance-header {
    font-size: 13px;
    color: #718096;
    margin-bottom: 16px;
}

.info-box {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.info-box h4 {
    font-size: 14px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 12px;
}

.info-box ul {
    list-style: disc;
    padding-left: 20px;
}

.info-box li {
    font-size: 13px;
    color: #4a5568;
    margin-bottom: 6px;
    line-height: 1.5;
}

.info-box li a {
    color: #2b6cb0;
    text-decoration: underline;
}

/* ─── Report Pages ───────────────────────────────────────────── */
.report-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
}

.report-sidebar {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    align-self: start;
}

.report-sidebar h3 {
    font-size: 14px;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 4px;
}

.report-sidebar .section-title {
    font-size: 12px;
    font-weight: 600;
    color: #718096;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
    color: #4a5568;
}

.toggle-switch {
    position: relative;
    width: 48px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #a0aec0;
    border-radius: 24px;
    transition: background 0.3s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    top: 3px;
    left: 3px;
    transition: transform 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
    background: #3182ce;
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(24px);
}

.toggle-label {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 9px;
    font-weight: 700;
    color: white;
    pointer-events: none;
}

.toggle-label.on {
    left: 7px;
}

.toggle-label.off {
    right: 5px;
}

.report-date-section {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.report-date-section h4 {
    font-size: 13px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 12px;
}

.btn-run-report {
    width: 100%;
    padding: 10px;
    background: #2b6cb0;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 16px;
}

.btn-run-report:hover {
    background: #2c5282;
}

.report-main {
    background: white;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    min-height: 400px;
}

.report-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    color: #a0aec0;
}

.report-empty .empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.report-empty h3 {
    font-size: 18px;
    font-weight: 600;
    color: #718096;
    margin-bottom: 8px;
}

.report-empty p {
    font-size: 13px;
    color: #a0aec0;
}

/* ─── Alert / Success Messages ───────────────────────────────── */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 16px;
}

.alert-success {
    background: #c6f6d5;
    color: #276749;
}

.alert-error {
    background: #fed7d7;
    color: #c53030;
}

/* ─── View/Delete table ──────────────────────────────────────── */
.requests-list {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.requests-list .data-table .actions {
    display: flex;
    gap: 6px;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .leave-request-layout {
        grid-template-columns: 1fr;
    }

    .report-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .dashboard-cards {
        grid-template-columns: 1fr;
    }

    .calendars-row {
        flex-direction: column;
    }

    .navbar {
        padding: 0 12px;
    }
}

/* ─── Loading spinner ────────────────────────────────────────── */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ─── Summary table in reports ───────────────────────────────── */
.report-summary {
    margin-bottom: 24px;
}

.report-summary h4 {
    font-size: 15px;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 10px;
}

/* ─── Login Signup Toggle ────────────────────────────────────── */
.login-toggle {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #718096;
}

.login-toggle a {
    color: #2b6cb0;
    text-decoration: none;
    font-weight: 600;
}

.login-toggle a:hover {
    text-decoration: underline;
}

.login-success {
    background: #c6f6d5;
    color: #276749;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 16px;
}

.login-card .required {
    color: #e53e3e;
    margin-left: 2px;
}

/* ─── Dashboard Charts ───────────────────────────────────────── */
.dashboard-charts {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.chart-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.chart-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 12px;
}

.chart-legend {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #4a5568;
}

.chart-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.chart-legend-swatch {
    display: inline-block;
    width: 16px;
    height: 12px;
    border-radius: 2px;
}

.chart-legend-swatch-striped {
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 3px,
        rgba(255,255,255,0.5) 3px,
        rgba(255,255,255,0.5) 6px
    ) !important;
}

.bar-chart {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bar-label {
    width: 140px;
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
    text-align: right;
    flex-shrink: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bar-track {
    flex: 1;
    height: 24px;
    background: #edf2f7;
    border-radius: 4px;
    display: flex;
    overflow: hidden;
}

.bar-segment {
    height: 100%;
    transition: width 0.4s ease;
    min-width: 0;
}

.bar-used {
    border-radius: 4px 0 0 4px;
}

.bar-planned {
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 3px,
        rgba(255,255,255,0.4) 3px,
        rgba(255,255,255,0.4) 6px
    );
}

.bar-value {
    width: 140px;
    font-size: 12px;
    color: #718096;
    flex-shrink: 0;
    white-space: nowrap;
}

.bar-x-axis {
    display: flex;
    justify-content: space-between;
    padding-left: 152px;
    padding-right: 152px;
    margin-top: 6px;
    font-size: 11px;
    color: #a0aec0;
}

/* ─── Admin User Management ──────────────────────────────────── */
.admin-users-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.admin-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 12px;
}

.admin-no-pending {
    color: #48bb78;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}

.status-badge.active { background: #c6f6d5; color: #276749; }

/* ─── Setup Wizard ───────────────────────────────────────────── */
.setup-card {
    background: white;
    border-radius: 12px;
    padding: 48px 40px;
    width: 480px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.setup-card h1 {
    text-align: center;
    color: #1a365d;
    margin-bottom: 8px;
    font-size: 24px;
}

.setup-card .subtitle {
    text-align: center;
    color: #718096;
    margin-bottom: 28px;
    font-size: 14px;
}

.setup-step-title {
    font-size: 17px;
    font-weight: 700;
    color: #2b6cb0;
    margin-bottom: 4px;
}

.setup-step-desc {
    font-size: 13px;
    color: #718096;
    margin-bottom: 20px;
}

.setup-card .required {
    color: #e53e3e;
    margin-left: 2px;
}

.setup-btn-row {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.setup-btn-row .btn-primary { flex: 2; }
.setup-btn-row .btn-secondary { flex: 1; }

.btn-secondary {
    width: 100%;
    padding: 12px;
    background: #edf2f7;
    color: #4a5568;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: #e2e8f0;
}

/* ─── Forgot Password Hint ───────────────────────────────────── */
.login-hint-forgot {
    text-align: center;
    margin-top: 12px;
    font-size: 12px;
    color: #a0aec0;
    font-style: italic;
}

/* ─── Warning Button ─────────────────────────────────────────── */
.btn-warning {
    padding: 6px 14px;
    background: #dd6b20;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-warning:hover {
    background: #c05621;
}

/* ─── Modal Overlay ──────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    width: 440px;
    max-width: 90vw;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 12px;
}

.modal-card p {
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 12px;
    line-height: 1.5;
}

.temp-password-box {
    background: #ebf8ff;
    border: 2px solid #3182ce;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Courier New', Courier, monospace;
    color: #2b6cb0;
    letter-spacing: 2px;
    margin: 16px 0;
    user-select: all;
}

.modal-card .btn-primary {
    margin-top: 8px;
}

/* ─── Role-specific badges ───────────────────────────────────── */
.status-badge.tech_admin { background: #e9d8fd; color: #553c9a; }
.status-badge.supervisor { background: #bee3f8; color: #2a4365; }
.status-badge.employee { background: #c6f6d5; color: #276749; }

/* ─── Responsive adjustments for charts ──────────────────────── */
@media (max-width: 768px) {
    .bar-label { width: 80px; font-size: 11px; }
    .bar-value { width: 100px; font-size: 11px; }
    .bar-x-axis { padding-left: 92px; padding-right: 112px; }
    .setup-card { width: 95vw; padding: 32px 24px; }
    .modal-card { width: 95vw; padding: 24px; }
}
