﻿/* =============================================================
   WorkPulse — Design System
   Primary: #e69829  |  Dark: #102b45
   Bootstrap 5 + Bootstrap Icons overlay
   ============================================================= */

/* ── 1. CSS Variables ─────────────────────────────────────── */
:root {
  --wp-primary:       #e69829;
  --wp-primary-hover: #cf881f;
  --wp-primary-soft:  rgba(230,152,41,.12);
  --wp-dark:          #102b45;
  --wp-dark-mid:      #1a3d5a;
  --sidebar-w:        240px;
  --radius:           8px;
  --shadow-sm:        0 1px 4px rgba(16,43,69,.07);
  --shadow-md:        0 4px 16px rgba(16,43,69,.12);
  --shadow-lg:        0 8px 32px rgba(16,43,69,.16);
  --border-light:     #e0e6ed;
  --bg-page:          #f8f9fc;
  --bg-white:         #fff;
  --text-dark:        #212529;
  --text-muted:       #6c757d;
}

/* ── 1b. Dark Mode ────────────────────────────────────────── */
[data-theme="dark"] {
  --bg-page:      #0f172a;
  --bg-white:     #1e293b;
  --text-dark:    #e2e8f0;
  --text-muted:   #94a3b8;
  --border-light: #334155;
  --shadow-sm:    0 1px 4px rgba(0,0,0,.35);
  --shadow-md:    0 4px 16px rgba(0,0,0,.4);
  --shadow-lg:    0 8px 32px rgba(0,0,0,.5);
}
[data-theme="dark"] .wp-topbar,
[data-theme="dark"] .auth-card,
[data-theme="dark"] .wp-card,
[data-theme="dark"] .wp-stat-card,
[data-theme="dark"] .modal-content,
[data-theme="dark"] .dropdown-menu {
  background: var(--bg-white);
  border-color: var(--border-light);
  color: var(--text-dark);
}
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-theme="dark"] .input-group-text {
  background: #0f172a;
  border-color: var(--border-light);
  color: var(--text-dark);
}
[data-theme="dark"] .form-control::placeholder { color: #64748b; }
[data-theme="dark"] .table { color: var(--text-dark); }
[data-theme="dark"] .table thead th { border-color: var(--border-light); color: var(--text-muted); background: #0f172a; }
[data-theme="dark"] .table tbody tr { border-color: var(--border-light); }
[data-theme="dark"] .table tbody tr:hover { background: rgba(255,255,255,.04); }
[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-footer { border-color: var(--border-light); }
[data-theme="dark"] .modal-title { color: var(--text-dark); }
[data-theme="dark"] .alert-info    { background: #1e3a5f; border-color: #2a4f7a; color: #93c5fd; }
[data-theme="dark"] .alert-success { background: #14532d; border-color: #166534; color: #86efac; }
[data-theme="dark"] .alert-warning { background: #451a03; border-color: #78350f; color: #fde68a; }
[data-theme="dark"] .alert-danger  { background: #450a0a; border-color: #7f1d1d; color: #fca5a5; }
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] .fw-bold,
[data-theme="dark"] .fw-semibold { color: var(--text-dark); }
[data-theme="dark"] .text-muted { color: var(--text-muted) !important; }
[data-theme="dark"] .nav-section-label { color: #475569 !important; }
[data-theme="dark"] .wp-topbar h1 { color: var(--text-dark); }
[data-theme="dark"] .btn-outline-secondary { color: var(--text-muted); border-color: var(--border-light); }
[data-theme="dark"] .btn-outline-secondary:hover { background: rgba(255,255,255,.08); color: var(--text-dark); }
[data-theme="dark"] .progress { background: #334155; }
[data-theme="dark"] .badge.bg-light { background: #334155 !important; color: var(--text-muted) !important; }
[data-theme="dark"] .list-group-item { background: var(--bg-white); border-color: var(--border-light); color: var(--text-dark); }
[data-theme="dark"] .card { background: var(--bg-white); border-color: var(--border-light); }

/* Dark mode toggle button */
.dark-toggle {
  background: none; border: none; cursor: pointer; padding: 6px 8px;
  color: rgba(255,255,255,.6); border-radius: 6px; transition: all .15s;
  font-size: 1rem; line-height: 1;
}
.dark-toggle:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ── 2. Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-page);
  color: var(--text-dark);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

/* ── 3. App Layout ────────────────────────────────────────── */
.wp-main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  background: var(--bg-page);
}
.wp-topbar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  gap: 12px;
}
.wp-topbar-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--wp-dark);
  margin: 0;
}
.wp-content { padding: 24px; }

/* ── 4. Sidebar ───────────────────────────────────────────── */
.wp-sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--wp-dark);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0; top: 0; bottom: 0;
  z-index: 100;
  overflow-y: auto;
}
.wp-sidebar::-webkit-scrollbar { width: 4px; }
.wp-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 2px; }

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 16px 16px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.sidebar-brand .brand-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--wp-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.sidebar-brand .brand-name  { font-size: .95rem; font-weight: 700; color: #fff; line-height: 1.2; }
.sidebar-brand .brand-company {
  font-size: .72rem; color: rgba(255,255,255,.45);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px;
}

.sidebar-plan {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  font-size: .75rem;
}
.plan-dot  { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.plan-label { color: rgba(255,255,255,.7); font-weight: 600; }
.trial-pill {
  background: rgba(230,152,41,.2); color: var(--wp-primary);
  border-radius: 20px; padding: 1px 8px; font-size: .7rem; font-weight: 700;
}
.plan-upgrade-link { color: var(--wp-primary); text-decoration: none; font-size: .9rem; }
.plan-upgrade-link:hover { color: #f0a830; }

.sidebar-nav { flex: 1; padding: 12px 0; overflow-y: auto; }
.nav-section-label {
  font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: rgba(255,255,255,.3); padding: 12px 16px 4px;
}
.wp-sidebar .nav-link {
  display: flex; align-items: center; gap: 10px; padding: 8px 16px;
  color: rgba(255,255,255,.6); text-decoration: none; font-size: .875rem;
  transition: all .15s; border-radius: 0;
}
.wp-sidebar .nav-link i   { font-size: 1rem; flex-shrink: 0; width: 18px; }
.wp-sidebar .nav-link:hover  { background: rgba(255,255,255,.06); color: #fff; }
.wp-sidebar .nav-link.active {
  background: rgba(230,152,41,.15); color: var(--wp-primary);
  border-right: 3px solid var(--wp-primary);
}
.nav-label .badge {
  font-size: .6rem; padding: .15em .4em; vertical-align: middle; margin-left: 4px;
}

.sidebar-user {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  border-top: 1px solid rgba(255,255,255,.07); margin-top: auto;
}
.user-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.user-name {
  font-size: .825rem; font-weight: 600; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px;
}
.user-role  { font-size: .7rem; color: rgba(255,255,255,.4); }
.logout-btn { color: rgba(255,255,255,.4); text-decoration: none; font-size: 1rem; margin-left: auto; }
.logout-btn:hover { color: #e74c3c; }

/* ── 5. Buttons ───────────────────────────────────────────── */
.wp-btn-primary {
  background: var(--wp-primary); color: #fff;
  border: none; border-radius: var(--radius); padding: 8px 20px;
  font-weight: 600; font-size: .875rem; cursor: pointer;
  transition: background .2s; display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none; line-height: 1.4;
}
.wp-btn-primary:hover  { background: var(--wp-primary-hover); color: #fff; }
.wp-btn-primary:focus  { outline: none; box-shadow: 0 0 0 3px rgba(230,152,41,.3); }

.wp-btn-outline {
  border: 1.5px solid var(--border-light); background: #fff;
  border-radius: var(--radius); padding: 7px 18px;
  font-weight: 600; color: var(--wp-dark); cursor: pointer;
  transition: all .2s; display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none; font-size: .875rem; line-height: 1.4;
}
.wp-btn-outline:hover  { border-color: var(--wp-primary); color: var(--wp-primary); }
.wp-btn-outline:focus  { outline: none; box-shadow: 0 0 0 3px rgba(230,152,41,.2); }

.btn-xs { padding: .15rem .4rem; font-size: .75rem; }

/* ── 6. Form Overrides (Bootstrap 5 theme) ────────────────── */
.form-label {
  font-weight: 600; font-size: .85rem; color: var(--wp-dark);
  margin-bottom: .35rem;
}
.form-control,
.form-select {
  border-radius: var(--radius);
  border: 1.5px solid var(--border-light);
  font-size: .9rem;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus,
.form-select:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="time"]:focus,
textarea:focus {
  border-color: var(--wp-primary) !important;
  box-shadow: 0 0 0 3px rgba(230,152,41,.15) !important;
  outline: none;
}

/* Day-of-week checkbox chips */
.day-check {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-page); border: 1.5px solid var(--border-light);
  border-radius: var(--radius); padding: 6px 14px; cursor: pointer;
  font-size: .875rem; transition: all .2s;
}
.day-check:has(input:checked) {
  background: rgba(230,152,41,.1); border-color: var(--wp-primary);
  color: var(--wp-dark); font-weight: 600;
}
.day-check input { accent-color: var(--wp-primary); }

/* ── 7. Stat Cards ────────────────────────────────────────── */
.wp-stat-card {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 16px;
}
.stat-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.stat-value { font-size: 1.75rem; font-weight: 700; color: var(--wp-dark); line-height: 1.1; }
.stat-label { font-size: .8rem; color: var(--text-muted); margin-top: 3px; }

/* ── 8. Trial Banner ──────────────────────────────────────── */
.trial-banner {
  background: linear-gradient(135deg, rgba(230,152,41,.1), rgba(230,152,41,.05));
  border: 1px solid rgba(230,152,41,.3);
  border-radius: 10px; padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px; font-size: .875rem;
}
.trial-banner i { color: var(--wp-primary); font-size: 1.1rem; }

/* ── 9. Nav Tabs override ─────────────────────────────────── */
.nav-tabs .nav-link {
  color: var(--text-muted); border-radius: 8px 8px 0 0;
}
.nav-tabs .nav-link.active {
  color: var(--wp-dark); font-weight: 600; border-bottom-color: var(--bg-white);
}

/* ── 10. Pagination override ──────────────────────────────── */
.pagination .page-link { color: var(--wp-dark); }
.pagination .page-item.active .page-link {
  background: var(--wp-primary); border-color: var(--wp-primary);
}

/* ── 11. Employee Avatar ──────────────────────────────────── */
.emp-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; color: #fff; flex-shrink: 0;
}

/* ── 12. Gate Wall (upgrade prompt full page) ─────────────── */
.gate-wall {
  text-align: center; padding: 80px 20px;
  max-width: 480px; margin: 0 auto;
}
.gate-wall .gate-icon {
  font-size: 3rem; color: #ccc; margin-bottom: 16px;
}
.gate-wall h3 { font-weight: 700; margin-bottom: 8px; }

/* ── 13. Usage Bar (Billing) ──────────────────────────────── */
.usage-bar  { height: 8px; border-radius: 4px; background: #e9ecef; margin-top: 6px; }
.usage-fill { height: 100%; border-radius: 4px; transition: width .3s; }

/* ── 14. Plan Cards (Billing) ─────────────────────────────── */
.plan-card {
  border-radius: 14px; border: 2px solid var(--border-light);
  padding: 28px 24px; height: 100%;
  transition: all .2s; position: relative; background: var(--bg-white);
}
.plan-card.popular      { border-color: var(--wp-primary); }
.plan-card.current-plan { border-color: #2ecc71; }
.popular-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--wp-primary); color: #fff;
  border-radius: 20px; padding: 3px 14px; font-size: .75rem; font-weight: 700; white-space: nowrap;
}
.current-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: #2ecc71; color: #fff;
  border-radius: 20px; padding: 3px 14px; font-size: .75rem; font-weight: 700; white-space: nowrap;
}
.plan-price       { font-size: 2rem; font-weight: 700; }
.plan-price small { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.plan-features    { list-style: none; padding: 0; margin: 0; }
.plan-features li { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; font-size: .875rem; }
.plan-features li i { color: #2ecc71; flex-shrink: 0; margin-top: 2px; }

/* ── 15. Department Card ──────────────────────────────────── */
.dept-card {
  background: var(--bg-white); border-radius: 12px; padding: 20px;
  box-shadow: var(--shadow-sm); border: 1px solid #f0f0f0;
  transition: box-shadow .2s;
}
.dept-card:hover { box-shadow: var(--shadow-md); }
.dept-name { font-size: 1rem; font-weight: 700; color: var(--wp-dark); }
.dept-head { font-size: .8rem; color: var(--text-muted); margin-top: 2px; }
.dept-desc {
  font-size: .8rem; color: var(--text-muted); margin: 8px 0; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.emp-badge {
  background: rgba(230,152,41,.1); color: var(--wp-primary);
  border-radius: 20px; padding: 3px 10px; font-size: .78rem; font-weight: 700; white-space: nowrap;
}

/* ── 16. Attendance Pill ──────────────────────────────────── */
.att-pill {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1.5px solid; border-radius: 20px; padding: 4px 12px;
  font-size: .8rem; font-weight: 600; background: var(--bg-white);
}
.form-select.att-select { font-size: .8rem; padding: 4px 8px; }

/* ── 17. Leave Policy — Color Swatch ─────────────────────── */
.color-swatch {
  width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
  border: 3px solid transparent; transition: transform .15s, border-color .15s;
}
.color-swatch:hover   { transform: scale(1.15); }
.color-swatch.selected { border-color: var(--wp-dark); transform: scale(1.15); }

/* ── 18. Salary Structure Bar ─────────────────────────────── */
.ss-bar  { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: #e9ecef; }
.ss-seg  { height: 100%; transition: width .3s; }

/* ── 19. Announcement Card ────────────────────────────────── */
.ann-card     { background: var(--bg-white); border-radius: 12px; box-shadow: 0 1px 8px rgba(0,0,0,.07); overflow: hidden; }
.ann-pinned   { border-left: 4px solid var(--wp-primary); }
.ann-archived { opacity: .65; }
.ann-header   { display: flex; align-items: flex-start; justify-content: space-between; padding: 16px 20px 8px; }
.ann-title    { font-size: 1rem; font-weight: 700; color: var(--wp-dark); }
.ann-meta     { font-size: .8rem; color: var(--text-muted); }
.ann-body     { padding: 0 20px 16px; color: #444; line-height: 1.6; font-size: .9rem; white-space: pre-line; }

/* ── 20. Notification List ────────────────────────────────── */
.notif-list { display: flex; flex-direction: column; gap: 0; }
.notif-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 16px; border-bottom: 1px solid #f0f0f0;
  background: var(--bg-white); transition: background .15s;
}
.notif-item:first-child { border-radius: 12px 12px 0 0; }
.notif-item:last-child  { border-radius: 0 0 12px 12px; border-bottom: 0; }
.notif-unread { background: #fffbf2; }
.notif-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.notif-content { flex: 1; min-width: 0; }
.notif-title   { font-weight: 600; font-size: .9rem; color: var(--text-dark); }
.notif-body    { font-size: .82rem; color: var(--text-muted); margin-top: 2px; }
.notif-emp     { font-size: .78rem; color: var(--text-muted); margin-top: 3px; }
.notif-time    { font-size: .75rem; color: #adb5bd; margin-top: 4px; }
.notif-actions { display: flex; gap: 4px; align-items: center; flex-shrink: 0; }

/* ── 21. Compliance Cards ─────────────────────────────────── */
.comp-card {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--bg-white); border-radius: 12px;
  box-shadow: 0 1px 8px rgba(0,0,0,.08); padding: 20px;
  cursor: pointer; transition: box-shadow .2s, transform .1s;
}
.comp-card:hover          { box-shadow: 0 4px 20px rgba(0,0,0,.12); transform: translateY(-2px); }
.comp-card--locked        { opacity: .7; cursor: default; }
.comp-card--locked:hover  { transform: none; box-shadow: 0 1px 8px rgba(0,0,0,.08); }
.comp-icon {
  width: 56px; height: 56px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ── 22. Auth — Split-Panel Pages (login / register) ─────── */
.wp-auth-body {
  min-height: 100vh; display: flex;
  font-family: 'Segoe UI', system-ui, sans-serif;
}
.wp-left {
  width: 42%; background: var(--wp-dark);
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  padding: 48px; color: #fff; min-height: 100%;
}
.wp-left .brand { display: flex; align-items: center; gap: 12px; margin-bottom: 40px; }
.wp-left .brand-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--wp-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 700; color: #fff;
}
.wp-left .brand-name { font-size: 1.8rem; font-weight: 700; letter-spacing: -.5px; }
.wp-left .brand-tag  { font-size: .85rem; opacity: .6; margin-top: 2px; }
.wp-left .tagline    { font-size: 1.25rem; font-weight: 600; text-align: center; line-height: 1.5; }
.wp-left .sub-tag    { font-size: .9rem; opacity: .55; text-align: center; margin-top: 12px; }
.wp-left .features   { margin-top: 40px; list-style: none; padding: 0; }
.wp-left .features li { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: .9rem; opacity: .8; }
.wp-left .features li i { color: var(--wp-primary); }
.trial-badge {
  background: rgba(230,152,41,.15); border: 1px solid var(--wp-primary);
  border-radius: 12px; padding: 20px 24px; text-align: center; margin-top: 32px;
}
.trial-badge .days  { font-size: 2.5rem; font-weight: 700; color: var(--wp-primary); }
.trial-badge .label { font-size: .9rem; opacity: .7; margin-top: 4px; }
.trial-features     { margin-top: 24px; list-style: none; text-align: left; padding: 0; }
.trial-features li  { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: .875rem; opacity: .8; }
.trial-features li i { color: var(--wp-primary); }

.wp-right {
  width: 58%; display: flex; align-items: center; justify-content: center;
  background: var(--bg-page); padding: 48px;
}
.auth-card,
.login-card,
.reg-card {
  width: 100%; max-width: 440px; background: var(--bg-white);
  border-radius: 16px; box-shadow: var(--shadow-lg); padding: 40px;
}
.auth-card h2, .login-card h2, .reg-card h2 {
  font-size: 1.5rem; font-weight: 700; color: var(--wp-dark); margin-bottom: 6px;
}
.auth-card p.sub, .login-card p.sub, .reg-card p.sub {
  color: var(--text-muted); font-size: .9rem; margin-bottom: 28px;
}
.register-link, .login-link {
  text-align: center; margin-top: 20px; font-size: .875rem; color: var(--text-muted);
}
.register-link a, .login-link a {
  color: var(--wp-primary); font-weight: 600; text-decoration: none;
}
.register-link a:hover, .login-link a:hover { text-decoration: underline; }
.divider {
  position: relative; text-align: center; margin: 24px 0;
  color: var(--text-muted); font-size: .8rem;
}
.divider::before, .divider::after {
  content: ''; position: absolute; top: 50%; width: 35%; height: 1px;
  background: #e9ecef;
}
.divider::before { left: 0; }
.divider::after  { right: 0; }
.divider span    { background: var(--bg-white); padding: 0 12px; position: relative; }
.forgot-link     { text-align: right; margin-top: -8px; margin-bottom: 16px; }
.forgot-link a   { font-size: .8rem; color: var(--text-muted); text-decoration: none; }
.forgot-link a:hover { color: var(--wp-primary); text-decoration: underline; }
.terms           { font-size: .75rem; color: var(--text-muted); text-align: center; margin-top: 16px; }

/* ── 23. Onboarding Wizard ────────────────────────────────── */
.onboard-wrapper {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 40px 16px;
  background: var(--bg-page);
}
.onboard-header   { text-align: center; margin-bottom: 32px; }
.ob-brand-icon,
.onboard-wrapper .brand-icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--wp-primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 12px;
}
.ob-brand-name,
.onboard-wrapper .brand-name { font-size: 1.6rem; font-weight: 700; color: var(--wp-dark); }

.steps-bar        { display: flex; align-items: center; gap: 0; margin-bottom: 32px; }
.step-item        { display: flex; align-items: center; gap: 8px; }
.step-circle {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid #dee2e6;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem; color: #adb5bd; background: #fff; transition: all .3s;
}
.step-item.done   .step-circle  { background: var(--wp-primary); border-color: var(--wp-primary); color: #fff; }
.step-item.active .step-circle  { border-color: var(--wp-primary); color: var(--wp-primary); }
.step-label { font-size: .8rem; color: var(--text-muted); }
.step-item.active .step-label,
.step-item.done   .step-label   { color: var(--wp-dark); font-weight: 600; }
.step-line      { flex: 1; height: 2px; background: #dee2e6; margin: 0 8px; min-width: 40px; }
.step-line.done { background: var(--wp-primary); }

.onboard-card {
  background: var(--bg-white); border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 40px; width: 100%; max-width: 580px;
}
.onboard-card h3      { font-size: 1.25rem; font-weight: 700; color: var(--wp-dark); margin-bottom: 6px; }
.onboard-card p.sub   { color: var(--text-muted); font-size: .875rem; margin-bottom: 24px; }

.done-icon {
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(46,204,113,.1);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 24px;
}
.done-icon i { font-size: 2.5rem; color: #2ecc71; }

/* ── 24. Flash Messages ───────────────────────────────────── */
.wp-flash        { border-radius: var(--radius); padding: 10px 16px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; font-size: .875rem; }
.wp-flash-success{ background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.wp-flash-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.wp-flash-warning{ background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.wp-flash-info   { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }

/* ── 25. Performance — Stars & Review ────────────────────── */
.wp-stars .bi-star-fill        { color: #dee2e6; font-size: 1rem; margin-right: 2px; }
.wp-stars .bi-star-fill.filled { color: var(--wp-primary); }
.wp-star-btn {
  font-size: 1.4rem; margin-right: 4px; cursor: pointer;
  color: #dee2e6; transition: color .15s;
}
.wp-star-btn.filled   { color: var(--wp-primary); }
.wp-star-btn:hover,
.wp-star-btn:hover ~ .wp-star-btn { color: #f0c060; }
.wp-stars-input       { display: flex; align-items: center; gap: 2px; }
.cycle-tab {
  display: inline-block; padding: 6px 14px; border-radius: 20px;
  font-size: .85rem; font-weight: 500; color: var(--text-dark);
  background: var(--bg-white); border: 1px solid var(--border-light);
  text-decoration: none; transition: all .15s;
}
.cycle-tab.active      { background: var(--wp-dark); color: #fff; border-color: var(--wp-dark); }
.cycle-tab:hover:not(.active) { background: var(--wp-primary-soft); border-color: var(--wp-primary); }
.nav-tabs-wrap         { display: flex; gap: 8px; flex-wrap: wrap; }
.review-rating-label   { font-size: .75rem; color: var(--text-muted); margin-top: 2px; }

/* ── 26. Goals & OKR ──────────────────────────────────────── */
.goal-card {
  background: var(--bg-white); border-radius: 12px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-light);
  padding: 20px; margin-bottom: 16px; transition: box-shadow .2s;
}
.goal-card:hover { box-shadow: var(--shadow-md); }
.goal-type-badge {
  font-size: .72rem; font-weight: 600; padding: 3px 10px; border-radius: 12px; text-transform: uppercase;
}
.goal-type-individual  { background: #dbeafe; color: #1d4ed8; }
.goal-type-department  { background: #fef3c7; color: #92400e; }
.goal-type-company     { background: #d1fae5; color: #065f46; }
.goal-progress-bar     { height: 8px; border-radius: 4px; background: #e9ecef; overflow: hidden; margin: 8px 0; }
.goal-progress-fill    { height: 100%; border-radius: 4px; background: var(--wp-primary); transition: width .3s; }
.goal-progress-fill.on_track  { background: #2ecc71; }
.goal-progress-fill.at_risk   { background: #f39c12; }
.goal-progress-fill.off_track { background: #e74c3c; }
.goal-progress-fill.completed { background: #2ecc71; }
.kr-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid #f1f3f5; font-size: .85rem;
}
.kr-item:last-child { border-bottom: 0; }
.kr-status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.kr-status-on_track  { background: #2ecc71; }
.kr-status-at_risk   { background: #f39c12; }
.kr-status-off_track { background: #e74c3c; }
.kr-status-completed { background: #6c757d; }
.kr-progress-mini    { flex: 1; height: 5px; border-radius: 3px; background: #e9ecef; overflow: hidden; }
.kr-progress-mini-fill { height: 100%; border-radius: 3px; background: var(--wp-primary); }

/* ── 27. Skill Matrix ─────────────────────────────────────── */
.skill-matrix-wrap  { overflow-x: auto; }
.skill-matrix       { border-collapse: separate; border-spacing: 0; min-width: 600px; }
.skill-matrix th, .skill-matrix td {
  padding: 8px 12px; text-align: center; border: 1px solid var(--border-light);
  font-size: .82rem; white-space: nowrap;
}
.skill-matrix thead th { background: var(--wp-dark); color: #fff; font-weight: 600; }
.skill-matrix thead th:first-child { text-align: left; min-width: 160px; }
.skill-matrix tbody td:first-child { text-align: left; background: #f8f9fc; font-weight: 500; }
.skill-cell          { cursor: pointer; transition: background .15s; }
.skill-cell:hover    { background: var(--wp-primary-soft); }
.skill-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 12px; font-size: .78rem;
  background: var(--wp-primary-soft); color: var(--wp-dark); font-weight: 500;
}
.skill-pill .del-skill { cursor: pointer; color: #adb5bd; }
.skill-pill .del-skill:hover { color: #dc3545; }
.skill-rating-0 { color: #dee2e6; }
.skill-rating-1 { color: #e74c3c; }
.skill-rating-2 { color: #f39c12; }
.skill-rating-3 { color: #f0c060; }
.skill-rating-4 { color: #2ecc71; }
.skill-rating-5 { color: #27ae60; }

/* ── 28. Assets & Training ────────────────────────────────── */
.asset-cat-icon {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.asset-status-available   { color: #2ecc71; }
.asset-status-assigned    { color: var(--wp-primary); }
.asset-status-maintenance { color: #f39c12; }
.asset-status-retired     { color: #adb5bd; }
.training-card {
  background: var(--bg-white); border-radius: 12px; border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm); padding: 20px; transition: box-shadow .2s;
}
.training-card:hover { box-shadow: var(--shadow-md); }
.training-mode-badge {
  font-size: .72rem; font-weight: 600; padding: 3px 10px; border-radius: 12px;
}
.training-mode-online  { background: #dbeafe; color: #1d4ed8; }
.training-mode-offline { background: #d1fae5; color: #065f46; }
.training-mode-hybrid  { background: #fef3c7; color: #92400e; }
.enroll-bar {
  height: 6px; border-radius: 3px; background: #e9ecef; overflow: hidden; margin-top: 8px;
}
.enroll-bar-fill { height: 100%; border-radius: 3px; background: var(--wp-primary); }

/* ── 29. Analytics & Reports ──────────────────────────────── */
.chart-card {
  background: var(--bg-white); border-radius: 12px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-light);
  padding: 20px;
}
.chart-card .chart-title {
  font-weight: 600; font-size: .9rem; color: var(--wp-dark); margin-bottom: 4px;
}
.chart-card .chart-sub {
  font-size: .78rem; color: var(--text-muted); margin-bottom: 16px;
}
.chart-canvas-wrap { position: relative; }
.report-filter-bar {
  background: var(--bg-white); border-radius: 10px; border: 1px solid var(--border-light);
  padding: 14px 18px; margin-bottom: 20px; display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end;
}
.report-filter-bar .form-label { font-size: .8rem; margin-bottom: 4px; }
.report-filter-bar .form-control,
.report-filter-bar .form-select { font-size: .85rem; }
.rb-source-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 20px 16px; border-radius: 12px; border: 2px solid var(--border-light);
  background: var(--bg-white); cursor: pointer; transition: all .15s; text-decoration: none;
  color: var(--text-dark);
}
.rb-source-btn:hover  { border-color: var(--wp-primary); background: var(--wp-primary-soft); color: var(--wp-dark); }
.rb-source-btn.active { border-color: var(--wp-primary); background: var(--wp-primary-soft); }
.rb-source-btn i      { font-size: 1.6rem; color: var(--wp-primary); }
.rb-source-btn span   { font-size: .82rem; font-weight: 600; }
.col-check-item {
  display: flex; align-items: center; gap: 8px; padding: 6px 10px;
  border-radius: 6px; font-size: .85rem; cursor: pointer;
  transition: background .1s;
}
.col-check-item:hover { background: var(--wp-primary-soft); }
.col-check-item input { cursor: pointer; }

/* ── 30. ESS Portal ───────────────────────────────────────── */
.ess-body {
  background: var(--bg-page); min-height: 100vh;
  font-family: 'Segoe UI', system-ui, sans-serif; font-size: 14px;
}
.ess-topnav {
  background: var(--wp-dark); color: #fff;
  display: flex; align-items: center; gap: 0;
  padding: 0 24px; height: 60px; position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.ess-nav-brand        { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.ess-brand-icon       { width: 36px; height: 36px; border-radius: 8px; background: var(--wp-primary);
                        display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; }
.ess-brand-name       { font-weight: 700; font-size: .95rem; line-height: 1.2; }
.ess-brand-tag        { font-size: .68rem; opacity: .55; }
.ess-nav-links        { display: flex; align-items: center; gap: 2px; flex: 1; padding: 0 16px; overflow-x: auto; }
.ess-nav-link {
  display: flex; align-items: center; gap: 6px; padding: 8px 12px;
  color: rgba(255,255,255,.65); text-decoration: none; border-radius: 8px;
  font-size: .84rem; font-weight: 500; white-space: nowrap; transition: all .15s;
}
.ess-nav-link:hover    { color: #fff; background: rgba(255,255,255,.1); }
.ess-nav-link.active   { color: #fff; background: var(--wp-primary); }
.ess-nav-link i        { font-size: 1rem; }
.ess-nav-user          { display: flex; align-items: center; gap: 12px; margin-left: auto; flex-shrink: 0; }
.ess-user-pill         { display: flex; align-items: center; gap: 8px; }
.ess-user-avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--wp-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 700; color: #fff;
}
.ess-user-name  { font-size: .82rem; font-weight: 600; line-height: 1.2; }
.ess-user-code  { font-size: .7rem; opacity: .55; }
.ess-content    { max-width: 1200px; margin: 0 auto; padding: 28px 24px; }
.ess-page-title { font-size: 1.2rem; font-weight: 700; color: var(--wp-dark); margin-bottom: 4px; }
.ess-page-sub   { font-size: .82rem; color: var(--text-muted); margin-bottom: 24px; }
.ess-card {
  background: var(--bg-white); border-radius: 12px; border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm); padding: 20px;
}
.ess-stat {
  background: var(--bg-white); border-radius: 12px; border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm); padding: 18px 20px; text-align: center;
}
.ess-stat-value { font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.ess-stat-label { font-size: .78rem; color: var(--text-muted); margin-top: 4px; }
.ess-leave-type-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid #f1f3f5; font-size: .875rem;
}
.ess-leave-type-row:last-child { border-bottom: 0; }
.ess-leave-bar { flex: 1; height: 6px; border-radius: 3px; background: #e9ecef; overflow: hidden; margin: 0 12px; }
.ess-leave-bar-fill { height: 100%; border-radius: 3px; background: var(--wp-primary); }
.ess-auth-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--wp-dark); padding: 24px;
}
.ess-auth-card {
  background: var(--bg-white); border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: 40px; width: 100%; max-width: 420px;
}
.ess-auth-card .brand { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.ess-auth-card .brand-icon {
  width: 44px; height: 44px; border-radius: 10px; background: var(--wp-primary);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem; color: #fff;
}
.ess-auth-card h2 { font-size: 1.3rem; font-weight: 700; color: var(--wp-dark); margin-bottom: 4px; }
.ess-auth-card p.sub { color: var(--text-muted); font-size: .875rem; margin-bottom: 24px; }
/* ESS bottom nav (mobile) */
.ess-bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--wp-dark); z-index: 200;
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.ess-bottom-nav-inner {
  display: flex; align-items: stretch;
  height: 60px;
}
.ess-btab {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  color: rgba(255,255,255,.55); text-decoration: none;
  font-size: .62rem; font-weight: 500; padding: 4px 0;
  transition: color .15s; border-radius: 0;
  -webkit-tap-highlight-color: transparent;
}
.ess-btab i      { font-size: 1.2rem; line-height: 1; }
.ess-btab:hover  { color: rgba(255,255,255,.85); }
.ess-btab.active { color: var(--wp-primary); }
.ess-btab.active i { color: var(--wp-primary); }

/* Make clock buttons full-width and touch-friendly on mobile */
.ess-clock-action-btn {
  min-height: 64px; font-size: 1.1rem !important;
  font-weight: 700 !important; letter-spacing: .3px;
}

@media (max-width: 768px) {
  .ess-nav-brand .ess-brand-name, .ess-nav-brand .ess-brand-tag { display: none; }
  .ess-nav-links { display: none; }
  .ess-user-pill .ess-user-name, .ess-user-pill .ess-user-code { display: none; }
  .ess-content { padding: 16px; padding-bottom: 80px; }
  .ess-bottom-nav { display: block; }
  .ess-clock-action-btn { width: 100%; border-radius: 16px !important; }
}

/* ── 32. ATS / Recruitment ────────────────────────────────── */
.job-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: box-shadow .18s, border-color .18s;
}
.job-card:hover { box-shadow: var(--shadow-md); border-color: var(--wp-primary); }
.job-card-title { font-size: 1rem; font-weight: 700; color: var(--wp-dark); margin-bottom: 4px; }
.job-card-meta  { font-size: .8rem; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: 8px; }
.job-card-meta i { color: var(--wp-primary); }

.job-status-open     { background: #d1e7dd; color: #0a5c36; }
.job-status-draft    { background: #e2e3e5; color: #41464b; }
.job-status-closed   { background: #f8d7da; color: #842029; }
.job-status-paused   { background: #fff3cd; color: #664d03; }

.pipeline-stage-col { min-width: 200px; }
.pipeline-col-head {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; color: var(--text-muted);
  padding: 6px 10px; border-radius: 4px;
  background: var(--border-light); margin-bottom: 8px;
}
.candidate-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 8px;
  font-size: .85rem;
  cursor: pointer;
  transition: box-shadow .15s, border-color .15s;
}
.candidate-card:hover { box-shadow: var(--shadow-sm); border-color: var(--wp-primary); }
.candidate-name { font-weight: 600; color: var(--wp-dark); margin-bottom: 2px; }
.candidate-sub  { font-size: .76rem; color: var(--text-muted); }

.stage-badge {
  display: inline-block; padding: 2px 9px;
  border-radius: 30px; font-size: .72rem; font-weight: 600;
}
.stage-applied    { background:#dbeafe; color:#1e40af; }
.stage-screening  { background:#fef9c3; color:#713f12; }
.stage-interview  { background:#ede9fe; color:#4c1d95; }
.stage-technical  { background:#fce7f3; color:#831843; }
.stage-final      { background:#d1fae5; color:#065f46; }
.stage-offer      { background:#ffedd5; color:#7c2d12; }
.stage-hired      { background:#dcfce7; color:#14532d; }
.stage-rejected   { background:#fee2e2; color:#7f1d1d; }
.stage-withdrawn  { background:#f3f4f6; color:#374151; }

.interview-card {
  background: var(--bg-white);
  border-left: 4px solid var(--wp-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.interview-time { font-size: .8rem; color: var(--text-muted); }
.interview-type-badge {
  font-size: .72rem; font-weight: 600; padding: 2px 8px;
  border-radius: 30px; background: var(--wp-primary-soft); color: var(--wp-dark);
}

.template-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 14px 18px;
  transition: box-shadow .18s;
}
.template-card:hover { box-shadow: var(--shadow-md); }
.template-type { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }

.offer-preview-wrap {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 760px;
  margin: 0 auto;
  font-size: 13.5px;
  line-height: 1.7;
  box-shadow: var(--shadow-md);
}

.ats-funnel { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.funnel-step {
  text-align: center; padding: 6px 12px;
  background: var(--border-light); border-radius: 4px;
  font-size: .78rem; min-width: 80px; cursor: pointer;
  transition: background .15s, color .15s;
}
.funnel-step.active { background: var(--wp-primary); color: #fff; font-weight: 600; }
.funnel-step:hover:not(.active) { background: var(--wp-primary-soft); }
.funnel-sep { color: var(--text-muted); font-size: .85rem; }

/* ── 31. Responsive ───────────────────────────────────────── */
.sidebar-hamburger {
  display: none;
  position: fixed;
  top: 12px; left: 12px;
  z-index: 110;
  background: var(--wp-dark);
  color: #fff;
  border: none;
  border-radius: 8px;
  width: 40px; height: 40px;
  font-size: 1.3rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 99;
}
.sidebar-overlay.active { display: block; }
@media (max-width: 991px) {
  .sidebar-hamburger { display: flex; }
  .wp-sidebar { transform: translateX(-100%); transition: transform .3s; }
  .wp-sidebar.open { transform: translateX(0); z-index: 100; }
  .wp-main { margin-left: 0; }
  .wp-content { padding: 16px; }
  .wp-topbar { padding-left: 64px; }
}
@media (max-width: 768px) {
  .wp-left { display: none; }
  .wp-right { width: 100%; padding: 32px 24px; }
  .auth-card { padding: 28px 20px; }
  .wp-topbar { padding: 12px 16px 12px 64px; }
}
