/* ===== Promeal Biotech HRMS - Natural Light Green Professional Theme ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #3A7D44;
    --primary-light: #4E9A5A;
    --primary-lighter: #88C99A;
    --primary-lightest: #EDF7EF;
    --primary-dark: #2A5E32;
    --accent: #5DAB6F;
    --bg: #F5FBF6;
    --bg-card: #FFFFFF;
    --bg-sidebar: #EBF5ED;
    --text: #1A2E1C;
    --text-light: #3D5C42;
    --text-muted: #7E9E83;
    --border: #C2DFC8;
    --border-light: #DFF0E2;
    --danger: #C62828;
    --danger-light: #FFEBEE;
    --warning: #D4900A;
    --warning-light: #FFF8E1;
    --warning-bg: #FFF8E1;
    --success: #2A5E32;
    --success-light: #EDF7EF;
    --info: #1565C0;
    --info-light: #E3F2FD;
    --shadow: 0 2px 8px rgba(30,80,40,0.09);
    --shadow-lg: 0 4px 20px rgba(30,80,40,0.14);
    --radius: 10px;
    --radius-sm: 6px;
    --sidebar-width: 260px;
    --header-height: 64px;
    --transition: all 0.2s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; cursor: default; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
a, button, select, label.radio-label, .btn, .nav-link, .photo-upload-area, label, th, .badge, .sidebar, .header, .page-header, .card-header, h1, h2, h3, h4, h5, h6, p, span, td, div { cursor: default !important; }
a, button, .btn, .nav-link, select, label.radio-label, .photo-upload-area, input[type="checkbox"], input[type="radio"] { cursor: pointer !important; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], input[type="search"], textarea { cursor: text !important; -webkit-user-select: text; -moz-user-select: text; -ms-user-select: text; user-select: text; }
input[type="file"] { cursor: pointer !important; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

/* ===== Layout ===== */
.app-layout { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #EBF5ED 0%, #D4ECDA 100%);
    color: var(--text);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    overflow-y: auto;
    transition: var(--transition);
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(58,125,68,0.25);
}

.sidebar-header h2 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.4;
    color: var(--primary-dark);
}

.sidebar-header .subtitle {
    font-size: 11px;
    opacity: 0.80;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
}

.sidebar-nav { padding: 16px 0; }

.nav-section {
    padding: 8px 20px 4px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    opacity: 0.8;
    font-weight: 700;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: var(--text-light);
    font-size: 13.5px;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background: rgba(58,125,68,0.12);
    color: var(--primary-dark);
    border-left-color: var(--primary-light);
}

.nav-link.active {
    background: rgba(58,125,68,0.18);
    color: var(--primary-dark);
    border-left-color: var(--primary);
    font-weight: 600;
}

.nav-link .icon {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== Header ===== */
.header {
    height: var(--header-height);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.header-title { font-size: 18px; font-weight: 600; color: var(--text); }

.header-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-user .user-info {
    text-align: right;
    line-height: 1.3;
}

.header-user .user-name { font-weight: 600; font-size: 13px; }
.header-user .user-role {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
}

/* ===== Page Content ===== */
.page-content { padding: 28px; flex: 1; }

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.page-header h1 { font-size: 22px; font-weight: 700; color: var(--text); }

.breadcrumb {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

/* ===== Cards ===== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    font-weight: 600;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary-lightest);
}

.card-body { padding: 20px; }

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.stat-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-icon.green { background: var(--success-light); color: var(--success); }
.stat-icon.blue { background: var(--info-light); color: var(--info); }
.stat-icon.yellow { background: var(--warning-light); color: var(--warning); }
.stat-icon.red { background: var(--danger-light); color: var(--danger); }
.stat-icon.teal { background: #E0F2F1; color: #00897B; }

.stat-info h3 { font-size: 24px; font-weight: 700; line-height: 1; }
.stat-info p { font-size: 12px; color: var(--text-muted); margin-top: 4px; font-weight: 500; }

/* Quick Action Cards */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.action-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    display: block;
    color: var(--text);
}

.action-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
    color: var(--text);
}

.action-card .action-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: var(--primary-lightest);
    color: var(--primary);
}

.action-card h3 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.action-card p { font-size: 12px; color: var(--text-muted); }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }

.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: var(--primary-dark); color: #fff; }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #B71C1C; color: #fff; }

.btn-warning { background: var(--warning); color: #fff; }
.btn-warning:hover { background: #E65100; color: #fff; }

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

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

.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }

/* ===== Forms ===== */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.form-group label .required { color: var(--danger); margin-left: 2px; }

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    background: #fff;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(58,125,68,0.18);
}

