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

/* ── 1. CSS Variables - moved to assets/tokens.css ───────────── */

/* ── 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: 'Inter', 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);
  transition: margin-left var(--transition);
}
.wp-main.sidebar-collapsed { margin-left: var(--sidebar-collapsed); }
.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;
  overflow-x: hidden;
  transition: width var(--transition);
}

/* Collapsed sidebar state (icon-only) */
.wp-sidebar.collapsed { width: var(--sidebar-collapsed); }
.wp-sidebar.collapsed .nav-label,
.wp-sidebar.collapsed .brand-info,
.wp-sidebar.collapsed .sidebar-plan,
.wp-sidebar.collapsed .nav-section-label,
.wp-sidebar.collapsed .user-info,
.wp-sidebar.collapsed .sidebar-search { display: none; }
.wp-sidebar.collapsed .sidebar-brand { justify-content: center; padding: 20px 10px 16px; }
.wp-sidebar.collapsed .sidebar-user  { justify-content: center; padding: 14px 10px; }
.wp-sidebar.collapsed .nav-link { justify-content: center; padding: 10px; }
.wp-sidebar.collapsed .dark-toggle,
.wp-sidebar.collapsed .logout-btn    { display: none; }
.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 collapse toggle button */
.sidebar-pin {
  padding: 3px 10px;
  display: flex;
  justify-content: flex-end;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.wp-sidebar.collapsed .sidebar-pin { justify-content: center; }
.sidebar-collapse-btn {
  background: none; border: none;
  color: rgba(255,255,255,.3); cursor: pointer;
  padding: 3px 6px; border-radius: 4px;
  font-size: .78rem; line-height: 1;
  transition: color .15s, background .15s;
}
.sidebar-collapse-btn:hover { background: rgba(255,255,255,.1); color: rgba(255,255,255,.7); }
@media (max-width: 991px) { .sidebar-pin { display: none; } }

.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; }

/* ── 7b. Gradient Stat Card Variants (matches template admin stat-card pattern) ── */
.wp-stat-card { transition: var(--transition); }
.wp-stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* HR KPI gradient cards */
.stat-employees {
  background: linear-gradient(135deg, var(--accent) 0%, #1e4a7a 100%);
  color: #fff; box-shadow: 0 4px 20px rgba(16,43,69,.3); border: none;
}
.stat-employees .stat-icon { background: rgba(255,255,255,.15); color: #fff; }
.stat-employees .stat-value { color: #fff; }
.stat-employees .stat-label { color: rgba(255,255,255,.75); }

.stat-payroll {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--accent); box-shadow: 0 4px 20px rgba(230,152,41,.35); border: none;
}
.stat-payroll .stat-icon { background: rgba(16,43,69,.15); color: var(--accent); }
.stat-payroll .stat-value, .stat-payroll .stat-label { color: var(--accent); }

.stat-leaves {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fff; box-shadow: 0 4px 20px rgba(34,197,94,.3); border: none;
}
.stat-leaves .stat-icon { background: rgba(255,255,255,.2); color: #fff; }
.stat-leaves .stat-value { color: #fff; }
.stat-leaves .stat-label { color: rgba(255,255,255,.8); }

.stat-attendance {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: #fff; box-shadow: 0 4px 20px rgba(139,92,246,.3); border: none;
}
.stat-attendance .stat-icon { background: rgba(255,255,255,.2); color: #fff; }
.stat-attendance .stat-value { color: #fff; }
.stat-attendance .stat-label { color: rgba(255,255,255,.8); }

/* Decorative background icon for gradient cards (template pattern) */
.stat-card-bg {
  position: absolute; right: -1rem; bottom: -1rem;
  font-size: 5rem; opacity: .08; pointer-events: none;
}

/* ── 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, transform .2s;
}
.dept-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.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(-4px); }
.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 — Contained 2-Column Card (login / register / reset) ─────── */
/* Page wrapper: background + center the card. Used by .wp-auth-body and the
   ESS + superadmin auth bodies via their own section classes below. */
.wp-auth-body {
  min-height: 100vh; display: flex;
  align-items: center; justify-content: center;
  padding: 3rem 1rem; background: var(--bg-page);
  font-family: 'Inter', sans-serif;
}
/* The card itself is the flex row container. login/forgot use the body as the
   card wrapper context; the card element is .wp-auth-card. */
.wp-auth-card {
  max-width: 980px; width: 100%; margin: 0 auto;
  display: flex; background: var(--bg-white);
  border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg);
}
.wp-auth-card.wide { max-width: 1040px; }

.wp-left {
  width: 42%; flex-shrink: 0; background: var(--wp-dark);
  display: flex; flex-direction: column; justify-content: center;
  padding: 2.75rem 2.5rem; color: #fff;
}
.wp-left .brand { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.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; flex-shrink: 0;
}
.wp-left .brand-name { font-size: 1.6rem; font-weight: 700; letter-spacing: -.5px; }
.wp-left .brand-tag  { font-size: .85rem; opacity: .6; margin-top: 2px; }
.wp-left .tagline    { font-size: 1.35rem; font-weight: 700; line-height: 1.4; margin-bottom: .5rem; }
.wp-left .sub-tag    { font-size: .9rem; opacity: .6; margin-bottom: 1.25rem; }
.wp-left .features   { margin-top: 1.25rem; 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); flex-shrink: 0; }
.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: 1.5rem;
}
.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: 1.25rem; 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); flex-shrink: 0; }

.wp-right {
  flex: 1; background: var(--bg-white);
  display: flex; align-items: center; justify-content: center;
  padding: 2.75rem 2.5rem;
}
/* Forms sit flush in the right column — no floating-card chrome. */
.auth-card,
.login-card,
.reg-card {
  width: 100%; max-width: 440px; background: transparent;
  border-radius: 0; box-shadow: none; padding: 0;
}
.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; }

