/* === CSS RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #F8F9FB; --surface: #FFFFFF; --border: #E5E7EB;
  --text: #111827; --text-secondary: #6B7280; --text-tertiary: #9CA3AF;
  --primary: #4F46E5; --primary-light: #EEF2FF; --primary-hover: #4338CA;
  --success: #10B981; --warning: #F59E0B; --danger: #EF4444;
  --sidebar-bg: #1E1B3A; --sidebar-text: #C4B5FD; --sidebar-active: #FFFFFF;
  --radius: 8px; --shadow: 0 1px 3px rgba(0,0,0,.08);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
html, body { height: 100%; font-family: var(--font); font-size: 14px; color: var(--text); background: var(--bg); }
a { text-decoration: none; color: inherit; }

/* === LAYOUT === */
.app { display: flex; height: 100vh; overflow: hidden; }

/* === SIDEBAR === */
.sidebar {
  width: 220px; min-width: 220px; background: var(--sidebar-bg); color: var(--sidebar-text);
  display: flex; flex-direction: column; padding: 0;
}
.sidebar-header { padding: 20px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.logo { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; color: #fff; }
.nav-menu { list-style: none; padding: 12px 8px; flex: 1; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 6px;
  cursor: pointer; font-size: 13px; font-weight: 500; transition: all .15s;
  color: var(--sidebar-text); margin-bottom: 2px;
}
.nav-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-item.active { background: rgba(79,70,229,.5); color: var(--sidebar-active); }
.nav-item svg { flex-shrink: 0; }

/* === MAIN CONTENT === */
.main-content { flex: 1; overflow-y: auto; padding: 0; background: var(--bg); }
.page { display: none; height: 100%; flex-direction: column; }
.page.active { display: flex; }

.page-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; background: var(--surface); border-bottom: 1px solid var(--border);
  flex-shrink: 0; min-height: 60px;
}
.page-header h1 { font-size: 18px; font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.date-range { font-size: 13px; font-weight: 500; color: var(--text-secondary); min-width: 180px; text-align: center; }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: 4px; padding: 7px 14px; border-radius: 6px;
  font-size: 13px; font-weight: 500; border: none; cursor: pointer; transition: all .15s;
  font-family: var(--font); white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { background: var(--bg); }
.btn-danger { background: #FEE2E2; color: var(--danger); }
.btn-danger:hover { background: #FECACA; }
.btn-sm { padding: 4px 10px; font-size: 12px; }

/* === INPUTS === */
.select-input, .date-input, .text-input {
  padding: 7px 10px; border: 1px solid var(--border); border-radius: 6px;
  font-size: 13px; font-family: var(--font); background: var(--surface); color: var(--text);
  outline: none; transition: border-color .15s;
}
.select-input:focus, .date-input:focus, .text-input:focus { border-color: var(--primary); }
.text-input { width: 100%; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 12px; font-weight: 500; color: var(--text-secondary); margin-bottom: 4px; }
.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }

/* === SCHEDULE GRID === */
.schedule-grid { flex: 1; overflow: auto; padding: 0; }
.schedule-table { width: 100%; border-collapse: collapse; min-width: 900px; }
.schedule-table th {
  position: sticky; top: 0; z-index: 10; background: var(--surface); border-bottom: 2px solid var(--border);
  padding: 10px 8px; font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--text-secondary);
  text-align: center; letter-spacing: .5px;
}
.schedule-table th:first-child { text-align: left; padding-left: 16px; width: 180px; min-width: 180px; position: sticky; left: 0; z-index: 11; }
.schedule-table th.today { color: var(--primary); }
.schedule-table td { border-bottom: 1px solid var(--border); padding: 0; vertical-align: top; height: 60px; position: relative; }
.schedule-table td:first-child {
  position: sticky; left: 0; z-index: 5; background: var(--surface); padding: 8px 12px 8px 16px;
  border-right: 1px solid var(--border);
}
.resource-cell { display: flex; align-items: center; gap: 8px; }
.resource-avatar {
  width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: #fff; flex-shrink: 0;
}
.resource-info { min-width: 0; }
.resource-name { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resource-role { font-size: 11px; color: var(--text-tertiary); }
.team-divider td { background: var(--bg); padding: 6px 16px !important; height: auto !important; }
.team-divider td:first-child { background: var(--bg); }
.team-label { font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--text-tertiary); letter-spacing: .5px; }

.booking-cell { padding: 2px; min-height: 56px; cursor: pointer; }
.booking-cell:hover { background: var(--primary-light); }
.booking-block {
  padding: 3px 6px; border-radius: 4px; font-size: 11px; margin-bottom: 1px;
  cursor: pointer; transition: opacity .15s; line-height: 1.3; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.booking-block:hover { opacity: .85; }
.booking-block.tentative { opacity: .5; border: 1.5px dashed; }
.booking-hours { font-weight: 600; }
.booking-project { font-weight: 400; }

.day-total {
  position: absolute; bottom: 1px; right: 4px; font-size: 10px; color: var(--text-tertiary); font-weight: 500;
}
.day-total.overbooked { color: var(--danger); font-weight: 600; }

/* === TIMESHEET === */
.timesheet-container { flex: 1; overflow: auto; padding: 24px; }
.ts-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.ts-table th { padding: 10px 12px; font-size: 12px; font-weight: 600; color: var(--text-secondary); text-align: center; border-bottom: 2px solid var(--border); background: var(--bg); }
.ts-table th:first-child { text-align: left; padding-left: 16px; }
.ts-table td { padding: 8px 12px; border-bottom: 1px solid var(--border); text-align: center; }
.ts-table td:first-child { text-align: left; font-weight: 500; }
.ts-input {
  width: 60px; padding: 5px 4px; text-align: center; border: 1px solid var(--border); border-radius: 4px;
  font-size: 13px; font-family: var(--font); outline: none;
}
.ts-input:focus { border-color: var(--primary); background: var(--primary-light); }
.ts-row-total { font-weight: 600; color: var(--primary); }
.ts-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.ts-add-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; }

/* === REPORTS === */
.report-container { flex: 1; overflow: auto; padding: 24px; }
.report-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.report-card {
  background: var(--surface); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
}
.report-card-label { font-size: 12px; color: var(--text-secondary); margin-bottom: 4px; }
.report-card-value { font-size: 24px; font-weight: 700; }
.report-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.report-table th { padding: 10px 14px; font-size: 12px; font-weight: 600; color: var(--text-secondary); text-align: left; border-bottom: 2px solid var(--border); background: var(--bg); }
.report-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 13px; }
.util-bar { height: 6px; border-radius: 3px; background: var(--border); overflow: hidden; min-width: 120px; }
.util-bar-fill { height: 100%; border-radius: 3px; transition: width .3s; }

/* === RESOURCE / PROJECT LIST === */
.resource-list, .project-list { padding: 24px; }
#clients-projects-container { padding: 24px; overflow-y: auto; flex: 1; }
.manage-section { margin-bottom: 32px; }
.section-title { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--primary); display: inline-block; }
.team-heading { font-size: 14px; font-weight: 600; color: var(--text-secondary); margin: 16px 0 12px; }
.empty-hint { color: var(--text-tertiary); font-size: 13px; padding: 24px 0; text-align: center; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.card {
  background: var(--surface); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
  border-left: 4px solid var(--primary); transition: box-shadow .15s;
}
.card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.card-title { font-size: 15px; font-weight: 600; }
.card-meta { font-size: 12px; color: var(--text-secondary); }
.card-actions { display: flex; gap: 4px; }

/* === MODAL === */
.modal-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.4); z-index: 100; align-items: center; justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--surface); border-radius: 12px; width: 480px; max-width: 90vw; max-height: 80vh;
  overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.15); display: flex; flex-direction: column;
}
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-header h2 { font-size: 16px; font-weight: 600; }
.modal-close { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text-secondary); padding: 4px 8px; border-radius: 4px; }
.modal-close:hover { background: var(--bg); }
.modal-body { padding: 20px; overflow-y: auto; flex: 1; }
.modal-footer { padding: 12px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }

