:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #2563eb; /* blue */
  --accent: #10b981;  /* green */
  --danger: #ef4444;
  --warning: #f59e0b;
  --ring: rgba(37, 99, 235, 0.3);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; color: var(--text); background: var(--bg); font-size: 13px; line-height: 1.5; }

.container { max-width: 1100px; margin: 40px auto; padding: 0 16px; }
.card { background: var(--card); border-radius: 14px; padding: 24px; box-shadow: 0 10px 30px rgba(2,6,23,0.08); }
.title { margin: 0 0 8px; font-size: 22px; font-weight: 600; }
.subtitle { margin: 0 0 18px; color: var(--muted); font-size: 14px; }

.form { display: grid; gap: 10px; }
label { font-weight: 500; font-size: 12px; color: #374151; }
input[type="text"], input[type="email"], input[type="password"] { width: 100%; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 6px; outline: none; background: #fff; font-size: 13px; }
input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring); }

.password-input-group { position: relative; display: flex; align-items: center; }
.password-input-group input { padding-right: 40px; }
.password-toggle { position: absolute; right: 8px; background: none; border: none; cursor: pointer; font-size: 16px; padding: 4px; color: var(--muted); }
.password-toggle:hover { color: var(--text); }

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

.btn { display: inline-flex; align-items: center; gap: 6px; border: none; border-radius: 6px; padding: 8px 12px; cursor: pointer; font-weight: 500; text-decoration: none; font-size: 12px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-secondary { background: #6b7280; color: #fff; }
.btn-success { background: var(--accent); color: #fff; }
.btn-warning { background: var(--warning); color: #111827; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); }
.btn:hover { opacity: 0.95; }

.alert { padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; font-size: 14px; }
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-success { background: #dcfce7; color: #14532d; }

.topbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: #fff; box-shadow: 0 4px 20px rgba(2,6,23,0.06); }
.brand { font-weight: 600; color: var(--primary); font-size: 14px; }

.grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 900px) { .grid { grid-template-columns: 1fr 1fr; } }

.table { width: 100%; display: grid; gap: 6px; }
.table-row { display: grid; grid-template-columns: 1.4fr 1.4fr 1fr 1fr 1fr; gap: 10px; align-items: center; padding: 10px 12px; background: #fff; border-radius: 10px; border: 1px solid #e2e8f0; }
.table-header { font-weight: 700; background: #f1f5f9; }

.badge { display: inline-block; padding: 4px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-muted { background: #e5e7eb; color: #374151; }

/* Profile Page Styles */
.profile-info { margin-bottom: 24px; }
.profile-item { display: flex; align-items: center; padding: 10px 0; border-bottom: 1px solid #e2e8f0; gap: 12px; }
.profile-item:last-child { border-bottom: none; }
.profile-item label { font-weight: 600; color: var(--text); margin: 0; min-width: 120px; }
.profile-item span { color: var(--muted); flex: 1; }
.profile-actions { margin-top: 20px; }

.inline-form { display: inline; }

.checkbox { display: flex; align-items: center; gap: 8px; margin: 6px 0 10px; }

/* Layout shell */
.layout { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.sidebar { background: #ffffff; border-right: 1px solid #e2e8f0; padding: 12px; position: sticky; top: 0; height: 100vh; }
.sidebar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.sidebar .logo { font-weight: 800; color: var(--primary); font-size: 16px; margin: 0; }
.sidebar-close { 
    display: none; 
    background: #f3f4f6; 
    border: none; 
    width: 28px; 
    height: 28px; 
    border-radius: 6px; 
    cursor: pointer; 
    color: #6b7280; 
    font-size: 16px; 
    font-weight: 600;
    transition: all 0.2s ease;
}
.sidebar-close:hover { 
    background: #e5e7eb; 
    color: #374151; 
}
.sidebar .nav { display: grid; gap: 4px; }
.sidebar a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 13px; }
.sidebar a.active, .sidebar a:hover { background: #eef2ff; color: #1e40af; }
.content { min-width: 0; }
.content .content-inner { padding: 16px; }
.topbar .menu-btn { display: none; }

/* Dashboard KPI Cards */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 24px; }
.kpi-card { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); border: 1px solid #f1f5f9; }
.kpi-card .title { font-size: 12px; color: #64748b; margin: 0 0 8px; font-weight: 500; }
.kpi-card .value { font-size: 22px; font-weight: 700; margin: 0 0 8px; }
.kpi-card .change { font-size: 11px; display: flex; align-items: center; gap: 4px; }
.kpi-card .change.positive { color: #059669; }
.kpi-card .change.negative { color: #dc2626; }
.kpi-card .icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.kpi-card .icon.blue { background: #dbeafe; color: #1d4ed8; }
.kpi-card .icon.green { background: #dcfce7; color: #16a34a; }
.kpi-card .icon.purple { background: #f3e8ff; color: #9333ea; }
.kpi-card .icon.orange { background: #fed7aa; color: #ea580c; }

/* Progress Cards */
.progress-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 24px; }
.progress-card { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); border: 1px solid #f1f5f9; }
.progress-bar { width: 100%; height: 8px; background: #f1f5f9; border-radius: 4px; overflow: hidden; margin: 8px 0; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #10b981, #059669); border-radius: 4px; transition: width 0.3s ease; }
.progress-fill.blue { background: linear-gradient(90deg, #3b82f6, #1d4ed8); }
.progress-fill.purple { background: linear-gradient(90deg, #8b5cf6, #7c3aed); }
.progress-stats { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.progress-stats .fraction { color: #64748b; font-size: 14px; }

/* Chart Card */
.chart-card { background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); border: 1px solid #f1f5f9; }
.chart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.chart-title { font-size: 16px; font-weight: 600; color: #1e293b; margin: 0; }
.chart-placeholder { height: 200px; background: linear-gradient(135deg, #f8fafc, #e2e8f0); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #64748b; font-size: 12px; }

/* Employee Management */
.employee-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.employee-header h2 { margin: 0; color: #1e293b; font-size: 18px; font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .btn { 
  min-height: 32px; 
  padding: 6px 12px; 
  font-size: 12px; 
  font-weight: 500;
}
.export-icon { font-size: 14px; }
.employee-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; background: #fff; padding: 16px 20px; border-radius: 8px; border: 1px solid #e5e7eb; }
.employee-toolbar-left { display: flex; align-items: center; gap: 16px; }
.employee-toolbar-right { display: flex; align-items: center; gap: 12px; }
.employee-search { position: relative; }
.employee-search input { width: 300px; padding: 8px 12px 8px 36px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 12px; }
.employee-search::before { content: '🔍'; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #9ca3af; }
.employee-filters { display: flex; gap: 8px; align-items: center; }
.employee-filters select { padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 6px; background: #fff; font-size: 12px; }
.employee-table { background: #fff; border-radius: 8px; overflow: hidden; border: 1px solid #e5e7eb; }
.employee-table table { width: 100%; border-collapse: collapse; }
.employee-table th, .employee-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #f1f5f9; }
.employee-table th { background: #f8fafc; font-weight: 600; color: #374151; cursor: pointer; user-select: none; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }
.employee-table th:hover { background: #f1f5f9; }
.employee-table th.sortable::after { 
  content: ' ↕'; 
  opacity: 0.4; 
  font-size: 10px; 
  color: #9ca3af; 
  transition: all 0.2s ease;
}
.employee-table th.sort-asc::after { 
  content: ' ↑'; 
  opacity: 1; 
  color: #3b82f6; 
  font-weight: bold; 
  font-size: 12px;
}
.employee-table th.sort-desc::after { 
  content: ' ↓'; 
  opacity: 1; 
  color: #3b82f6; 
  font-weight: bold; 
  font-size: 12px;
}
.employee-table tr:hover { background: #f8fafc; }
.employee-table tr:last-child td { border-bottom: none; }
.employee-actions { display: flex; gap: 4px; }

/* No Data State */
.no-data { text-align: center; padding: 60px 20px !important; }
.no-data-content { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.no-data-icon { font-size: 48px; opacity: 0.5; }
.no-data-title { font-size: 16px; font-weight: 600; color: #374151; margin: 0; }
.no-data-subtitle { font-size: 14px; color: #6b7280; margin: 0; max-width: 300px; }
.employee-actions .btn { padding: 4px 8px; font-size: 11px; border-radius: 4px; }
.employee-pagination { display: flex; justify-content: space-between; align-items: center; padding: 20px; background: #f8fafc; border-top: 1px solid #e5e7eb; }
.employee-pagination .pagination-info { color: #64748b; font-size: 12px; }
.employee-pagination .pagination-controls { display: flex; gap: 6px; align-items: center; }
.employee-pagination .pagination-controls button, 
.employee-pagination .pagination-controls .pagination-btn { 
    padding: 6px 10px; 
    border: 1px solid #d1d5db; 
    background: #fff; 
    border-radius: 4px; 
    cursor: pointer; 
    font-size: 12px; 
    transition: all 0.2s ease;
}
.employee-pagination .pagination-controls button:hover, 
.employee-pagination .pagination-controls .pagination-btn:hover { 
    background: #f3f4f6; 
    border-color: #9ca3af;
}
.employee-pagination .pagination-controls button:disabled, 
.employee-pagination .pagination-controls .pagination-btn:disabled { 
    opacity: 0.5; 
    cursor: not-allowed; 
    background: #f9fafb;
}
.employee-pagination .pagination-controls .page-number { padding: 6px 10px; border: 1px solid #3b82f6; background: #3b82f6; color: #fff; border-radius: 4px; font-size: 12px; }
.employee-pagination select { padding: 6px 8px; border: 1px solid #d1d5db; border-radius: 4px; background: #fff; font-size: 12px; }

/* Status badges */
.status-badge { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 12px; font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.status-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; }
.status-active { background: #dcfce7; color: #166534; }
.status-active::before { background: #16a34a; }
.status-inactive { background: #fef3c7; color: #92400e; }
.status-inactive::before { background: #f59e0b; }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; z-index: 1000; opacity: 0; visibility: hidden; transition: all 0.3s ease; backdrop-filter: blur(4px); }
.modal.open { opacity: 1; visibility: visible; }
.modal-content { background: #fff; border-radius: 12px; width: 90%; max-width: 700px; max-height: 90vh; overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.05); border: 1px solid #e5e7eb; display: flex; flex-direction: column; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid #f1f5f9; background: #fafbfc; border-radius: 12px 12px 0 0; }
.modal-title { font-size: 16px; font-weight: 600; margin: 0; color: #1e293b; }
.modal-close { background: #f3f4f6; border: none; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; color: #6b7280; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; font-size: 16px; font-weight: 600; }
.modal-close:hover { background: #e5e7eb; color: #374151; transform: scale(1.05); }
.modal-close:active { transform: scale(0.95); }
.modal-body { padding: 20px; overflow-y: auto; flex: 1; }

/* Custom Scrollbar for Modal */
.modal-body::-webkit-scrollbar { width: 6px; }
.modal-body::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 3px; }
.modal-body::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
.modal-body::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
.modal-body::-webkit-scrollbar-corner { background: #f1f5f9; }

/* Firefox scrollbar */
.modal-body { scrollbar-width: thin; scrollbar-color: #cbd5e1 #f1f5f9; }
.modal-footer { display: flex; justify-content: flex-end; gap: 12px; padding: 16px 20px; border-top: 1px solid #f1f5f9; background: #fafbfc; border-radius: 0 0 12px 12px; }
.modal-footer .btn { padding: 8px 16px; font-size: 13px; font-weight: 500; border-radius: 6px; }
.modal-footer .btn-ghost { background: #fff; border: 1px solid #d1d5db; color: #374151; }
.modal-footer .btn-ghost:hover { background: #f9fafb; border-color: #9ca3af; }
.modal-footer .btn-primary { background: #3b82f6; color: #fff; border: 1px solid #3b82f6; }
.modal-footer .btn-primary:hover { background: #2563eb; border-color: #2563eb; }
.modal-form { display: grid; gap: 20px; }
.modal-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; }
.modal-form .form-group { display: flex; flex-direction: column; gap: 6px; }
.modal-form .form-group.full-width { grid-column: 1 / -1; }
.modal-form label { font-weight: 500; color: #374151; font-size: 12px; margin-bottom: 2px; }
.modal-form input, .modal-form textarea, .modal-form select { padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 6px; transition: all 0.2s ease; font-size: 13px; background: #fff; height: 36px; }
.modal-form textarea { height: auto; min-height: 80px; resize: vertical; }
.modal-form input:focus, .modal-form textarea:focus, .modal-form select:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }
.modal-form input::placeholder, .modal-form textarea::placeholder { color: #9ca3af; }
.modal-form .error { color: #dc2626; font-size: 12px; margin-top: 6px; }
.modal-form .field-error { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1); }

/* Modal Section Headers */
.modal-form h3 { font-size: 14px; font-weight: 600; color: #374151; margin: 0 0 12px 0; padding-bottom: 8px; border-bottom: 1px solid #f1f5f9; }
.modal-form h3:first-child { margin-top: 0; }

/* Modern Custom Dropdown */
.custom-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 36px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    min-height: 36px;
}

.dropdown-selected:hover {
    border-color: #9ca3af;
}

.dropdown-selected:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.selected-text {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    display: flex;
    align-items: center;
    line-height: 1;
}

.dropdown-arrow {
    font-size: 12px;
    color: #6b7280;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    line-height: 1;
}

.custom-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    margin-top: 4px;
}

.custom-dropdown.open .dropdown-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-option {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 13px;
    color: #374151;
    transition: background-color 0.15s ease;
    border-bottom: 1px solid #f1f5f9;
}

.dropdown-option:last-child {
    border-bottom: none;
}

.dropdown-option:hover {
    background-color: #f8fafc;
}

.dropdown-option.selected {
    background-color: #eff6ff;
    color: #1d4ed8;
    font-weight: 500;
}

/* Password Input */
.password-input { 
    position: relative; 
    display: flex; 
    align-items: center; 
}
.password-input input { 
    padding-right: 50px; 
    height: 36px;
}
.password-toggle { 
    position: absolute; 
    right: 12px; 
    top: 50%; 
    transform: translateY(-50%); 
    background: none; 
    border: none; 
    cursor: pointer; 
    font-size: 16px; 
    color: #6b7280; 
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}
.password-toggle:hover { 
    color: #374151; 
    background: #f3f4f6;
}

/* Loading states */
.loading { opacity: 0.6; pointer-events: none; }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid #f3f4f6; border-top: 2px solid #3b82f6; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 50; left: 0; top: 0; bottom: 0; width: 260px; transform: translateX(-100%); transition: transform .2s ease; }
  .sidebar.open { transform: translateX(0); box-shadow: 0 10px 40px rgba(2,6,23,0.2); }
  .sidebar-close { display: flex; align-items: center; justify-content: center; }
  .topbar .menu-btn { display: inline-flex; }
  .content .content-inner { padding: 12px; }
  
  /* Mobile employee table */
  .employee-table { overflow-x: auto; }
  .employee-table table { min-width: 800px; }
  .modal-content { width: 95%; margin: 20px; }
  .modal-form .form-row { grid-template-columns: 1fr; }
  .employee-toolbar { flex-direction: column; align-items: stretch; gap: 16px; }
  .employee-toolbar-left, .employee-toolbar-right { justify-content: center; }
  .employee-search input { width: 100%; max-width: 300px; }
  .employee-pagination { flex-direction: column; gap: 16px; text-align: center; }
  .employee-actions { flex-wrap: wrap; }
  .employee-actions .btn { font-size: 11px; padding: 4px 8px; }
}

/* Auth split-screen */
.auth-layout { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; }
.auth-illustration { position: relative; background: linear-gradient(135deg, #eff6ff, #ecfdf5); display: flex; align-items: center; justify-content: center; padding: 32px; }
.auth-illustration .blob { position: absolute; inset: 0; background: radial-gradient(600px 300px at 20% 30%, rgba(37,99,235,.18), transparent), radial-gradient(500px 250px at 80% 70%, rgba(16,185,129,.18), transparent); filter: blur(8px); }
.auth-illustration .illus-card { position: relative; background: #ffffff; border-radius: 16px; box-shadow: 0 10px 40px rgba(2,6,23,.08); padding: 22px; width: min(520px, 90%); }
.auth-illustration .illus-title { margin: 0 0 8px; font-size: 22px; color: #1e3a8a; }
.auth-illustration .illus-text { margin: 0; color: var(--muted); }

.auth-form { display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-form .panel { width: min(460px, 92%); }
.auth-form .brand { font-weight: 900; color: var(--primary); margin-bottom: 10px; }
.auth-form .title { margin-top: 6px; }
.auth-form .remember { display: flex; align-items: center; gap: 8px; margin: 6px 0 4px; }

/* Status toggle styling */
.status-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-toggle .btn {
  padding: 4px 8px;
  font-size: 12px;
  min-width: auto;
}

@media (max-width: 900px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-illustration { order: 2; min-height: 220px; }
}


/* Confirmation Modal Styles */
.confirmation-content {
  text-align: center;
  padding: 8px 0;
}

.confirmation-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.confirmation-message {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 8px;
}

.confirmation-details {
  text-align: left;
  margin-top: 8px;
  font-size: 14px;
}

/* Delete Warning Styles */
.delete-warning {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  margin: 12px 0;
}

.warning-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.warning-text {
  flex: 1;
}

.warning-text strong {
  color: #dc2626;
  font-size: 14px;
  display: block;
  margin-bottom: 4px;
}

.warning-text div {
  color: #64748b;
  font-size: 13px;
  line-height: 1.4;
}


/* Scrollable employee list for bulk actions */
.employee-list-container {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 8px;
  background-color: #f9fafb;
  margin-top: 8px;
}

.employee-list-item {
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 2px;
  background-color: white;
  border: 1px solid #e5e7eb;
  font-size: 13px;
}

.employee-list-item:last-child {
  margin-bottom: 0;
}

/* Compact modal styling */
.modal-content.compact {
  max-width: 500px;
}

.modal-body.compact {
  padding: 16px 24px;
}

.confirmation-content.compact {
  padding: 4px 0;
}

.confirmation-icon.compact {
  font-size: 24px;
  margin-bottom: 4px;
}

.modal-form.compact {
  margin-top: 12px;
}

.modal-form.compact .form-group {
  margin-bottom: 12px;
}

.modal-form.compact .form-group:last-child {
  margin-bottom: 0;
}

.confirmation-message.compact {
  font-size: 14px;
  margin-bottom: 4px;
}

/* Password Result Modal */
.password-result-modal {
  animation: slideIn 0.3s ease-out;
}

/* Sorting and Bulk Actions */
.sortable {
  cursor: pointer;
  user-select: none;
  position: relative;
}

.sortable:hover {
  background-color: #f3f4f6;
}


.bulk-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 16px;
  padding: 8px 12px;
  background-color: #f3f4f6;
  border-radius: 6px;
  border: 1px solid #d1d5db;
}

.bulk-actions span {
  font-size: 14px;
  color: #6b7280;
  margin-right: 8px;
}

.btn-sm {
  padding: 4px 8px;
  font-size: 12px;
  line-height: 1.2;
}

.employee-filters select {
  margin: 0 8px;
  padding: 4px 8px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 14px;
}

/* Fix checkbox styling */
#select-all {
  margin: 0;
  transform: none;
}

.employee-checkbox {
  margin: 0;
  transform: none;
}

/* Remove any extra styling that might cause the square box */
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid #d1d5db;
  border-radius: 3px;
  background-color: white;
  cursor: pointer;
  position: relative;
  vertical-align: middle;
}

input[type="checkbox"]:checked {
  background-color: #3b82f6;
  border-color: #3b82f6;
}

input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: -2px;
  left: 2px;
  color: white;
  font-size: 12px;
  font-weight: bold;
}

input[type="checkbox"]:indeterminate {
  background-color: #3b82f6;
  border-color: #3b82f6;
}

input[type="checkbox"]:indeterminate::after {
  content: '−';
  position: absolute;
  top: -2px;
  left: 3px;
  color: white;
  font-size: 12px;
  font-weight: bold;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}