/* ── 22b. Auth form fields — matches site "Send Us a Message" form ── */
.wp-right .form-label {
  font-weight: 600; font-size: .875rem; color: #374151; margin-bottom: .35rem;
}
.wp-right .form-control {
  border: 1px solid #d1d5db; border-radius: 8px;
  padding: .6rem .85rem; font-size: .9rem;
  transition: border-color .2s, box-shadow .2s;
}
.wp-right .form-control:focus {
  border-color: var(--wp-primary) !important;
  box-shadow: 0 0 0 3px rgba(230,152,41,.15) !important;
  outline: none;
}
.wp-right .input-group-text {
  background: #f9fafb; border: 1px solid #d1d5db; color: #9ca3af;
  border-radius: 8px 0 0 8px;
}
.wp-right .input-group .form-control {
  border-radius: 0 8px 8px 0;
}
/* Password fields keep an inner eye-toggle button: the wrapper is the input area */
.wp-right .input-group .pwd-wrap {
  position: relative; flex: 1 1 auto; width: 1%;
}
.wp-right .input-group .pwd-wrap .form-control {
  width: 100%; border-radius: 0 8px 8px 0;
}
/* Strength bar sits below the full input-group, not inside it */
.wp-right #pw_strength_bar { margin-top: .5rem; }
[data-theme="dark"] .wp-right .form-control { background: #0f172a; border-color: var(--border-light); color: var(--text-dark); }
[data-theme="dark"] .wp-right .input-group-text { background: #0f172a; border-color: var(--border-light); color: var(--text-muted); }

/* Full-width gradient submit button on auth pages */
.wp-right .wp-btn-primary {
  display: flex; width: 100%; justify-content: center; align-items: center; gap: 6px;
  background: linear-gradient(135deg, var(--wp-primary) 0%, var(--wp-primary-hover) 100%);
  color: #fff; border: none; border-radius: 8px;
  padding: .7rem 1rem; font-weight: 700; font-size: .95rem;
  cursor: pointer; transition: transform .15s, box-shadow .15s, filter .15s;
}
.wp-right .wp-btn-primary:hover {
  color: #fff; filter: brightness(1.03);
  transform: translateY(-2px); box-shadow: 0 6px 18px rgba(230,152,41,.35);
}

/* ── 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, transform .2s;
}
.goal-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.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); transform: translateY(-3px); }
.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: 'Inter', 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 + Super Admin auth — contained 2-column card (shares .wp-left/.wp-right) */
.ess-auth-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--bg-page); padding: 3rem 1rem;
}
.ess-auth-2col {
  max-width: 980px; width: 100%; margin: 0 auto;
  display: flex; background: var(--bg-white);
  border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg);
}
/* Card body sits flush inside the right column (no floating-card chrome). */
.ess-auth-card {
  background: transparent; border-radius: 0; box-shadow: none;
  padding: 0; width: 100%; max-width: 440px;
}
.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; }
@media (max-width: 991px) {
  .ess-auth-2col { flex-direction: column; max-width: 480px; }
}
/* 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; }
}
/* Google OAuth button - no hardcoded colors */
.btn-google {
  border: 1px solid var(--border, #dadce0);
  background: var(--card-bg, #fff);
  color: var(--text-dark, #3c4043);
  padding: .6rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  transition: background .15s, box-shadow .15s;
}
.btn-google:hover { background: var(--bg, #f5f5f5); box-shadow: 0 1px 4px rgba(0,0,0,.15); }
[data-theme="dark"] .btn-google {
  border-color: var(--border);
  background: var(--surface-2, #1e293b);
  color: var(--text, #f1f5f9);
}
.btn-google .google-icon-blue  { fill: #4285F4; }
.btn-google .google-icon-green { fill: #34A853; }
.btn-google .google-icon-amber { fill: #FBBC05; }
.btn-google .google-icon-red   { fill: #EA4335; }

@media (max-width: 991px) {
  .wp-auth-card,
  .wp-auth-card.wide { flex-direction: column; max-width: 480px; }
  .wp-left {
    width: 100%; border-radius: 16px 16px 0 0;
    padding: 2.25rem 2rem;
  }
  .wp-left .tagline { font-size: 1.2rem; }
  .wp-right { width: 100%; padding: 2.25rem 2rem; }
}
@media (max-width: 768px) {
  .wp-topbar { padding: 12px 16px 12px 64px; }
}

/* ══════════════════════════════════════════════════════════════
   32. TEMPLATE UTILITY CLASSES (ported from template/styles.css)
   ══════════════════════════════════════════════════════════════ */

/* ── Section heading helpers ── */
.section-label {
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; color: var(--primary);
  margin-bottom: .5rem; display: block;
}
.section-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 800;
  color: var(--accent); line-height: 1.2;
}
.section-title span { color: var(--primary); }
.section-subtitle { color: var(--text-muted); font-size: .95rem; }

.divider { width: 60px; height: 4px; background: var(--primary); border-radius: 2px; margin: .75rem 0; }

/* ── Colour helpers ── */
.text-primary-c { color: var(--primary) !important; }
.text-accent    { color: var(--accent)  !important; }
.bg-primary-c   { background: var(--primary) !important; }
.bg-accent-soft { background: var(--accent-soft) !important; }

/* ── Badge / pill helpers ── */
.badge-primary-c { background: var(--primary-light); color: var(--primary); font-weight: 700; }
.badge-accent    { background: var(--accent-soft);   color: var(--accent);  font-weight: 700; }
.pill-tag        { background: var(--primary-light); color: var(--primary); font-size: .72rem; font-weight: 700; padding: .2rem .6rem; border-radius: 50px; }

/* ── Topbar toggle & action buttons (template pattern) ── */
.toggle-btn {
  width: 36px; height: 36px; border: none;
  background: var(--accent-soft); color: var(--accent);
  border-radius: 8px; display: flex; align-items: center;
  justify-content: center; cursor: pointer;
  font-size: 1.1rem; transition: var(--transition); flex-shrink: 0;
}
.toggle-btn:hover { background: var(--primary); color: var(--accent); }

.action-btn {
  width: 38px; height: 38px; border: none;
  background: var(--accent-soft); color: var(--accent);
  border-radius: 8px; display: flex; align-items: center;
  justify-content: center; cursor: pointer;
  font-size: 1rem; transition: var(--transition);
  position: relative; text-decoration: none;
}
.action-btn:hover { background: var(--primary-light); color: var(--primary); }
.action-btn .badge-dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; background: var(--danger); border-radius: 50%; border: 2px solid #fff; }

/* ── Page header (template pattern) ── */
.page-header  { margin-bottom: 1.5rem; }
.page-title   { font-size: 1.4rem; font-weight: 800; color: var(--accent); }
.breadcrumb-item a { color: var(--primary); text-decoration: none; }
.breadcrumb-item.active { color: var(--text-muted); }

/* ── Admin Table (template pattern) ── */
.table th {
  font-size: .77rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; color: var(--text-muted);
  border-bottom: 2px solid var(--border); padding: .75rem 1rem; white-space: nowrap;
}
.table td { padding: .75rem 1rem; vertical-align: middle; font-size: .88rem; border-color: var(--border); }
.table tbody tr:hover { background: var(--accent-soft); }

/* ── Admin action buttons (template pattern) ── */
.adm-act-view,
.adm-act-edit,
.adm-act-del {
  width: 30px; height: 30px; border-radius: 6px;
  border: none; cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center; font-size: .85rem;
  transition: var(--transition);
}
.adm-act-view { background: var(--accent-soft);  color: var(--accent); }
.adm-act-edit { background: var(--primary-light); color: var(--primary); }
.adm-act-del  { background: #fee2e2;              color: #dc2626; }
.adm-act-view:hover { background: var(--accent);   color: #fff; }
.adm-act-edit:hover { background: var(--primary);  color: var(--accent); }
.adm-act-del:hover  { background: #dc2626;         color: #fff; }

/* ── Order/status badge system (template pattern) ── */
.order-status    { font-size: .72rem; font-weight: 700; padding: .25rem .8rem; border-radius: 50px; }
.status-active   { background: #dcfce7; color: #16a34a; }
.status-inactive { background: #fee2e2; color: #dc2626; }
.status-pending  { background: #fef3c7; color: #d97706; }
.status-approved { background: #dcfce7; color: #16a34a; }
.status-rejected { background: #fee2e2; color: #dc2626; }
.status-draft    { background: #e2e3e5; color: #41464b; }

/* ── Progress bars (template pattern) ── */
.progress         { height: 8px; border-radius: 4px; background: var(--accent-soft); }
.progress-bar     { border-radius: 4px; }
.progress-primary { background: var(--primary); }
.progress-accent  { background: var(--accent); }
.progress-success { background: var(--success); }

/* ── Quick action dashed card (template pattern) ── */
.quick-action {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: .5rem; padding: 1rem .5rem;
  border-radius: var(--radius); border: 1.5px dashed var(--border);
  text-decoration: none; color: var(--text-muted);
  font-size: .78rem; font-weight: 600;
  transition: var(--transition); text-align: center;
}
.quick-action:hover { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.quick-action i     { font-size: 1.5rem; }

/* ── Mini stat card (template adm-mini-stat pattern) ── */
.adm-mini-stat {
  display: flex; align-items: center; gap: .85rem;
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}
.adm-mini-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.adm-mini-val { font-size: 1.3rem; font-weight: 800; color: var(--accent); line-height: 1.1; }
.adm-mini-lbl {
  font-size: .72rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .4px; margin-top: .15rem;
}

/* ── Form section block (template adm-form-section pattern) ── */
.adm-form-section {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem 1.25rem 1rem;
  margin-bottom: 1.25rem;
}
.adm-form-section-title {
  font-size: .8rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 1rem; padding-bottom: .6rem;
  border-bottom: 2px solid var(--primary-light);
}
.adm-igt {
  background: var(--accent-soft); border-color: var(--border);
  color: var(--text-muted); font-size: .88rem;
}
.adm-form-action-bar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .75rem;
  padding: 1rem 1.25rem; background: var(--accent-soft);
  border: 1px solid var(--border); border-radius: var(--radius);
}

/* ── Activity feed (template pattern) ── */
.activity-item { display: flex; gap: .85rem; padding: .75rem 0; border-bottom: 1px solid var(--border); }
.activity-item:last-child { border-bottom: none; }
.activity-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: .95rem; flex-shrink: 0; }
.activity-text { font-size: .85rem; color: var(--text-dark); line-height: 1.4; }
.activity-text span { font-weight: 700; }
.activity-time { font-size: .75rem; color: var(--text-muted); margin-top: .2rem; }

/* ── Card styles (template admin card pattern) ── */
.wp-card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.wp-card-header {
  background: var(--bg-white); border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem; font-weight: 700; font-size: .92rem; color: var(--accent);
  border-radius: var(--radius) var(--radius) 0 0;
}
.wp-card-body { padding: 1.25rem; }

/* ── Dropdown overrides (template admin pattern) ── */
.dropdown-menu {
  border: 1px solid var(--border); box-shadow: var(--shadow-md);
  border-radius: var(--radius); font-size: .88rem;
}
.dropdown-item {
  padding: .55rem 1rem; color: var(--text-dark);
  display: flex; align-items: center; gap: .65rem;
}
.dropdown-item:hover { background: var(--accent-soft); color: var(--accent); }
.dropdown-item i { font-size: 1rem; color: var(--text-muted); }

/* ── Password strength meter ────────────────────────────────── */
.pw-bar-track {
  height: 4px; background: var(--border); border-radius: 2px;
  margin-top: .35rem; overflow: hidden;
}
.pw-bar-fill {
  height: 100%; width: 0; border-radius: 2px;
  transition: width .3s ease, background .3s ease;
}
.pw-bar-hint {
  font-size: .75rem; margin-top: .25rem; font-weight: 500;
}
.pw-very-weak  { background: #ef4444; color: #ef4444; }
.pw-weak       { background: #f97316; color: #f97316; }
.pw-fair       { background: #f59e0b; color: #92400e; }
.pw-strong     { background: #22c55e; color: #15803d; }
.pw-very-strong{ background: #16a34a; color: #14532d; }

/* ── Email verification banner ──────────────────────────────── */
.verify-banner {
  background: #fef3c7; border-left: 4px solid #f59e0b;
  padding: .65rem 1.25rem; font-size: .875rem; color: #78350f;
  display: flex; align-items: center; gap: .75rem;
}
.verify-banner a { color: #92400e; font-weight: 600; text-decoration: underline; }

/* ── 33. VALIDATION STATES ───────────────────────────────────────── */
.has-error .form-control,
.has-error .form-select,
.has-error input,
.has-error textarea { border-color: var(--danger) !important; box-shadow: 0 0 0 3px rgba(239,68,68,.12) !important; }
.field-error { display: block; margin-top: .25rem; font-size: .8rem; color: var(--danger); font-weight: 600; }

/* ── 34. KEYBOARD FOCUS-VISIBLE (WCAG — replaces outline:none) ─── */
.wp-btn-primary:focus-visible,
.wp-btn-outline:focus-visible { outline: 3px solid var(--wp-primary); outline-offset: 2px; box-shadow: none; }