.form-control:disabled { background: #F5F5F5; color: var(--text-muted); }

select.form-control { cursor: pointer; }

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

.form-text { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

.form-error { font-size: 11px; color: var(--danger); margin-top: 4px; }

/* Radio/Checkbox */
.radio-group, .checkbox-group {
    display: flex; gap: 20px; flex-wrap: wrap; padding-top: 4px;
}

.radio-label, .checkbox-label {
    display: flex; align-items: center; gap: 8px;
    cursor: pointer; font-size: 14px; font-weight: 500;
}

.radio-label input, .checkbox-label input { cursor: pointer; accent-color: var(--primary); }

/* ===== Tables ===== */
.table-container { overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

table thead th {
    background: var(--primary-lightest);
    color: var(--text);
    font-weight: 600;
    padding: 12px 14px;
    text-align: left;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

table tbody tr:hover { background: var(--primary-lightest); }

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

/* ===== Badges ===== */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-pending { background: var(--warning-light); color: var(--warning); }
.badge-approved { background: var(--success-light); color: var(--success); }
.badge-not-approved, .badge-rejected { background: var(--danger-light); color: var(--danger); }
.badge-deductible { background: #FFF3E0; color: #E65100; }
.badge-non-deductible { background: var(--info-light); color: var(--info); }
.badge-active { background: var(--success-light); color: var(--success); }
.badge-inactive { background: #ECEFF1; color: #607D8B; }

/* ===== Toast Notifications ===== */
.toast-container {
    position: fixed;
    top: 20px; right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 280px;
    max-width: 400px;
}

.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-warning { background: var(--warning); }
.toast-info { background: var(--info); }

.toast-close {
    margin-left: auto;
    cursor: pointer;
    opacity: 0.7;
    font-size: 18px;
    background: none;
    border: none;
    color: inherit;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active { display: flex; }

.modal {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 28px;
    max-width: 460px;
    width: 90%;
    box-shadow: var(--shadow-lg);
}

.modal h3 { font-size: 18px; margin-bottom: 12px; }
.modal p { font-size: 14px; color: var(--text-light); margin-bottom: 20px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ===== Signature Pad ===== */
.signature-section { margin-bottom: 20px; }

.signature-section h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.signature-pad-wrapper {
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    background: #FAFAFA;
    padding: 4px;
    position: relative;
}

.signature-pad-wrapper canvas {
    width: 100%;
    height: 150px;
    display: block;
    cursor: crosshair;
}

.signature-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.signature-preview {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px;
    background: #fff;
    text-align: center;
    min-height: 80px;
}

.signature-preview img { max-height: 80px; max-width: 100%; }

.signature-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    text-align: center;
}

/* ===== Photo Upload ===== */
.photo-upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: #FAFAFA;
}

.photo-upload-area:hover { border-color: var(--primary); background: var(--primary-lightest); }

.photo-upload-area .upload-icon { font-size: 36px; color: var(--text-muted); margin-bottom: 8px; }
.photo-upload-area p { font-size: 13px; color: var(--text-muted); }

.photo-preview {
    margin-top: 12px;
    text-align: center;
}

.photo-preview img {
    max-width: 200px;
    max-height: 150px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.photo-source-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 12px;
}

.photo-src-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px !important;
    font-size: 12px !important;
    border-radius: 20px !important;
    border: 1.5px solid var(--primary) !important;
    color: var(--primary) !important;
    background: var(--primary-lightest) !important;
    transition: var(--transition);
    font-weight: 600 !important;
}

.photo-src-btn:hover {
    background: var(--primary) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(58,125,68,0.25);
}

/* ===== Filters ===== */
.filters-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    align-items: flex-end;
}

.filters-bar .form-group { margin-bottom: 0; min-width: 160px; }

/* ===== Print Styles ===== */
.print-page {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
}

.print-header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #333;
    padding-bottom: 12px;
}

.print-header h1 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.print-header h2 { font-size: 16px; font-weight: 600; margin-bottom: 2px; }
.print-header h3 { font-size: 13px; font-weight: 400; color: #555; }

.print-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.print-table th, .print-table td {
    border: 1px solid #333;
    padding: 8px 10px;
    font-size: 12px;
    text-align: left;
}

.print-table th {
    background: #f0f0f0;
    font-weight: 600;
    text-align: center;
}

.print-signatures {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 20px;
}

.print-sig-box {
    flex: 1;
    text-align: center;
    padding-top: 10px;
}

.print-sig-box .sig-line {
    border-top: 1px solid #333;
    margin-top: 60px;
    padding-top: 6px;
    font-size: 12px;
    font-weight: 600;
}

.print-sig-box img { max-height: 60px; }

.print-actions {
    text-align: center;
    margin: 20px 0;
}

@media print {
    .sidebar, .header, .print-actions, .toast-container, #cursor-glow { display: none !important; }
    .main-content { margin-left: 0 !important; }
    .page-content { padding: 0 !important; }
    .print-page { padding: 15px; max-width: none; box-shadow: none; }
    body { background: #fff; }
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
}

.empty-state .empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state h3 { font-size: 16px; margin-bottom: 6px; color: var(--text-light); }
.empty-state p { font-size: 13px; }

/* ===== Loading ===== */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.spinner {
    width: 36px; height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ===== View Page ===== */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.detail-item label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.detail-item .value { font-size: 15px; font-weight: 500; }

/* ===== Login Page ===== */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #EDF7EF 0%, #C2DFC8 50%, var(--bg) 100%);
}

.login-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.login-card .logo {
    text-align: center;
    margin-bottom: 28px;
}

.login-card .logo h1 {
    font-size: 22px;
    color: var(--primary-dark);
    font-weight: 700;
}

.login-card .logo p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
}

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

.login-card .btn-primary {
    width: 100%;
    padding: 12px;
    font-size: 15px;
}

/* ===== Responsive ===== */
/* Sidebar overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 90;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

@media (max-width: 1024px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .stats-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .form-grid { grid-template-columns: 1fr; }
    .page-content { padding: 16px; }
    .header { padding: 0 16px; }
    .filters-bar { flex-direction: column; }
    .filters-bar .form-group { min-width: 100%; }
    .quick-actions { grid-template-columns: repeat(2, 1fr); }
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text);
}

@media (max-width: 1024px) {
    .mobile-menu-btn { display: block; }
}

/* ===== Utility ===== */
.action-buttons { display: flex; gap: 4px; flex-wrap: wrap; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.flex { display: flex; }
.gap-2 { gap: 16px; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }

/* ===== Dark Theme ===== */
[data-theme="dark"] {
    --primary: #5DAB6F;
    --primary-light: #6DBF82;
    --primary-lighter: #4E9A5A;
    --primary-lightest: #1A2E1E;
    --primary-dark: #88C99A;
    --accent: #5DAB6F;
    --bg: #0F1611;
    --bg-card: #1A2320;
    --bg-sidebar: #111D14;
    --text: #E8F5E9;
    --text-light: #A5C8AA;
    --text-muted: #6A8F6F;
    --border: #2A3D2E;
    --border-light: #223026;
    --danger: #EF5350;
    --danger-light: #2A1515;
    --warning: #FFB300;
    --warning-light: #2A2210;
    --warning-bg: #2A2210;
    --success: #5DAB6F;
    --success-light: #1A2E1E;
    --info: #42A5F5;
    --info-light: #0D1E33;
    --shadow: 0 2px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 4px 24px rgba(0,0,0,0.55);
}

[data-theme="dark"] .sidebar {
    background: linear-gradient(180deg, #111D14 0%, #0C1710 100%);
    border-right-color: var(--border);
}

[data-theme="dark"] .header {
    background: #141F17;
    border-bottom-color: var(--border);
}

[data-theme="dark"] .card-header {
    background: #1E2E22;
}

[data-theme="dark"] table thead th {
    background: #1E2E22;
    color: var(--text-light);
}

[data-theme="dark"] table tbody tr:hover {
    background: #1A2E1E;
}

[data-theme="dark"] .form-control {
    background: #1A2320;
    color: var(--text);
    border-color: var(--border);
}

[data-theme="dark"] .form-control:disabled {
    background: #141F17;
}

[data-theme="dark"] .filters-bar {
    background: #1A2320;
    border-color: var(--border);
}

[data-theme="dark"] .stat-card,
[data-theme="dark"] .action-card {
    background: #1A2320;
    border-color: var(--border);
}

[data-theme="dark"] .login-wrapper {
    background: linear-gradient(135deg, #0F1611 0%, #1A2E1E 50%, #0F1611 100%);
}

[data-theme="dark"] .login-card {
    background: #1A2320;
    border-color: var(--border);
}

[data-theme="dark"] .modal {
    background: #1A2320;
}

[data-theme="dark"] #cursor-glow {
    background: radial-gradient(circle, rgba(93,171,111,0.22) 0%, rgba(93,171,111,0.08) 45%, transparent 70%);
}

/* Theme toggle button */
.theme-toggle {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--primary-lightest);
    color: var(--primary);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}
.theme-toggle:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: rotate(20deg) scale(1.1);
}

/* Profile Dropdown */
.header-user { position: relative; }
.profile-dropdown {
    position: absolute; top: calc(100% + 8px); right: 0; width: 300px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    z-index: 1000; opacity: 0; visibility: hidden;
    transform: translateY(-10px); transition: all 0.25s ease;
}
.profile-dropdown.show { opacity: 1; visibility: visible; transform: translateY(0); }
.profile-header {
    padding: 20px; text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius) var(--radius) 0 0; color: white;
}
.profile-avatar-lg {
    width: 56px; height: 56px; border-radius: 50%;
    background: rgba(255,255,255,0.25); color: white;
    font-size: 22px; font-weight: 700; display: flex;
    align-items: center; justify-content: center; margin: 0 auto 10px;
    border: 2px solid rgba(255,255,255,0.4);
}
.profile-name { font-size: 16px; font-weight: 600; }
.profile-email { font-size: 12px; opacity: 0.85; margin-top: 2px; }
.profile-body { padding: 12px 16px; }
.profile-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 1px solid var(--border-light);
}
.profile-item:last-child { border-bottom: none; }
.profile-label { font-size: 13px; color: var(--text-muted); }
.profile-value { font-size: 13px; font-weight: 500; color: var(--text); }
.profile-footer { padding: 12px 16px; border-top: 1px solid var(--border-light); }

/* Bulk Action Bar */
.bulk-action-bar {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 16px; background: var(--primary-lightest);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    margin-bottom: 12px;
}
.bulk-action-bar .selected-count { font-weight: 600; font-size: 13px; color: var(--primary-dark); }
