/* ============================================================
WorkForce Employee Portal — Frontend CSS  v1.2.0
No-4: Full dashboard with SVG line chart, arc progress,
performance ring, trend badge, period tabs.
============================================================ */

/* ── Reset ────────────────────────────────────────────────── */
.wfp-wrap *,
.wfp-wrap *::before,
.wfp-wrap *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}

.wfp-wrap {
font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
-webkit-font-smoothing: antialiased;
line-height: 1.5;
color: #111827;
}

/* ════════════════════════════════════════════════════════════
LOGIN PAGE
════════════════════════════════════════════════════════════ */
.wfp-login-wrap {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background: #0f0f1a;
position: relative;
overflow: hidden;
padding: 24px;
margin-left: calc(-50vw + 50%);
margin-right: calc(-50vw + 50%);
width: 100vw;
}

.wfp-login-bg {
position: absolute;
inset: 0;
pointer-events: none;
overflow: hidden;
}

.wfp-bg-blob {
position: absolute;
border-radius: 50%;
filter: blur(80px);
opacity: 0.12;
animation: wfp-float 8s ease-in-out infinite alternate;
}

.wfp-bg-blob--1 {
width: 500px;
height: 500px;
background: #6366f1;
top: -100px;
left: -100px;
}

.wfp-bg-blob--2 {
width: 400px;
height: 400px;
background: #8b5cf6;
bottom: -80px;
right: -80px;
animation-delay: -3s;
}

.wfp-bg-blob--3 {
width: 300px;
height: 300px;
background: #3b82f6;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
animation-delay: -6s;
}

@keyframes wfp-float {
0% {
transform: translateY(0) scale(1);
}

100% {
transform: translateY(-30px) scale(1.05);
}
}

.wfp-login-card {
position: relative;
z-index: 1;
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 20px;
padding: 40px;
width: 100%;
max-width: 420px;
backdrop-filter: blur(24px);
box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
animation: wfp-card-in 0.5s cubic-bezier(0.34, 1.3, 0.64, 1) both;
}

@keyframes wfp-card-in {
from {
opacity: 0;
transform: translateY(24px) scale(0.96);
}

to {
opacity: 1;
transform: translateY(0) scale(1);
}
}

.wfp-login-brand {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 24px;
}

.wfp-login-logo {
width: 44px;
height: 44px;
flex-shrink: 0;
}

.wfp-login-title {
font-family: 'Playfair Display', Georgia, serif;
font-size: 22px;
font-weight: 700;
color: #fff;
letter-spacing: -0.5px;
line-height: 1;
}

.wfp-login-subtitle {
font-size: 12px;
color: rgba(255, 255, 255, 0.4);
text-transform: uppercase;
letter-spacing: 1px;
margin-top: 2px;
}

.wfp-login-divider {
height: 1px;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
margin-bottom: 24px;
}

.wfp-login-heading {
font-size: 24px;
font-weight: 600;
color: #fff;
margin-bottom: 6px;
}

.wfp-login-desc {
font-size: 14px;
color: rgba(255, 255, 255, 0.45);
margin-bottom: 24px;
}

.wfp-login-footer {
margin-top: 20px;
text-align: center;
font-size: 13px;
color: rgba(255, 255, 255, 0.3);
}

.wfp-alert {
display: flex;
align-items: center;
gap: 8px;
padding: 10px 14px;
border-radius: 8px;
font-size: 13px;
font-weight: 500;
margin-bottom: 16px;
animation: wfp-slide-in 0.2s ease;
}

.wfp-alert--error {
background: rgba(239, 68, 68, 0.15);
border: 1px solid rgba(239, 68, 68, 0.3);
color: #fca5a5;
}

.wfp-alert--success {
background: rgba(34, 197, 94, 0.15);
border: 1px solid rgba(34, 197, 94, 0.3);
color: #86efac;
}

@keyframes wfp-slide-in {
from {
opacity: 0;
transform: translateY(-6px)
}

to {
opacity: 1;
transform: translateY(0)
}
}

.wfp-form {
display: flex;
flex-direction: column;
gap: 16px;
}

.wfp-field {
display: flex;
flex-direction: column;
gap: 6px;
}

.wfp-label {
font-size: 12px;
font-weight: 600;
color: rgba(255, 255, 255, 0.6);
text-transform: uppercase;
letter-spacing: 0.5px;
}

.wfp-label-row {
display: flex;
align-items: center;
justify-content: space-between;
}

.wfp-input-wrap {
position: relative;
}

.wfp-input-icon {
position: absolute;
left: 14px;
top: 50%;
transform: translateY(-50%);
color: rgba(255, 255, 255, 0.3);
pointer-events: none;
}