/* Weekend column styling */
.schedule-table th.weekend, .booking-cell.weekend { background: #FAFAFE; }

/* Color dot for project */
.color-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9CA3AF; }

/* === AUTH PAGE — split-panel layout === */
.auth-page {
  display: flex; min-height: 100vh; background: var(--bg);
}
.auth-page.hidden { display: none; }

/* Left branding panel — mirrors sidebar aesthetic */
.auth-brand {
  width: 44%; min-width: 380px; background: var(--sidebar-bg);
  display: flex; align-items: center; justify-content: center;
  padding: 48px; position: relative; overflow: hidden;
}
.auth-brand::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(79,70,229,.25), transparent),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(139,92,246,.18), transparent);
  pointer-events: none;
}
.auth-brand-inner { position: relative; z-index: 1; max-width: 400px; }
.auth-brand-logo {
  display: flex; align-items: center; gap: 10px; margin-bottom: 40px;
  font-size: 15px; font-weight: 600; color: rgba(255,255,255,.7);
}
.auth-brand-title {
  font-size: 32px; font-weight: 700; color: #fff; line-height: 1.3; margin-bottom: 14px;
  letter-spacing: -.3px;
}
.auth-brand-desc {
  font-size: 15px; color: rgba(255,255,255,.55); line-height: 1.6; margin-bottom: 40px;
}

.auth-features { display: flex; flex-direction: column; gap: 20px; }
.auth-feature {
  display: flex; gap: 14px; align-items: flex-start;
  color: rgba(255,255,255,.65);
}
.auth-feature svg { flex-shrink: 0; margin-top: 2px; }
.auth-feature-title { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.85); margin-bottom: 2px; }
.auth-feature-desc { font-size: 12px; color: rgba(255,255,255,.45); line-height: 1.4; }

/* Right form panel */
.auth-form-panel {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 40px; background: var(--bg);
}
.auth-card {
  width: 400px; max-width: 100%;
}
.auth-card-header { margin-bottom: 28px; }
.auth-card-header h1 { font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.auth-card-header p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* Auth views — separate pages for login / register */
.auth-view { display: none; }
.auth-view.active { display: block; }

.auth-form { display: block; }

/* Switch link between login / register */
.auth-switch {
  text-align: center; margin-top: 24px; font-size: 13px; color: var(--text-secondary);
}
.auth-switch a {
  color: var(--primary); font-weight: 600; text-decoration: none;
  transition: color .15s;
}
.auth-switch a:hover { color: var(--primary-hover); text-decoration: underline; }

/* Field note */
.auth-field-note {
  font-size: 11px; color: var(--text-tertiary); margin: -8px 0 14px;
  padding-left: 2px;
}

/* Optional label tag */
.label-optional {
  font-size: 11px; font-weight: 400; color: var(--text-tertiary);
  margin-left: 4px;
}

/* Input with icon */
.input-with-icon { position: relative; }
.input-with-icon .text-input { padding-left: 38px; }
.input-icon {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  color: var(--text-tertiary); pointer-events: none;
}

/* Auth form inputs — slightly larger */
.auth-form .text-input {
  padding: 10px 12px; font-size: 14px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color .2s, box-shadow .2s;
}
.auth-form .input-with-icon .text-input { padding-left: 38px; }
.auth-form .text-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.auth-form .form-group { margin-bottom: 16px; }
.auth-form .form-group label {
  font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 6px;
}

.btn-block {
  width: 100%; justify-content: center; padding: 11px; font-size: 14px;
  margin-top: 8px; border-radius: 8px; font-weight: 600;
  box-shadow: 0 1px 2px rgba(79,70,229,.3);
  transition: background .15s, box-shadow .15s, transform .1s;
}
.btn-block:hover { box-shadow: 0 4px 12px rgba(79,70,229,.25); }
.btn-block:active { transform: scale(.99); }

.auth-hint {
  font-size: 12px; color: var(--text-tertiary); text-align: center;
  margin-top: 16px; padding: 10px 14px;
  background: var(--primary-light); border-radius: 8px;
  border: 1px solid rgba(79,70,229,.08);
}
.auth-error {
  color: var(--danger); font-size: 13px; text-align: center; margin-top: 12px;
  min-height: 20px;
}

.auth-footer {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border);
  font-size: 11px; color: var(--text-tertiary);
}
.auth-footer-dot {
  width: 3px; height: 3px; border-radius: 50%; background: var(--text-tertiary);
}