.wfp-input {
width: 100%;
height: 48px;
padding: 0 14px 0 42px;
background: rgba(255, 255, 255, 0.06);
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 10px;
font-size: 15px;
color: #fff;
font-family: inherit;
outline: none;
transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.wfp-input::placeholder {
color: rgba(255, 255, 255, 0.25);
}

.wfp-input:focus {
border-color: #6366f1;
background: rgba(99, 102, 241, 0.1);
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.wfp-input--error {
border-color: #ef4444;
box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.wfp-pass-eye {
position: absolute;
right: 14px;
top: 50%;
transform: translateY(-50%);
background: none;
border: none;
cursor: pointer;
color: rgba(255, 255, 255, 0.35);
padding: 4px;
transition: color 0.15s;
}

.wfp-pass-eye:hover {
color: #fff;
}

.wfp-field-error {
font-size: 12px;
color: #fca5a5;
display: block;
min-height: 16px;
}

.wfp-remember {
display: flex;
align-items: center;
gap: 8px;
cursor: pointer;
font-size: 13px;
color: rgba(255, 255, 255, 0.5);
margin-top: -4px;
}

.wfp-remember input {
accent-color: #6366f1;
width: 15px;
height: 15px;
cursor: pointer;
}

.wfp-btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
padding: 0 24px;
height: 48px;
border-radius: 10px;
font-size: 15px;
font-weight: 600;
cursor: pointer;
border: none;
font-family: inherit;
transition: all 0.2s;
text-decoration: none;
}

.wfp-btn:active {
transform: scale(0.98);
}

.wfp-btn--primary {
background: linear-gradient(135deg, #6366f1, #8b5cf6);
color: #fff;
box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}

.wfp-btn--primary:hover {
box-shadow: 0 6px 28px rgba(99, 102, 241, 0.5);
transform: translateY(-1px);
}

.wfp-btn--full {
width: 100%;
margin-top: 4px;
}

.wfp-btn-arrow {
transition: transform 0.2s;
}

.wfp-btn:hover .wfp-btn-arrow {
transform: translateX(3px);
}

.wfp-spin {
animation: wfp-spin 0.7s linear infinite;
}

@keyframes wfp-spin {
to {
transform: rotate(360deg)
}
}

/* ════════════════════════════════════════════════════════════
PORTAL SHELL
════════════════════════════════════════════════════════════ */
.wfp-portal {
display: flex;
min-height: 100vh;
background: #f4f6fb;
margin-left: calc(-50vw + 50%);
margin-right: calc(-50vw + 50%);
width: 100vw;
max-width: 100vw;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.wfp-sidebar {
width: 240px;
min-width: 240px;
background: #0f172a;
display: flex;
flex-direction: column;
position: fixed;
top: 0;
left: 0;
height: 100vh;
z-index: 200;
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
overflow-y: auto;
}

.wfp-sidebar-brand {
display: flex;
align-items: center;
gap: 10px;
padding: 20px 18px 16px;
border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.wfp-sidebar-brand-name {
font-family: 'Playfair Display', Georgia, serif;
font-size: 18px;
font-weight: 700;
color: #fff;
letter-spacing: -0.5px;
flex: 1;
}

.wfp-sidebar-close {
display: none;
background: none;
border: none;
cursor: pointer;
color: rgba(255, 255, 255, 0.4);
padding: 4px;
}

.wfp-sidebar-identity {
display: flex;
align-items: center;
gap: 10px;
padding: 16px 18px;
border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.wfp-sidebar-avatar {
width: 38px;
height: 38px;
border-radius: 50%;
background: linear-gradient(135deg, #6366f1, #8b5cf6);
display: flex;
align-items: center;
justify-content: center;
font-size: 14px;
font-weight: 700;
color: #fff;
flex-shrink: 0;
overflow: hidden;
}

.wfp-sidebar-avatar img {
width: 100%;
height: 100%;
object-fit: cover;
}

.wfp-sidebar-name {
display: block;
font-size: 13px;
font-weight: 600;
color: #e2e8f0;
line-height: 1.3;
}

.wfp-sidebar-role {
display: block;
font-size: 11px;
color: rgba(255, 255, 255, 0.35);
text-transform: uppercase;
letter-spacing: 0.5px;
}

.wfp-nav {
display: flex;
flex-direction: column;
padding: 12px 0;
flex: 1;
}

.wfp-nav-label {
font-size: 9px;
color: rgba(255, 255, 255, 0.22);
text-transform: uppercase;
letter-spacing: 1.2px;
padding: 8px 18px 6px;
display: block;
}

.wfp-nav-item {
display: flex;
align-items: center;
gap: 10px;
padding: 11px 18px;
text-decoration: none;
color: rgba(255, 255, 255, 0.45);
font-size: 14px;
font-weight: 500;
border-left: 3px solid transparent;
transition: all 0.15s;
cursor: pointer;
background: none;
border-top: none;
border-right: none;
border-bottom: none;
width: 100%;
text-align: left;
font-family: inherit;
}

.wfp-nav-item:hover {
color: #fff;
background: rgba(255, 255, 255, 0.05);
border-left-color: rgba(255, 255, 255, 0.2);
}

.wfp-nav-item--active {
color: #a5b4fc;
background: rgba(99, 102, 241, 0.15);
border-left-color: #6366f1;
}

.wfp-nav-icon {
flex-shrink: 0;
opacity: 0.7;
}

.wfp-nav-item--active .wfp-nav-icon,
.wfp-nav-item:hover .wfp-nav-icon {
opacity: 1;
}

.wfp-nav-badge {
margin-left: auto;
background: #ef4444;
color: #fff;
font-size: 10px;
font-weight: 700;
padding: 1px 6px;
border-radius: 99px;
min-width: 18px;
text-align: center;
}

.wfp-nav-item--logout {
color: rgba(255, 255, 255, 0.3);
font-size: 13px;
}

.wfp-nav-item--logout:hover {
color: #fca5a5;
background: rgba(239, 68, 68, 0.08);
border-left-color: #ef4444;
}

.wfp-sidebar-footer {
padding: 8px 0 16px;
border-top: 1px solid rgba(255, 255, 255, 0.07);
margin-top: auto;
}

/* ── Main ─────────────────────────────────────────────────── */
.wfp-main {
flex: 1;
margin-left: 240px;
min-height: 100vh;
display: flex;
flex-direction: column;
overflow-y: auto;
height: 100vh;
}

.wfp-topbar {
height: 64px;
background: #fff;
border-bottom: 1px solid #e5e7eb;
display: flex;
align-items: center;
padding: 0 24px;
position: sticky;
top: 0;
z-index: 100;
gap: 16px;
transition: box-shadow 0.2s;
}

.wfp-topbar--scrolled {
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.wfp-hamburger {
display: none;
flex-direction: column;
gap: 4px;
background: none;
border: none;
cursor: pointer;
padding: 4px;
}

.wfp-hamburger span {
display: block;
width: 20px;
height: 2px;
background: #374151;
border-radius: 2px;
transition: all 0.2s;
}

.wfp-topbar-center {
font-size: 16px;
font-weight: 600;
color: #111827;
flex: 1;
}

.wfp-topbar-right {
display: flex;
align-items: center;
gap: 12px;
}

.wfp-topbar-date {
font-size: 13px;
color: #9ca3af;
white-space: nowrap;
}

.wfp-topbar-avatar {
width: 36px;
height: 36px;
border-radius: 50%;
background: linear-gradient(135deg, #6366f1, #8b5cf6);
display: flex;
align-items: center;
justify-content: center;
font-size: 12px;
font-weight: 700;
color: #fff;
overflow: hidden;
flex-shrink: 0;
}

.wfp-topbar-avatar img {
width: 100%;
height: 100%;
object-fit: cover;
}

/* ── Panels ───────────────────────────────────────────────── */
.wfp-panel {
display: none;
flex-direction: column;
flex: 1;
padding: 28px 28px 60px;
}

.wfp-panel--active {
display: flex;
animation: wfp-panel-in 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes wfp-panel-in {
from {
opacity: 0;
transform: translateY(10px)
}

to {
opacity: 1;
transform: translateY(0)
}
}

/* ── Welcome ──────────────────────────────────────────────── */
.wfp-welcome {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 8px;
flex-wrap: wrap;
gap: 8px;
}

.wfp-welcome-heading {
font-size: 22px;
font-weight: 700;
color: #111827;
margin-bottom: 2px;
}

.wfp-welcome-sub {
font-size: 14px;
color: #6b7280;
}

.wfp-welcome-date {
font-size: 13px;
color: #9ca3af;
}

/* ── Info chips ───────────────────────────────────────────── */
.wfp-info-strip {
display: flex;
gap: 8px;
flex-wrap: wrap;
margin-bottom: 20px;
margin-top: 8px;
}

.wfp-info-chip {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 4px 12px;
background: #fff;
border: 1px solid #e5e7eb;
border-radius: 99px;
font-size: 12px;
color: #6b7280;
}

/* ── Skeleton ─────────────────────────────────────────────── */
.wfp-skeleton-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
margin-bottom: 16px;
}

.wfp-skeleton {
background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
background-size: 200% 100%;
border-radius: 16px;
animation: wfp-shimmer 1.4s infinite;
}

.wfp-skeleton--card {
height: 240px;
}

.wfp-skeleton--graph {
height: 260px;
}

.wfp-skeleton--list {
height: 120px;
margin-bottom: 16px;
}

@keyframes wfp-shimmer {
0% {
background-position: 200% 0
}

100% {
background-position: -200% 0
}
}

/* ════════════════════════════════════════════════════════════
STAT CARDS
════════════════════════════════════════════════════════════ */
.wfp-stat-cards {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
margin-bottom: 16px;
}

.wfp-stat-card {
background: #fff;
border: 1px solid #e5e7eb;
border-radius: 16px;
padding: 22px;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
animation: wfp-card-fade 0.4s ease both;
}

@keyframes wfp-card-fade {
from {
opacity: 0;
transform: translateY(8px)
}

to {
opacity: 1;
transform: translateY(0)
}
}

.wfp-stat-card-header {
display: flex;
align-items: flex-start;
justify-content: space-between;
margin-bottom: 18px;
}

.wfp-stat-card-eyebrow {
font-size: 10px;
color: #9ca3af;
text-transform: uppercase;
letter-spacing: 0.8px;
margin-bottom: 2px;
}

.wfp-stat-card-title {
font-size: 14px;
font-weight: 600;
color: #111827;
}

.wfp-stat-card-icon {
width: 38px;
height: 38px;
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}

.wfp-stat-card-icon--purple {
background: #ede9fe;
color: #7c3aed;
}

.wfp-stat-card-icon--green {
background: #d1fae5;
color: #059669;
}

/* ── Performance Ring card ────────────────────────────────── */
.wfp-perf-ring-wrap {
display: flex;
align-items: center;
gap: 20px;
}

.wfp-perf-ring {
position: relative;
width: 120px;
height: 120px;
flex-shrink: 0;
}

.wfp-perf-ring svg {
display: block;
}

.wfp-ring-track {
stroke: #f3f4f6;
}

.wfp-ring-fill {
transition: stroke-dashoffset 1.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wfp-ring-label {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
flex-direction: row;
gap: 1px;
}

.wfp-ring-value {
font-size: 28px;
font-weight: 700;
color: #111827;
line-height: 1;
font-variant-numeric: tabular-nums;
}

.wfp-ring-pct {
font-size: 14px;
color: #6b7280;
align-self: flex-end;
margin-bottom: 5px;
}

.wfp-perf-breakdown {
display: flex;
flex-direction: column;
gap: 10px;
flex: 1;
}

.wfp-breakdown-title {
font-size: 11px;
font-weight: 600;
color: #9ca3af;
text-transform: uppercase;
letter-spacing: 0.5px;
margin-bottom: 2px;
}

.wfp-breakdown-item {
display: flex;
align-items: center;
gap: 8px;
font-size: 13px;
}

.wfp-breakdown-dot {
width: 8px;
height: 8px;
border-radius: 50%;
flex-shrink: 0;
}

.wfp-breakdown-dot--task {
background: #6366f1;
}

.wfp-breakdown-dot--att {
background: #22c55e;
}

.wfp-breakdown-label {
color: #6b7280;
flex: 1;
font-size: 12px;
}

.wfp-breakdown-val {
color: #111827;
font-weight: 700;
font-size: 13px;
}

.wfp-breakdown-formula {
margin-top: 4px;
font-size: 10px;
color: #9ca3af;
background: #f9fafb;
padding: 4px 8px;
border-radius: 5px;
}

.wfp-trend-badge {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 4px 10px;
border-radius: 99px;
font-size: 12px;
font-weight: 600;
margin-top: 6px;
}

.wfp-trend--up {
background: #d1fae5;
color: #065f46;
}

.wfp-trend--down {
background: #fee2e2;
color: #991b1b;
}

/* ── Task card ────────────────────────────────────────────── */
.wfp-task-counter {
margin-bottom: 8px;
}

.wfp-task-big {
display: flex;
align-items: baseline;
gap: 4px;
}

.wfp-task-num {
font-size: 48px;
font-weight: 700;
color: #111827;
line-height: 1;
font-variant-numeric: tabular-nums;
}

.wfp-task-sep {
font-size: 24px;
color: #d1d5db;
}

.wfp-task-total {
font-size: 24px;
color: #9ca3af;
font-variant-numeric: tabular-nums;
}

.wfp-task-label {
font-size: 13px;
color: #6b7280;
margin-top: 2px;
}

/* Arc progress */
.wfp-task-arc-wrap {
margin: 0 -8px;
position: relative;
height: 60px;
overflow: visible;
}

.wfp-task-arc-svg {
width: 100%;
height: auto;
}

.wfp-arc-track {
stroke: #f3f4f6;
fill: none;
}

.wfp-arc-fill {
fill: none;
stroke-dasharray: 251.2;
stroke-dashoffset: 251.2;
transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.wfp-task-pills {
display: flex;
gap: 8px;
flex-wrap: wrap;
margin-top: 10px;
}

.wfp-task-pill {
display: flex;
flex-direction: column;
align-items: center;
padding: 8px 12px;
border-radius: 10px;
font-size: 11px;
gap: 2px;
flex: 1;
min-width: 0;
text-align: center;
}

.wfp-task-pill span:first-child {
font-size: 20px;
font-weight: 700;
}

.wfp-task-pill--green {
background: #d1fae5;
color: #065f46;
}

.wfp-task-pill--amber {
background: #fef3c7;
color: #92400e;
}

.wfp-task-pill--gray {
background: #f3f4f6;
color: #6b7280;
}

/* ════════════════════════════════════════════════════════════
PERFORMANCE GRAPH CARD
════════════════════════════════════════════════════════════ */
.wfp-card {
background: #fff;
border: 1px solid #e5e7eb;
border-radius: 16px;
padding: 22px;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
margin-bottom: 16px;
animation: wfp-card-fade 0.4s ease both;
}

.wfp-graph-card {
animation-delay: 0.1s;
}

.wfp-card-header {
display: flex;
align-items: flex-start;
justify-content: space-between;
margin-bottom: 16px;
flex-wrap: wrap;
gap: 10px;
}

.wfp-card-title {
font-size: 16px;
font-weight: 600;
color: #111827;
margin-bottom: 2px;
}

.wfp-card-sub {
font-size: 12px;
color: #9ca3af;
}

/* Period tabs */
.wfp-graph-controls {
display: flex;
align-items: center;
gap: 8px;
}

.wfp-period-tabs {
display: flex;
gap: 2px;
background: #f3f4f6;
padding: 3px;
border-radius: 8px;
}

.wfp-period-tab {
padding: 5px 14px;
border-radius: 6px;
font-size: 13px;
font-weight: 500;
cursor: pointer;
background: none;
border: none;
color: #6b7280;
font-family: inherit;
transition: all 0.15s;
}

.wfp-period-tab--active {
background: #fff;
color: #111827;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* SVG Chart */
.wfp-chart-wrap {
position: relative;
margin: 0 0;
padding-bottom: 28px;
/* room for x-labels */
user-select: none;
}

.wfp-chart-svg {
width: 100%;
height: auto;
min-height: 160px;
max-height: 240px;
overflow: visible;
display: block;
}

.wfp-grid-line {
stroke: #f3f4f6;
stroke-width: 1;
}

.wfp-chart-ylabel {
font-size: 10px;
fill: #9ca3af;
font-family: 'Outfit', sans-serif;
}

.wfp-chart-area {
fill: url(#wfp-area-gradient);
}

.wfp-chart-line {
stroke: #6366f1;
stroke-width: 2.5;
fill: none;
stroke-linecap: round;
stroke-linejoin: round;
}

.wfp-chart-dot {
cursor: pointer;
transition: r 0.15s;
}

.wfp-chart-crosshair {
stroke: #9ca3af;
stroke-width: 1;
stroke-dasharray: 4 4;
pointer-events: none;
}

/* X labels */
.wfp-chart-xlabels {
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 22px;
}

.wfp-chart-xlabel {
position: absolute;
transform: translateX(-50%);
font-size: 11px;
color: #9ca3af;
white-space: nowrap;
}

/* Tooltip */
.wfp-chart-tooltip {
position: absolute;
top: 8px;
display: flex;
flex-direction: column;
gap: 2px;
background: #1f2937;
color: #fff;
padding: 8px 12px;
border-radius: 8px;
font-size: 13px;
pointer-events: none;
transform: translateX(-50%);
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
white-space: nowrap;
z-index: 10;
transition: left 0.05s;
}

.wfp-chart-tooltip--right {
transform: translateX(-90%);
}

.wfp-tooltip-month {
font-weight: 600;
font-size: 12px;
color: #9ca3af;
}

.wfp-tooltip-val {
font-weight: 700;
font-size: 14px;
color: #fff;
}

/* Legend */
.wfp-chart-legend {
display: flex;
align-items: center;
gap: 16px;
margin-top: 8px;
flex-wrap: wrap;
}

.wfp-legend-item {
display: flex;
align-items: center;
gap: 6px;
font-size: 12px;
color: #6b7280;
}

/* ── SVG gradient def (injected inline) */
.wfp-chart-wrap::before {
content: none;
}

/* ════════════════════════════════════════════════════════════
RECENT TASKS LIST
════════════════════════════════════════════════════════════ */
.wfp-task-row {
display: flex;
align-items: center;
gap: 12px;
padding: 12px 0;
border-bottom: 1px solid #f9fafb;
animation: wfp-row-in 0.3s ease both;
}

.wfp-task-row:last-child {
border-bottom: none;
}

@keyframes wfp-row-in {
from {
opacity: 0;
transform: translateX(-6px)
}

to {
opacity: 1;
transform: translateX(0)
}
}

.wfp-task-row-icon {
width: 38px;
height: 38px;
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
font-size: 16px;
flex-shrink: 0;
}

.wfp-task-row-body {
flex: 1;
min-width: 0;
}

.wfp-task-row-name {
font-size: 14px;
font-weight: 500;
color: #111827;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.wfp-task-row-meta {
display: flex;
align-items: center;
gap: 5px;
font-size: 12px;
color: #9ca3af;
margin-top: 2px;
}

.wfp-task-row-right {
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 4px;
flex-shrink: 0;
}

.wfp-priority-dot {
width: 7px;
height: 7px;
border-radius: 50%;
display: inline-block;
}

.wfp-priority--high {
background: #ef4444;
}

.wfp-priority--medium {
background: #f59e0b;
}

.wfp-priority--low {
background: #22c55e;
}

.wfp-task-perf {
font-size: 12px;
font-weight: 700;
}

.wfp-task-perf--good {
color: #059669;
}

.wfp-task-perf--late {
color: #d97706;
}

.wfp-badge {
display: inline-flex;
align-items: center;
padding: 3px 10px;
border-radius: 99px;
font-size: 12px;
font-weight: 500;
white-space: nowrap;
}

.wfp-badge--green {
background: #d1fae5;
color: #065f46;
}

.wfp-badge--amber {
background: #fef3c7;
color: #92400e;
}

.wfp-badge--blue {
background: #dbeafe;
color: #1e40af;
}

.wfp-badge--gray {
background: #f3f4f6;
color: #6b7280;
}

.wfp-link {
font-size: 13px;
color: #6366f1;
text-decoration: none;
font-weight: 500;
}

.wfp-link:hover {
text-decoration: underline;
}

.wfp-empty-hint {
font-size: 14px;
color: #9ca3af;
padding: 16px 0;
text-align: center;
line-height: 1.6;
}

/* ════════════════════════════════════════════════════════════
COMING SOON / ERROR
════════════════════════════════════════════════════════════ */
.wfp-coming-soon {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
flex: 1;
text-align: center;
gap: 12px;
padding: 60px 20px;
color: #9ca3af;
}

.wfp-coming-soon h3 {
font-size: 18px;
color: #374151;
}

.wfp-coming-soon p {
font-size: 14px;
max-width: 380px;
line-height: 1.6;
}

.wfp-error-state {
display: flex;
align-items: center;
justify-content: center;
padding: 40px;
color: #9ca3af;
text-align: center;
}

/* ── Mobile overlay ───────────────────────────────────────── */
.wfp-overlay {
display: block;
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.5);
z-index: 150;
backdrop-filter: blur(2px);
opacity: 0;
pointer-events: none;
transition: opacity 0.3s;
}

.wfp-overlay--visible {
opacity: 1;
pointer-events: all;
}

/* ════════════════════════════════════════════════════════════
RESPONSIVE
════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
.wfp-stat-cards {
grid-template-columns: 1fr;
}
}

@media (max-width: 768px) {
.wfp-sidebar {
transform: translateX(-100%);
}

.wfp-sidebar--open {
transform: translateX(0);
box-shadow: 8px 0 32px rgba(0, 0, 0, 0.3);
}

.wfp-sidebar-close {
display: flex;
}

.wfp-main {
margin-left: 0;
}

.wfp-hamburger {
display: flex;
}

.wfp-panel {
padding: 20px 16px 48px;
}

.wfp-topbar-date {
display: none;
}

.wfp-perf-ring-wrap {
flex-direction: column;
align-items: flex-start;
}

.wfp-task-arc-wrap {
height: 44px;
}
}

/* ════════════════════════════════════════════════════════════
No-4 Final Polish
════════════════════════════════════════════════════════════ */

/* Chart y-labels are inside the SVG viewBox — no extra CSS needed */
.wfp-chart-ylabel {
font-family: 'Outfit', sans-serif;
font-size: 10px;
fill: #9ca3af;
dominant-baseline: middle;
}

/* Crosshair visibility */
.wfp-chart-crosshair {
stroke: #cbd5e1;
stroke-width: 1;
stroke-dasharray: 4 4;
pointer-events: none;
}

/* Period tab loading state */
.wfp-period-tab.wfp-period-tab--loading {
opacity: 0.5;
pointer-events: none;
}

/* Task arc — fix colour for zero state */
.wfp-arc-fill[stroke-dashoffset="251.2"] {
stroke: #e5e7eb;
}

/* Smooth all card animations with staggered delay */
.wfp-stat-card:nth-child(1) {
animation-delay: 0s;
}

.wfp-stat-card:nth-child(2) {
animation-delay: 0.08s;
}

.wfp-graph-card {
animation-delay: 0.16s;
}

.wfp-card:not(.wfp-graph-card) {
animation-delay: 0.24s;
}

/* Trend badge animation */
.wfp-trend-badge {
animation: wfp-slide-in 0.4s ease both;
animation-delay: 1.2s;
opacity: 0;
animation-fill-mode: forwards;
}

/* Prevent SVG distortion on very wide screens */
.wfp-chart-wrap svg {
max-height: 220px;
}

/* Dashboard content fade in smoothly */
#wfp-dashboard-content {
animation: wfp-panel-in 0.4s ease both;
}

/* Tooltip arrow */
.wfp-chart-tooltip::after {
content: '';
position: absolute;
bottom: -6px;
left: 50%;
transform: translateX(-50%);
border: 6px solid transparent;
border-top-color: #1f2937;
border-bottom: none;
}

/* Task pill label wrapping on mobile */
@media (max-width: 480px) {
.wfp-task-pill span:last-child {
font-size: 10px;
}

.wfp-task-num {
font-size: 36px;
}

.wfp-ring-value {
font-size: 22px;
}
}

/* Prevent theme link styles from affecting nav items */
.wfp-portal a.wfp-nav-item,
.wfp-portal a.wfp-nav-item:visited,
.wfp-portal a.wfp-nav-item:hover {
text-decoration: none;
outline: none;
box-shadow: none;
}

/* Zero-data empty state inside cards */
.wfp-zero-data {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
padding: 32px 16px;
text-align: center;
color: #9ca3af;
}

.wfp-zero-data svg {
opacity: 0.3;
}

.wfp-zero-data p {
font-size: 14px;
max-width: 280px;
line-height: 1.6;
}

/* ════════════════════════════════════════════════════════════
No-5 — Employee Task Panel
════════════════════════════════════════════════════════════ */

/* ── Header ───────────────────────────────────────────────── */
.wfp-tasks-header {
margin-bottom: 16px;
}

/* ── Stat chips row ───────────────────────────────────────── */
.wfp-task-stat-row {
display: flex;
gap: 10px;
flex-wrap: wrap;
margin-bottom: 16px;
}

.wfp-task-stat-chip {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 14px;
background: #fff;
border: 1px solid #e5e7eb;
border-radius: 10px;
font-size: 12px;
color: #6b7280;
font-weight: 500;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.wfp-task-stat-chip .wfp-task-stat-num {
font-size: 20px;
font-weight: 700;
color: #111827;
font-variant-numeric: tabular-nums;
min-width: 20px;
text-align: right;
}

.wfp-task-stat-chip--blue .wfp-task-stat-num {
color: #3b82f6;
}

.wfp-task-stat-chip--green .wfp-task-stat-num {
color: #059669;
}

.wfp-task-stat-chip--amber .wfp-task-stat-num {
color: #d97706;
}

.wfp-task-stat-chip--red .wfp-task-stat-num {
color: #dc2626;
}

/* ── Filters ──────────────────────────────────────────────── */
.wfp-task-filters {
display: flex;
gap: 10px;
margin-bottom: 14px;
flex-wrap: wrap;
align-items: center;
}

.wfp-task-search-wrap {
position: relative;
flex: 1;
min-width: 180px;
}

.wfp-task-search-icon {
position: absolute;
left: 12px;
top: 50%;
transform: translateY(-50%);
color: #9ca3af;
pointer-events: none;
}

.wfp-task-filter-input {
width: 100%;
height: 38px;
padding: 0 12px 0 34px;
border: 1px solid #e5e7eb;
border-radius: 8px;
font-size: 13px;
color: #111827;
background: #fff;
outline: none;
font-family: inherit;
transition: border-color 0.15s, box-shadow 0.15s;
}

.wfp-task-filter-input:focus {
border-color: #6366f1;
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.wfp-task-filter-select {
height: 38px;
padding: 0 30px 0 10px;
border: 1px solid #e5e7eb;
border-radius: 8px;
font-size: 13px;
color: #374151;
background: #fff;
outline: none;
font-family: inherit;
cursor: pointer;
appearance: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239ca3af' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 10px center;
}

.wfp-task-filter-select:focus {
border-color: #6366f1;
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

/* ── Task Table ───────────────────────────────────────────── */
.wfp-task-table-wrap {
background: #fff;
border: 1px solid #e5e7eb;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.wfp-task-table {
width: 100%;
border-collapse: collapse;
font-size: 13px;
}

.wfp-task-table thead {
background: #f9fafb;
border-bottom: 1px solid #e5e7eb;
}

.wfp-task-table th {
padding: 10px 14px;
text-align: left;
font-size: 11px;
font-weight: 600;
color: #6b7280;
text-transform: uppercase;
letter-spacing: 0.5px;
white-space: nowrap;
}

.wfp-task-table td {
padding: 12px 14px;
border-bottom: 1px solid #f9fafb;
vertical-align: middle;
color: #111827;
}

.wfp-task-table tbody tr:last-child td {
border-bottom: none;
}

.wfp-task-table tbody tr {
transition: background 0.1s;
animation: wfp-row-in 0.25s ease both;
}

.wfp-task-table tbody tr:hover {
background: #fafafa;
}

.wfp-task-empty {
text-align: center;
padding: 48px 20px !important;
color: #9ca3af;
}

.wfp-task-empty p {
margin-top: 10px;
font-size: 14px;
}

/* ── Task name cell ───────────────────────────────────────── */
.wfp-tt-name {
max-width: 220px;
}

.wfp-tt-name-wrap {
display: flex;
align-items: center;
gap: 8px;
}

.wfp-tt-overdue-dot {
width: 7px;
height: 7px;
border-radius: 50%;
background: #ef4444;
flex-shrink: 0;
box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

/* ── Date cells ───────────────────────────────────────────── */
.wfp-tt-date {
font-size: 12px;
color: #6b7280;
white-space: nowrap;
}

.wfp-td-overdue {
color: #dc2626;
font-weight: 500;
}

.wfp-td-overdue small {
color: #ef4444;
font-size: 10px;
}

.wfp-td-soon {
color: #d97706;
}

.wfp-td-soon small {
font-size: 10px;
}

/* ── Priority badge ───────────────────────────────────────── */
.wfp-tt-priority {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 3px 9px;
border-radius: 99px;
font-size: 11px;
font-weight: 600;
border: 1px solid transparent;
white-space: nowrap;
}

/* ── Status badges ────────────────────────────────────────── */
.wfp-task-badge {
display: inline-flex;
align-items: center;
padding: 3px 10px;
border-radius: 99px;
font-size: 12px;
font-weight: 500;
white-space: nowrap;
}

.wfp-task-badge--green {
background: #d1fae5;
color: #065f46;
}

.wfp-task-badge--blue {
background: #dbeafe;
color: #1e40af;
}

.wfp-task-badge--amber {
background: #fef3c7;
color: #92400e;
}

.wfp-task-badge--gray {
background: #f3f4f6;
color: #6b7280;
}

/* ── Performance cells ────────────────────────────────────── */
.wfp-task-perf {
font-size: 13px;
font-weight: 700;
white-space: nowrap;
}

.wfp-task-perf--100 {
color: #059669;
}

.wfp-task-perf--70 {
color: #d97706;
}

.wfp-task-perf--warn {
font-size: 11px;
font-weight: 500;
color: #d97706;
}

.wfp-task-perf--pot {
font-size: 11px;
font-weight: 500;
color: #6366f1;
}

.wfp-task-perf-na {
color: #d1d5db;
}

/* ── View button ──────────────────────────────────────────── */
.wfp-tt-view-btn {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 5px 12px;
border: 1px solid #e5e7eb;
border-radius: 7px;
background: #fff;
font-size: 12px;
font-weight: 500;
color: #374151;
cursor: pointer;
font-family: inherit;
transition: all 0.15s;
white-space: nowrap;
}

.wfp-tt-view-btn:hover {
background: #6366f1;
border-color: #6366f1;
color: #fff;
}

.wfp-tt-view-btn:hover svg {
fill: #fff;
}

/* ── Task pagination ──────────────────────────────────────── */
.wfp-task-pagination {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 0;
font-size: 13px;
color: #6b7280;
gap: 10px;
}

.wfp-tt-page-btn {
width: 30px;
height: 30px;
border: 1px solid #e5e7eb;
border-radius: 6px;
background: #fff;
cursor: pointer;
font-size: 14px;
color: #374151;
display: inline-flex;
align-items: center;
justify-content: center;
transition: all 0.12s;
}

.wfp-tt-page-btn:hover {
background: #6366f1;
border-color: #6366f1;
color: #fff;
}

.wfp-tt-page-btn:disabled {
opacity: 0.35;
cursor: not-allowed;
}

/* ════════════════════════════════════════════════════════════
Task View Modal (Employee Portal)
════════════════════════════════════════════════════════════ */
.wfp-modal-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
z-index: 300;
padding: 20px;
backdrop-filter: blur(3px);
animation: wfp-overlay-in 0.2s ease;
}

@keyframes wfp-overlay-in {
from {
opacity: 0
}

to {
opacity: 1
}
}

.wfp-task-modal {
background: #fff;
border-radius: 16px;
width: 100%;
max-width: 500px;
max-height: calc(100vh - 60px);
overflow-y: auto;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
animation: wfp-modal-in 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes wfp-modal-in {
from {
opacity: 0;
transform: scale(0.93) translateY(10px);
}

to {
opacity: 1;
transform: scale(1) translateY(0);
}
}

.wfp-task-modal-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 18px 20px 0;
}

.wfp-task-modal-header h3 {
font-size: 16px !important;
font-weight: 600 !important;
color: #111827 !important;
margin: 0 !important;
flex: 1;
padding-right: 12px;
line-height: 1.3;
}

.wfp-task-modal-close {
width: 30px;
height: 30px;
border: 1px solid #e5e7eb;
border-radius: 7px;
background: #fff;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
color: #9ca3af;
flex-shrink: 0;
transition: all 0.12s;
}

.wfp-task-modal-close:hover {
background: #f3f4f6;
color: #374151;
}

.wfp-task-modal-badges {
display: flex;
gap: 8px;
flex-wrap: wrap;
padding: 12px 20px 14px;
border-bottom: 1px solid #f3f4f6;
}

.wfp-task-modal-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 8px;
padding: 16px 20px 8px;
}

.wfp-task-modal-row {
display: flex;
flex-direction: column;
gap: 3px;
background: #f9fafb;
border: 1px solid #f3f4f6;
border-radius: 8px;
padding: 10px 12px;
}

.wfp-task-modal-label {
font-size: 10px;
font-weight: 600;
color: #9ca3af;
text-transform: uppercase;
letter-spacing: 0.5px;
}

.wfp-task-modal-val {
font-size: 13px;
font-weight: 500;
color: #111827;
}

.wfp-task-modal-desc {
margin: 0 20px 14px;
background: #f9fafb;
border: 1px solid #f3f4f6;
border-radius: 8px;
padding: 12px 14px;
}

.wfp-task-modal-desc-label {
font-size: 10px;
font-weight: 600;
color: #9ca3af;
text-transform: uppercase;
letter-spacing: 0.5px;
margin-bottom: 6px;
}

.wfp-task-modal-desc p:last-child {
font-size: 13px;
color: #374151;
line-height: 1.6;
margin: 0;
}

.wfp-task-perf-rule {
display: flex;
align-items: flex-start;
gap: 8px;
margin: 0 20px 16px;
padding: 10px 12px;
background: #eff6ff;
border: 1px solid #bfdbfe;
border-radius: 8px;
font-size: 12px;
color: #1e40af;
line-height: 1.5;
}

.wfp-task-perf-rule svg {
flex-shrink: 0;
margin-top: 1px;
}

.wfp-task-modal-footer {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 10px;
padding: 14px 20px 18px;
border-top: 1px solid #f3f4f6;
flex-wrap: wrap;
}

/* Prevent portal button styles from leaking */
.wfp-task-modal-footer .wfp-btn--ghost {
height: 38px;
padding: 0 16px;
font-size: 13px;
}

.wfp-task-modal-footer .wfp-btn--primary {
height: 38px;
padding: 0 16px;
font-size: 13px;
}

/* ── Responsive task panel ────────────────────────────────── */
@media (max-width: 600px) {

.wfp-task-table th:nth-child(2),
.wfp-task-table td:nth-child(2) {
display: none;
}

/* hide start date */
.wfp-task-stat-row {
gap: 8px;
}

.wfp-task-stat-chip {
padding: 6px 10px;
}

.wfp-task-modal-grid {
grid-template-columns: 1fr;
}
}

/* ════════════════════════════════════════════════════════════
No-6 — Employee Entry Records Panel
════════════════════════════════════════════════════════════ */

/* ── Entry Now Card ───────────────────────────────────────── */
.wfp-entry-card {
display: flex;
align-items: center;
gap: 28px;
background: #fff;
border: 1px solid #e5e7eb;
border-radius: 16px;
padding: 24px 28px;
margin-bottom: 16px;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
flex-wrap: wrap;
}

.wfp-entry-card-left {
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
flex-shrink: 0;
}

.wfp-entry-btn {
width: 140px;
height: 140px;
border-radius: 50%;
border: none;
background: linear-gradient(135deg, #6366f1, #8b5cf6);
color: #fff;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 8px;
cursor: pointer;
font-family: inherit;
box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
position: relative;
}

.wfp-entry-btn:hover {
transform: translateY(-2px) scale(1.02);
box-shadow: 0 12px 32px rgba(99, 102, 241, 0.45);
}

.wfp-entry-btn:active {
transform: scale(0.97);
}

.wfp-entry-btn:disabled {
opacity: 0.7;
cursor: not-allowed;
transform: none;
}

.wfp-entry-btn--entered {
background: linear-gradient(135deg, #f59e0b, #ea580c);
box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
animation: wfp-pulse-glow 2s ease-in-out infinite;
}

@keyframes wfp-pulse-glow {

0%,
100% {
box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
}

50% {
box-shadow: 0 8px 32px rgba(245, 158, 11, 0.55);
}
}

.wfp-entry-btn--done {
background: linear-gradient(135deg, #22c55e, #16a34a);
box-shadow: 0 8px 24px rgba(34, 197, 94, 0.35);
cursor: default;
}

.wfp-entry-btn--done:hover {
transform: none;
}

.wfp-entry-btn-icon {
display: flex;
}

.wfp-entry-btn-label {
font-size: 15px;
font-weight: 600;
}

.wfp-entry-btn-spinner {
display: flex;
}

.wfp-entry-btn-hint {
font-size: 12px;
color: #9ca3af;
text-align: center;
max-width: 180px;
line-height: 1.4;
}

/* ── Today summary ────────────────────────────────────────── */
.wfp-entry-card-right {
flex: 1;
min-width: 220px;
display: flex;
flex-direction: column;
gap: 10px;
}

.wfp-entry-today-row {
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px 16px;
background: #f9fafb;
border-radius: 10px;
border: 1px solid #f3f4f6;
}

.wfp-entry-today-label {
font-size: 13px;
color: #6b7280;
font-weight: 500;
}

.wfp-entry-today-val {
font-size: 15px;
font-weight: 700;
color: #111827;
font-variant-numeric: tabular-nums;
}

/* ── Toast notification ───────────────────────────────────── */
.wfp-entry-toast {
position: fixed;
bottom: 24px;
left: 50%;
transform: translateX(-50%) translateY(20px);
background: #1f2937;
color: #fff;
padding: 14px 24px;
border-radius: 10px;
font-size: 14px;
font-weight: 500;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
z-index: 9999;
opacity: 0;
transition: opacity 0.3s, transform 0.3s;
max-width: 90vw;
text-align: center;
}

.wfp-entry-toast--visible {
opacity: 1;
transform: translateX(-50%) translateY(0);
}

.wfp-entry-toast--success {
background: #16a34a;
}

.wfp-entry-toast--exit {
background: #1f2937;
}

.wfp-entry-toast--error {
background: #dc2626;
}

/* ── Entry table wrap (reuses wfp-task-table styles) ──────── */
.wfp-entry-table-wrap {
background: transparent;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 640px) {
.wfp-entry-card {
flex-direction: column;
align-items: stretch;
text-align: center;
}

.wfp-entry-card-left {
align-self: center;
}

.wfp-entry-btn {
width: 120px;
height: 120px;
}

.wfp-entry-card-right {
width: 100%;
}
}

/* ════════════════════════════════════════════════════════════
No-7 — Frontend Admin Panel
════════════════════════════════════════════════════════════ */

/* ── Admin sidebar accent (amber instead of indigo) ───────── */
.wfa-avatar-admin {
background: linear-gradient(135deg, #f59e0b, #ea580c) !important;
}

.wfa-sidebar .wfp-nav-item--active {
color: #fcd34d;
background: rgba(245, 158, 11, 0.15);
border-left-color: #f59e0b;
}

/* ── Overview stat cards ──────────────────────────────────── */
.wfa-overview-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 14px;
margin-bottom: 18px;
}

.wfa-stat-card {
display: flex;
align-items: center;
gap: 14px;
background: #fff;
border: 1px solid #e5e7eb;
border-radius: 14px;
padding: 18px;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
animation: wfp-card-fade 0.4s ease both;
}

.wfa-stat-card-icon {
width: 42px;
height: 42px;
border-radius: 11px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}

.wfa-stat-card--indigo .wfa-stat-card-icon {
background: #ede9fe;
color: #7c3aed;
}

.wfa-stat-card--green .wfa-stat-card-icon {
background: #d1fae5;
color: #059669;
}

.wfa-stat-card--blue .wfa-stat-card-icon {
background: #dbeafe;
color: #1e40af;
}

.wfa-stat-card--amber .wfa-stat-card-icon {
background: #fef3c7;
color: #d97706;
}

.wfa-stat-card-value {
font-size: 24px;
font-weight: 700;
color: #111827;
line-height: 1;
font-variant-numeric: tabular-nums;
}

.wfa-stat-card-label {
font-size: 12px;
color: #6b7280;
margin-top: 4px;
}

/* ── Quick actions ────────────────────────────────────────── */
.wfa-quick-actions {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 10px;
}

.wfa-quick-btn {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
padding: 16px 10px;
background: #f9fafb;
border: 1px solid #f3f4f6;
border-radius: 12px;
cursor: pointer;
font-family: inherit;
font-size: 12px;
font-weight: 500;
color: #374151;
text-decoration: none;
transition: all 0.15s;
}

.wfa-quick-btn:hover {
background: #fff;
border-color: #e5e7eb;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
transform: translateY(-1px);
color: #374151;
}

.wfa-quick-btn-icon {
width: 36px;
height: 36px;
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
}

.wfa-quick-btn-icon--indigo {
background: #ede9fe;
color: #7c3aed;
}

.wfa-quick-btn-icon--blue {
background: #dbeafe;
color: #1e40af;
}

.wfa-quick-btn-icon--amber {
background: #fef3c7;
color: #d97706;
}

.wfa-quick-btn-icon--gray {
background: #f3f4f6;
color: #6b7280;
}

/* ── Overview two-column layout ───────────────────────────── */
.wfa-overview-cols {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
}

/* ── Settings grid ────────────────────────────────────────── */
.wfa-settings-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 14px;
}

.wfa-form-group {
display: flex;
flex-direction: column;
gap: 5px;
}

.wfa-form-group--full {
grid-column: 1 / -1;
}

.wfa-label {
font-size: 12px;
font-weight: 600;
color: #374151;
text-transform: uppercase;
letter-spacing: 0.4px;
}

.wfa-input,
.wfa-textarea {
height: 40px;
padding: 0 12px;
border: 1px solid #d1d5db;
border-radius: 7px;
font-size: 14px;
color: #111827;
background: #fff;
outline: none;
font-family: inherit;
transition: border-color 0.15s, box-shadow 0.15s;
}

.wfa-input:focus,
.wfa-textarea:focus {
border-color: #6366f1;
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.wfa-textarea {
height: auto;
padding: 10px 12px;
resize: vertical;
}

.wfa-help-text {
font-size: 12px;
color: #9ca3af;
margin-top: 6px;
}

.wfa-info-box {
display: flex;
gap: 8px;
padding: 10px 14px;
background: #eff6ff;
border: 1px solid #bfdbfe;
border-radius: 8px;
font-size: 13px;
color: #1e40af;
margin-bottom: 14px;
}

.wfa-checkbox-label {
display: flex;
align-items: center;
gap: 8px;
font-size: 14px;
color: #374151;
cursor: pointer;
margin-top: 10px;
}

/* ── Modals (shared shell, scoped class) ──────────────────── */
.wfa-modal {
background: #fff;
border-radius: 16px;
width: 100%;
max-height: calc(100vh - 60px);
overflow-y: auto;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
animation: wfp-modal-in 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.wfa-modal-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 18px 20px 0;
}

.wfa-modal-header h3 {
font-size: 16px !important;
font-weight: 600 !important;
color: #111827 !important;
margin: 0 !important;
}

.wfa-modal-tabs {
display: flex;
gap: 0;
border-bottom: 1px solid #e5e7eb;
padding: 14px 20px 0;
}

.wfa-tab {
padding: 8px 14px;
font-size: 13px;
cursor: pointer;
color: #6b7280;
border: none;
border-bottom: 2px solid transparent;
background: none;
margin-bottom: -1px;
font-family: inherit;
font-weight: 500;
transition: all 0.15s;
}

.wfa-tab:hover {
color: #374151;
}

.wfa-tab--active {
color: #6366f1;
border-bottom-color: #6366f1;
}

.wfa-tab-panel {
display: none;
padding: 18px 20px;
}

.wfa-tab-panel--active {
display: block;
}

/* Avatar color reuse from admin.css conventions via wf-avatar class */
.wfa-modal .wf-avatar {
width: 28px;
height: 28px;
font-size: 11px;
}

/* ── Toast (admin variant — purple-leaning) ───────────────── */
.wfa-toast {
position: fixed;
bottom: 24px;
left: 50%;
transform: translateX(-50%) translateY(20px);
background: #1f2937;
color: #fff;
padding: 13px 22px;
border-radius: 10px;
font-size: 14px;
font-weight: 500;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
z-index: 9999;
opacity: 0;
transition: opacity 0.3s, transform 0.3s;
max-width: 90vw;
text-align: center;
}

.wfa-toast--visible {
opacity: 1;
transform: translateX(-50%) translateY(0);
}

.wfa-toast--error {
background: #dc2626;
}

/* ── Reuse wft- view styles defined in admin.css; ensure they degrade gracefully on frontend ── */
.wft-view-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 8px;
margin-bottom: 14px;
}

.wft-view-row {
display: flex;
flex-direction: column;
gap: 2px;
background: #f9fafb;
border: 1px solid #f3f4f6;
border-radius: 8px;
padding: 10px 12px;
}

.wft-view-label {
font-size: 10px;
font-weight: 600;
color: #9ca3af;
text-transform: uppercase;
letter-spacing: 0.5px;
}

.wft-view-value {
font-size: 13px;
font-weight: 500;
color: #111827;
}

.wft-view-desc {
background: #f9fafb;
border: 1px solid #f3f4f6;
border-radius: 8px;
padding: 12px 14px;
margin-bottom: 4px;
}

.wft-view-desc-label {
font-size: 10px;
font-weight: 600;
color: #9ca3af;
text-transform: uppercase;
letter-spacing: 0.5px;
margin-bottom: 6px;
}

.wft-view-desc p:last-child {
font-size: 13px;
color: #374151;
line-height: 1.6;
margin: 0;
}

.wft-perf-preview {
display: flex;
align-items: center;
gap: 8px;
padding: 10px 14px;
border-radius: 8px;
font-size: 13px;
font-weight: 500;
background: #f0fdf4;
color: #166534;
border: 1px solid #bbf7d0;
}

/* ── Entry rule preview row (shared with admin.css naming) ── */
.wfe-rule-row {
display: flex;
align-items: center;
gap: 10px;
font-size: 13px;
color: #374151;
}

.wfe-rule-icon {
width: 20px;
height: 20px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 12px;
font-weight: 700;
color: #fff;
flex-shrink: 0;
}

.wfe-rule-icon--good {
background: #22c55e;
}

.wfe-rule-icon--warn {
background: #f59e0b;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
.wfa-overview-grid {
grid-template-columns: repeat(2, 1fr);
}

.wfa-quick-actions {
grid-template-columns: repeat(2, 1fr);
}

.wfa-overview-cols {
grid-template-columns: 1fr;
}
}

@media (max-width: 640px) {
.wfa-overview-grid {
grid-template-columns: 1fr;
}

.wfa-settings-grid {
grid-template-columns: 1fr;
}

.wft-view-grid {
grid-template-columns: 1fr;
}
}