/* Responsive: stack panels on narrow screens */
@media (max-width: 840px) {
  .auth-page { flex-direction: column; }
  .auth-brand {
    width: 100%; min-width: auto; padding: 32px 24px;
    min-height: auto;
  }
  .auth-brand-title { font-size: 24px; }
  .auth-features { display: none; }
  .auth-form-panel { padding: 24px; }
}

/* === SIDEBAR FOOTER === */
.sidebar-footer { padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.08); }
.user-info { font-size: 12px; color: #C4B5FD; margin-bottom: 8px; line-height: 1.5; }
.user-info strong { color: #fff; font-size: 13px; }
.sidebar-enterprise { font-size: 11px; color: #A78BFA; margin-top: 6px; padding: 4px 8px; background: rgba(255,255,255,.06); border-radius: 4px; }

/* === ENTERPRISE & SETTINGS === */
.enterprise-container, .settings-container { padding: 24px; max-width: 800px; }
.enterprise-setup { display: flex; gap: 20px; flex-wrap: wrap; }
.enterprise-setup .section-card { flex: 1; min-width: 280px; }
.section-card {
  background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.section-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }

/* Member card with permissions */
.member-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 16px; margin-bottom: 10px;
  transition: box-shadow .15s;
}
.member-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.member-card-header {
  display: flex; align-items: center; justify-content: space-between;
}
.member-info { display: flex; flex-direction: column; gap: 2px; }
.member-name { font-size: 14px; font-weight: 600; }
.member-contact { font-size: 12px; color: var(--text-secondary); }
.member-actions { display: flex; align-items: center; gap: 8px; }

/* Permission toggles row */
.member-perms {
  display: flex; gap: 16px; margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--border); flex-wrap: wrap;
}
.perm-toggle {
  display: flex; align-items: center; gap: 6px; cursor: pointer;
  font-size: 12px; color: var(--text-secondary); user-select: none;
}
.perm-toggle input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer;
}
.perm-label { font-weight: 500; }
.member-perms-note {
  font-size: 11px; color: var(--text-tertiary); margin-top: 6px;
  font-style: italic;
}

/* Legacy member-row (keep for requests) */
.member-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px solid var(--border);
}
.member-row:last-child { border-bottom: none; }
.member-meta { font-size: 12px; color: var(--text-secondary); }
.role-badge {
  display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600;
}
.role-owner { background: #FEF3C7; color: #92400E; }
.role-admin { background: #EDE9FE; color: #5B21B6; }
.role-member { background: #E0F2FE; color: #0369A1; }
.request-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.request-row:last-child { border-bottom: none; }

/* === HOLIDAY MARKERS === */
.holiday-marker {
  font-size: 10px; padding: 1px 4px; border-radius: 3px; display: inline-block;
  margin-top: 2px; line-height: 1.2;
}
.holiday-marker.holiday { background: #FEE2E2; color: #991B1B; }
.holiday-marker.workday { background: #FEF3C7; color: #92400E; }
.schedule-table th .holiday-marker { display: block; margin-top: 2px; }

/* Toast notification */
.toast {
  position: fixed; bottom: 24px; right: 24px; padding: 12px 20px;
  background: #1E1B3A; color: #fff; border-radius: 8px; font-size: 13px;
  box-shadow: 0 8px 24px rgba(0,0,0,.2); z-index: 200; transition: opacity .3s;
}
.toast.success { background: #059669; }
.toast.error { background: #DC2626; }

/* === BOOKING/TIME-OFF MODAL (ResourceGuru-style) === */
.bk-modal { width: 520px; max-width: 95vw; }
.bk-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin: -20px -20px 20px; padding: 0 20px; }
.bk-tab {
  padding: 12px 20px; font-size: 14px; font-weight: 500; cursor: pointer;
  color: var(--text-secondary); border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: all .15s; background: none; border-top: none; border-left: none; border-right: none;
  font-family: var(--font);
}
.bk-tab:hover { color: var(--text); }
.bk-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.bk-tab-content { display: none; }
.bk-tab-content.active { display: block; }

/* Form field with icon */
.bk-field { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.bk-field-icon {
  width: 20px; height: 20px; flex-shrink: 0; margin-top: 8px;
  color: var(--text-tertiary);
}
.bk-field-body { flex: 1; min-width: 0; }
.bk-field-label { font-size: 11px; font-weight: 500; color: var(--text-secondary); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .3px; }

/* Time mode toggle */
.bk-time-toggle { display: flex; gap: 0; margin-bottom: 12px; }
.bk-time-btn {
  display: flex; align-items: center; gap: 6px; padding: 7px 16px;
  border: 1px solid var(--border); font-size: 13px; font-weight: 500;
  cursor: pointer; background: var(--surface); color: var(--text-secondary);
  font-family: var(--font); transition: all .15s;
}
.bk-time-btn:first-child { border-radius: 6px 0 0 6px; }
.bk-time-btn:last-child { border-radius: 0 6px 6px 0; border-left: none; }
.bk-time-btn.active { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }
.bk-time-btn.active + .bk-time-btn { border-left-color: var(--primary); }

/* Inline date range */
.bk-date-row { display: flex; gap: 10px; align-items: center; }
.bk-date-row label { font-size: 12px; color: var(--text-secondary); font-weight: 500; white-space: nowrap; }
.bk-date-row input[type="date"] { flex: 1; min-width: 0; }

/* Hours / Mins row */
.bk-hours-row { display: flex; gap: 10px; margin-bottom: 12px; }
.bk-hours-group { display: flex; flex-direction: column; gap: 4px; }
.bk-hours-group label { font-size: 11px; color: var(--text-secondary); font-weight: 500; }
.bk-hours-group input { width: 80px; }

/* Total summary */
.bk-total { font-size: 13px; color: var(--text-secondary); padding: 8px 0; border-top: 1px solid var(--border); margin-top: 4px; }

/* Toggle switch */
.bk-toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.bk-toggle-track {
  width: 36px; height: 20px; border-radius: 10px; background: var(--border);
  position: relative; transition: background .2s; flex-shrink: 0;
}
.bk-toggle-track::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%; background: #fff;
  transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.bk-toggle input { display: none; }
.bk-toggle input:checked + .bk-toggle-track { background: var(--primary); }
.bk-toggle input:checked + .bk-toggle-track::after { transform: translateX(16px); }
.bk-toggle-label { font-size: 13px; color: var(--text); font-weight: 500; }

/* Separator */
.bk-separator { height: 1px; background: var(--border); margin: 16px -20px; }

/* Project/Client select with color indicator */
.bk-select-wrapper { position: relative; }
.bk-select-wrapper select { width: 100%; padding-right: 30px; }

/* Leave type pills */
.bk-leave-types { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.bk-leave-type {
  padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 500;
  border: 1px solid var(--border); cursor: pointer; background: var(--surface);
  color: var(--text-secondary); transition: all .15s; font-family: var(--font);
}
.bk-leave-type:hover { border-color: var(--text-tertiary); }
.bk-leave-type.active { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }
.bk-leave-type.sick.active { background: #FEF3C7; color: #92400E; border-color: #F59E0B; }
.bk-leave-type.personal.active { background: #E0F2FE; color: #0369A1; border-color: #0EA5E9; }
.bk-leave-type.other.active { background: #F3F4F6; color: #4B5563; border-color: #9CA3AF; }

/* Leave block on schedule */
.leave-block { background: #FEE2E2 !important; color: #991B1B !important; border-left: 3px solid #EF4444 !important; font-size: 11px; }
.leave-block.sick { background: #FEF3C7 !important; color: #92400E !important; border-left-color: #F59E0B !important; }
.leave-block.personal { background: #E0F2FE !important; color: #0369A1 !important; border-left-color: #0EA5E9 !important; }

/* Delete button in modal footer */
.bk-footer-left { margin-right: auto; }

/* Wider modal override */
.modal.bk-modal { width: 520px; }

/* === ACCOUNT PAGE === */
.account-container { padding: 24px; max-width: 600px; }

/* === THEME COLOR PICKER === */
.theme-palette { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.theme-swatch {
  width: 48px; height: 48px; border-radius: 10px; cursor: pointer;
  border: 3px solid transparent; transition: all .15s; position: relative;
}
.theme-swatch:hover { transform: scale(1.1); }
.theme-swatch.active { border-color: var(--text); box-shadow: 0 0 0 2px var(--surface); }
.theme-swatch .check-icon {
  display: none; position: absolute; inset: 0; align-items: center; justify-content: center;
  color: #fff; font-size: 18px; font-weight: bold;
}
.theme-swatch.active .check-icon { display: flex; }
.theme-label { font-size: 11px; text-align: center; margin-top: 3px; color: var(--text-secondary); }
.theme-option { display: flex; flex-direction: column; align-items: center; }

/* === DYNAMIC THEME === */
.app.theme-warm-grey { --sidebar-bg: #44403C; --primary: #78716C; --primary-hover: #57534E; --primary-light: #F5F5F4; }
.app.theme-cool-grey { --sidebar-bg: #374151; --primary: #6B7280; --primary-hover: #4B5563; --primary-light: #F3F4F6; }
.app.theme-sage { --sidebar-bg: #3D4F3D; --primary: #6B8E6B; --primary-hover: #567A56; --primary-light: #F0F5F0; }
.app.theme-dusty-rose { --sidebar-bg: #5C3D4A; --primary: #B07D8E; --primary-hover: #9A6878; --primary-light: #FDF2F5; }
.app.theme-slate-blue { --sidebar-bg: #334155; --primary: #64748B; --primary-hover: #475569; --primary-light: #F1F5F9; }
.app.theme-soft-teal { --sidebar-bg: #2D4A4A; --primary: #5F9EA0; --primary-hover: #4A8486; --primary-light: #F0F7F7; }
.app.theme-warm-sand { --sidebar-bg: #5C4F3D; --primary: #B8A080; --primary-hover: #A08A68; --primary-light: #FAF7F2; }
.app.theme-lavender { --sidebar-bg: #433B60; --primary: #8B7FB5; --primary-hover: #7468A0; --primary-light: #F5F3FA; }
.app.theme-ocean { --sidebar-bg: #1E3A5F; --primary: #4682B4; --primary-hover: #3A6D99; --primary-light: #EEF4FA; }
.app.theme-forest { --sidebar-bg: #2B3D2B; --primary: #5C8A5C; --primary-hover: #4A724A; --primary-light: #EFF5EF; }
.app.theme-clay { --sidebar-bg: #5D3E32; --primary: #C08060; --primary-hover: #A86A4A; --primary-light: #FBF4F0; }
.app.theme-midnight { --sidebar-bg: #1A1A2E; --primary: #4A4A8A; --primary-hover: #3A3A74; --primary-light: #F0F0F8; }
