@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #0F1420;
    --sidebar-bg: #0B0F19;
    --sidebar-bg-hover: #1A2133;
    --sidebar-text: #8B93A7;
    --sidebar-text-active: #FFFFFF;
    --accent: #14B8A6;
    --accent-dark: #0D9488;
    --accent-soft: rgba(20, 184, 166, 0.14);
    --accent-glow: rgba(20, 184, 166, 0.25);
    --card-bg: #171E2E;
    --card-bg-2: #1D2537;
    --border: #262E42;
    --text: #EDF0F5;
    --text-muted: #8B93A7;
    --success: #2DD4A7;
    --success-soft: rgba(45, 212, 167, 0.14);
    --warning: #F4B740;
    --warning-soft: rgba(244, 183, 64, 0.14);
    --danger: #F35B6E;
    --danger-soft: rgba(243, 91, 110, 0.14);
    --radius: 14px;
    --radius-sm: 9px;
    --radius-lg: 20px;
    --radius-pill: 9999px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
    --shadow-md: 0 6px 16px rgba(0,0,0,0.3);
    --shadow-lg: 0 12px 28px rgba(0,0,0,0.4);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
}
a { color: var(--accent); text-decoration: none; }

/* Global fallback so bare <select>/<input> (filter bars, inline status
   dropdowns, quick-add forms) aren't stuck with browser-default white */
select, input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="date"], input[type="month"], input[type="file"] {
    background: var(--card-bg-2); color: var(--text); border: 1.5px solid var(--border);
    border-radius: var(--radius-sm); font-family: inherit; padding: 7px 9px; font-size: 13px;
}
select:focus, input:focus { outline: none; border-color: var(--accent); }
option { background: var(--card-bg-2); color: var(--text); }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; font-weight: 700; margin: 0 0 4px; letter-spacing: -0.01em; }
h2 { font-size: 15px; font-weight: 700; margin: 0 0 14px; letter-spacing: -0.01em; }

/* ===== LOGIN ===== */
.login-body {
    display: flex; align-items: center; justify-content: center; height: 100vh;
    background: radial-gradient(circle at 20% 20%, #1E293B, #0B1220 70%);
    font-family: 'Inter', sans-serif;
}
.login-box {
    background: var(--card-bg); padding: 40px 36px; border-radius: 16px; width: 340px; border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.login-brand { display: flex; justify-content: center; margin-bottom: 6px; }
.login-brand .brand-mark { width: 44px; height: 44px; border-radius: 12px; font-size: 19px; }
.login-box h2 { margin: 0; text-align: center; font-size: 21px; color: var(--text); letter-spacing: -0.01em; }
.login-box h2 strong { color: var(--accent-dark); }
.login-sub { text-align: center; margin: 2px 0 6px; color: var(--text-muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.login-box label { display: block; margin: 14px 0 5px; font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.login-box input {
    width: 100%; padding: 11px 12px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 14px;
    transition: border-color .15s; background: var(--card-bg-2); color: var(--text); font-family: inherit;
}
.login-box input:focus { outline: none; border-color: var(--accent); }
.login-box button {
    width: 100%; margin-top: 22px; padding: 12px; background: var(--accent); color: #fff; border: none;
    border-radius: 8px; font-weight: 700; cursor: pointer; letter-spacing: .03em; font-size: 13px;
    transition: background .15s;
}
.login-box button:hover { background: var(--accent-dark); }

/* ===== APP SHELL ===== */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
    width: 232px; background: linear-gradient(180deg, #111827 0%, #0B1220 100%); flex-shrink: 0;
    display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 22px 20px; }
.brand-mark {
    width: 32px; height: 32px; background: linear-gradient(135deg, var(--accent), #0891B2); color: #fff; border-radius: 9px;
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(79,70,229,0.35);
}
.brand-text { color: var(--text); font-weight: 400; font-size: 15px; }
.brand-text strong { font-weight: 800; }

.sidebar-nav { display: flex; flex-direction: column; gap: 18px; padding: 14px 14px; flex: 1; overflow-y: auto; }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-group-title {
    font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--text-muted); padding: 0 12px 6px; opacity: .8;
}
.sidebar-nav a {
    display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: var(--radius-sm);
    color: var(--sidebar-text); font-weight: 500; font-size: 13.5px; text-decoration: none;
    transition: background .15s, color .15s, transform .12s;
}
.sidebar-nav a:hover { background: var(--sidebar-bg-hover); color: #fff; transform: translateX(2px); }
.sidebar-nav a.active { background: var(--accent); color: #fff; font-weight: 600; box-shadow: 0 4px 12px var(--accent-glow); }
.nav-ico { font-size: 14px; width: 18px; text-align: center; }
.sidebar-nav a.active .nav-ico { color: #fff; }

.sidebar-footer { padding: 12px; border-top: 1px solid #1F2937; }
.logout-link { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 8px; color: #F87171 !important; font-size: 13.5px; font-weight: 500; }
.logout-link:hover { background: var(--sidebar-bg-hover); text-decoration: none; }

.main-area { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.topbar {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--card-bg); padding: 14px 28px; border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 5; gap: 24px;
}
.topbar-title { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; flex-shrink: 0; }
.topbar-actions { display: flex; align-items: center; gap: 18px; }

.search-box {
    display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--border);
    padding: 8px 14px; border-radius: var(--radius-sm); width: 100%; max-width: 380px; transition: all .2s;
}
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); background: var(--card-bg-2); }
.search-box i { color: var(--text-muted); font-size: 13px; }
.search-box input { border: none; background: transparent; outline: none; font-size: 13.5px; width: 100%; font-family: inherit; color: var(--text); }

.bell { position: relative; font-size: 17px; color: var(--text-muted) !important; text-decoration: none !important; line-height: 1; }
.bell-count {
    position: absolute; top: -7px; right: -9px; background: var(--danger); color: #fff;
    font-size: 10px; font-weight: 700; border-radius: 10px; padding: 1px 5px; line-height: 1.4;
}

.user-chip { display: flex; align-items: center; gap: 10px; }
.avatar {
    width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark);
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px;
}
.user-info { display: flex; flex-direction: column; line-height: 1.25; }
.user-name { font-weight: 600; font-size: 13px; }
.user-role { font-size: 11px; color: var(--text-muted); }

.content { max-width: 1200px; margin: 0 auto; padding: 24px 28px 48px; width: 100%; }

/* ===== CARDS ===== */
.card {
    background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 22px 24px; margin-bottom: 20px; box-shadow: var(--shadow-sm);
}

/* ===== FORMS ===== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 5px; }
.form-grid input, .form-grid select, .form-grid textarea {
    width: 100%; padding: 9px 11px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 13.5px;
    font-family: inherit; transition: border-color .15s, box-shadow .15s; background: var(--card-bg-2); color: var(--text);
}
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-grid textarea { min-height: 70px; resize: vertical; }
.form-actions { grid-column: 1 / -1; }

button, .btn {
    background: var(--accent); color: #fff; border: none; padding: 10px 18px;
    border-radius: var(--radius-sm); cursor: pointer; font-weight: 600; font-size: 13px; letter-spacing: .01em;
    transition: background .15s; display: inline-block;
}
button:hover, .btn:hover { background: var(--accent-dark); text-decoration: none; }

/* ===== TABLE ===== */
.table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.table th {
    text-align: left; padding: 10px 12px; font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .04em; color: var(--text-muted); border-bottom: 1.5px solid var(--border);
}
.table td { text-align: left; padding: 12px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.table tr:hover td { background: var(--card-bg-2); }
.table tr.overdue td { background: var(--danger-soft); }
.table tr.overdue:hover td { background: rgba(243,91,110,0.22); }
.table select { padding: 6px 8px; border-radius: 6px; border: 1.5px solid var(--border); font-size: 12.5px; }

/* Monday.com-style colored stripe on the first cell, keyed to status */
.table tr[data-status] td:first-child { border-left: 4px solid var(--stripe, #CBD5E1); }
.table tr[data-status="to_do"] { --stripe: #94A3B8; }
.table tr[data-status="in_progress"] { --stripe: #3B82F6; }
.table tr[data-status="internal_review"] { --stripe: #8B5CF6; }
.table tr[data-status="qa"] { --stripe: #EC4899; }
.table tr[data-status="changes_required"] { --stripe: #DC2626; }
.table tr[data-status="qa_retest"] { --stripe: #D97706; }
.table tr[data-status="qa_passed"] { --stripe: #10B981; }
.table tr[data-status="client_review"] { --stripe: #6366F1; }
.table tr[data-status="client_changes"] { --stripe: #DC2626; }
.table tr[data-status="approved"] { --stripe: #16A34A; }
.table tr[data-status="deployment"] { --stripe: #06B6D4; }
.table tr[data-status="completed"] { --stripe: #16A34A; }

/* ===== BADGES ===== */
.badge { padding: 4px 10px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 700; letter-spacing: .01em; display: inline-block; }
.status-active { background: var(--success-soft); color: var(--success); }
.status-inactive { background: rgba(139,147,167,0.16); color: var(--text-muted); }
.priority-high { background: rgba(244,183,64,0.14); color: #F4B740; border: 1px solid rgba(244,183,64,0.35); }
.priority-medium { background: rgba(234,179,8,0.14); color: #EAB308; border: 1px solid rgba(234,179,8,0.35); }
.priority-low { background: rgba(139,147,167,0.14); color: var(--text-muted); border: 1px solid var(--border); }

/* ===== DASHBOARD STATS ===== */
.stats-row { display: flex; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.stat {
    background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 24px;
    box-shadow: var(--shadow-sm); min-width: 120px; flex: 1;
}
.stat .num { display: block; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.stat-icon {
    display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
    border-radius: var(--radius-sm); font-size: 15px; margin-bottom: 10px;
}
.stat .label { font-size: 12px; color: var(--text-muted); font-weight: 600; margin-top: 2px; }
.stat.overdue .num { color: var(--danger); }

/* ===== FILTERS ===== */
.filter-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.filters { display: flex; align-items: center; gap: 8px; }
.filters a { padding: 7px 14px; border-radius: 8px; color: var(--text-muted); font-weight: 600; font-size: 13px; }
.filters a:hover { background: var(--accent-soft); text-decoration: none; }
.filters a.active { background: var(--accent); color: #061410; }
.filters select { padding: 8px 10px; border-radius: 8px; border: 1.5px solid var(--border); font-size: 13px; }
.month-picker input { padding: 8px 12px; border-radius: 8px; border: 1.5px solid var(--border); font-size: 13px; font-family: inherit; }

.links-row { margin: 10px 0 20px; display: flex; gap: 18px; flex-wrap: wrap; }
.links-row a, .links-row span { font-size: 13px; font-weight: 600; color: var(--accent); }

/* ===== COMMENTS / ATTACHMENTS ===== */
.comment-list, .attachment-list { list-style: none; padding: 0; margin: 0 0 14px; }
.comment-list li, .attachment-list li { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.comment-list .timestamp { color: var(--text-muted); font-size: 11.5px; margin-left: 8px; }
.remarks-card textarea { width: 100%; min-height: 80px; padding: 10px; border: 1.5px solid var(--border); border-radius: 8px; font-family: inherit; margin-bottom: 10px; }

/* ===== ALERTS ===== */
.error { color: var(--danger); background: var(--danger-soft); padding: 11px 14px; border-radius: 8px; font-size: 13.5px; font-weight: 500; margin-bottom: 16px; }
.success { color: var(--success); background: var(--success-soft); padding: 11px 14px; border-radius: 8px; font-size: 13.5px; font-weight: 500; margin-bottom: 16px; }

/* ===== NOTIFICATIONS ===== */
.notif-list { list-style: none; padding: 0; margin: 0; }
.notif-list li { border-bottom: 1px solid var(--border); }
.notif-list li a { display: flex; align-items: center; gap: 12px; padding: 13px 8px; color: inherit; border-radius: 8px; }
.notif-list li a:hover { background: var(--card-bg-2); text-decoration: none; }
.notif-list li.unread { background: var(--accent-soft); border-radius: 8px; }
.notif-type { font-size: 10.5px; font-weight: 700; text-transform: uppercase; color: var(--accent); min-width: 110px; letter-spacing: .03em; }
.notif-msg { flex: 1; font-size: 13.5px; }
.notif-list .timestamp { color: var(--text-muted); font-size: 11.5px; white-space: nowrap; }

/* ===== SCHEDULE ===== */
.schedule-day h2 { display: flex; align-items: center; gap: 8px; }
.schedule-day.overdue h2 { color: var(--danger); }

/* ===== PERFORMANCE / REPORTS ===== */
.perf-table td { vertical-align: middle; }
.perf-table small { color: var(--text-muted); font-size: 11px; }
.score-cell { min-width: 160px; }
.score-bar-wrap { background: var(--card-bg-2); border: 1px solid var(--border); border-radius: 20px; height: 8px; overflow: hidden; margin-bottom: 5px; }
.score-bar { height: 100%; border-radius: 20px; transition: width .3s; }
.score-bar.score-good { background: var(--success); }
.score-bar.score-mid { background: var(--warning); }
.score-bar.score-low { background: var(--danger); }
.score-label { font-size: 12px; font-weight: 700; }
.score-label.score-good { color: var(--success); }
.score-label.score-mid { color: var(--warning); }
.score-label.score-low { color: var(--danger); }
.score-na { color: var(--text-muted); font-size: 12px; }
.legend { font-size: 13px; color: var(--text-muted); line-height: 2; }
.legend .badge { margin: 0 4px; }

/* ===== TABS (Reports) ===== */
.tab-bar { display: flex; gap: 6px; margin-bottom: 18px; border-bottom: 1.5px solid var(--border); flex-wrap: wrap; }
.tab-bar a { padding: 10px 16px; font-weight: 600; font-size: 13px; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -1.5px; }
.tab-bar a:hover { color: var(--accent); text-decoration: none; }
.tab-bar a.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ===== TEAMS ===== */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.team-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: 0 1px 2px rgba(15,23,42,0.04); }
.team-card h3 { margin: 0 0 2px; font-size: 15px; font-weight: 700; }
.team-card .team-lead { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.team-member-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--border); font-size: 13px; }
.team-member-row:first-of-type { border-top: none; }
.member-name { font-weight: 600; }
.member-desig { color: var(--text-muted); font-size: 11.5px; display: block; }
.status-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; }
.status-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.status-dot.working::before { background: var(--success); }
.status-dot.ontask::before { background: var(--warning); }
.status-dot.available::before { background: #CBD5E1; }
.status-dot.working { color: var(--success); }
.status-dot.ontask { color: var(--warning); }
.status-dot.available { color: var(--text-muted); }

/* ===== CLIENT VIEW ===== */
.client-header { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.client-meta { color: var(--text-muted); font-size: 13px; line-height: 1.9; }
.project-pill-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.project-pill { background: var(--accent-soft); color: var(--accent-dark); padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }

/* ===== RECURRENCE ===== */
.recurrence-fields { display: none; grid-column: 1 / -1; grid-template-columns: 1fr 1fr; gap: 16px; background: var(--accent-soft); padding: 14px; border-radius: 8px; }
.recurrence-fields.show { display: grid; }
.check-row { display: flex; align-items: center; gap: 8px; grid-column: 1 / -1; }
.check-row input { width: auto; }
.check-row label { margin: 0; text-transform: none; font-size: 13px; color: var(--text); font-weight: 600; }
.recurring-tag { font-size: 10.5px; font-weight: 700; color: var(--accent-dark); background: var(--accent-soft); padding: 2px 8px; border-radius: 20px; margin-left: 6px; vertical-align: middle; }

/* ===== BACKUP ===== */
.backup-list { list-style: none; margin: 0; padding: 0; }
.backup-list li { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.backup-size { color: var(--text-muted); font-size: 12px; margin-left: 10px; }
.hint { color: var(--text-muted); font-size: 12.5px; line-height: 1.8; margin-top: 4px; }

/* ============================================================
   WORKFLOW STATUSES (12-stage pipeline)
   ============================================================ */
.status-to_do            { background: rgba(139,147,167,0.16); color: #ADB4C4; }
.status-in_progress      { background: rgba(59,130,246,0.16); color: #6BA6F8; }
.status-internal_review  { background: rgba(167,139,250,0.18); color: #B49BFA; }
.status-qa               { background: rgba(244,114,182,0.16); color: #F49AC7; }
.status-changes_required { background: var(--danger-soft); color: var(--danger); }
.status-qa_retest        { background: var(--warning-soft); color: var(--warning); }
.status-qa_passed        { background: var(--success-soft); color: var(--success); }
.status-client_review    { background: var(--accent-soft); color: var(--accent); }
.status-client_changes   { background: var(--danger-soft); color: var(--danger); }
.status-approved         { background: var(--success-soft); color: var(--success); }
.status-deployment       { background: rgba(34,211,238,0.16); color: #67E3F4; }
.status-completed        { background: var(--success-soft); color: var(--success); }
.team-badge { background: rgba(167,139,250,0.16); color: #B49BFA; }

/* ============================================================
   AVATARS
   ============================================================ */
.avatar-img { border-radius: 50%; object-fit: cover; flex-shrink: 0; vertical-align: middle; box-shadow: 0 0 0 2px var(--card-bg), 0 0 0 3px var(--accent-soft); }
.avatar-initials {
    border-radius: 50%; color: #fff; font-weight: 700; display: inline-flex; align-items: center;
    justify-content: center; flex-shrink: 0; vertical-align: middle; box-shadow: 0 0 0 2px var(--card-bg), 0 0 0 3px var(--accent-soft);
    letter-spacing: -0.02em;
}
.profile-photo-row { display: flex; align-items: center; gap: 18px; }
.profile-card .form-grid { margin-top: 0; }
.two-col-forms { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.two-col-forms .form-grid { margin: 0; }
@media (max-width: 720px) { .two-col-forms { grid-template-columns: 1fr; } }

/* ============================================================
   ACTIVITY / HISTORY TIMELINE
   ============================================================ */
.activity-list { list-style: none; margin: 0; padding: 0; }
.activity-list li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; align-items: flex-start; }
.activity-list li:last-child { border-bottom: none; }
.activity-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; background: var(--accent); }
.activity-dot.activity-created { background: var(--success); }
.activity-dot.activity-status_change { background: var(--accent); }
.activity-dot.activity-reassigned { background: var(--warning); }
.activity-dot.activity-comment { background: #94A3B8; }
.activity-dot.activity-attachment { background: #06B6D4; }
.activity-body { flex: 1; line-height: 1.6; }
.activity-body .timestamp { display: block; margin-top: 2px; }

/* ============================================================
   ANIMATIONS — subtle motion for a livelier, more modern feel
   ============================================================ */
@keyframes fadeSlideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulseDot { 0%, 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0.45); } 70% { box-shadow: 0 0 0 6px rgba(22,163,74,0); } }
@keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

.content { animation: fadeSlideUp .35s ease both; }
.card, .stat, .team-card { animation: fadeIn .4s ease both; transition: transform .18s ease, box-shadow .18s ease; }
.card:hover, .stat:hover, .team-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15,23,42,0.08); }

.status-dot.working::before { animation: pulseDot 1.6s infinite; }

button, .btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    box-shadow: 0 1px 2px rgba(79,70,229,0.15);
    transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
}
button:hover, .btn:hover {
    background: linear-gradient(135deg, var(--accent-dark), #3730A3);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(79,70,229,0.28);
}
button:active, .btn:active { transform: translateY(0); }

.login-body {
    background: linear-gradient(-45deg, #0B1220, #1E1B4B, #1E293B, #312E81);
    background-size: 300% 300%;
    animation: gradientShift 12s ease infinite;
}
.login-box { animation: fadeSlideUp .45s cubic-bezier(.2,.8,.2,1) both; }

.sidebar-nav a, .filters a, .tab-bar a { transition: background .15s ease, color .15s ease, transform .12s ease; }
.sidebar-nav a:hover { transform: translateX(2px); }
.badge { transition: transform .12s ease; }
.score-bar { transition: width .6s cubic-bezier(.2,.8,.2,1); }

/* ============================================================
   KANBAN BOARD VIEW (Asana/Monday.com style)
   ============================================================ */
.board-wrap { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 14px; align-items: flex-start; }
.board-col { background: var(--card-bg-2); border-radius: var(--radius); min-width: 270px; max-width: 270px; flex-shrink: 0; }
.board-col-head {
    display: flex; align-items: center; justify-content: space-between; padding: 12px 14px;
    font-size: 12.5px; font-weight: 700; border-top: 3px solid var(--stripe, var(--accent));
    border-radius: var(--radius) var(--radius) 0 0;
}
.board-col-head .count { background: rgba(15,23,42,0.08); border-radius: 20px; padding: 1px 9px; font-size: 11px; }
.board-cards { display: flex; flex-direction: column; gap: 10px; padding: 4px 10px 10px; min-height: 20px; }
.board-card {
    background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 13px;
    box-shadow: var(--shadow-sm); text-decoration: none; color: var(--text); display: block;
    transition: transform .12s ease, box-shadow .12s ease;
}
.board-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }
.board-card-title { font-size: 13px; font-weight: 600; margin-bottom: 8px; line-height: 1.35; }
.board-card-meta { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--text-muted); }
.board-card-client { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }
.board-card.overdue { border-left: 3px solid var(--danger); }
.view-toggle { display: inline-flex; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 3px; gap: 2px; }
.view-toggle a { padding: 6px 14px; border-radius: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
.view-toggle a.active { background: var(--card-bg); color: var(--accent); box-shadow: var(--shadow-sm); }
.view-toggle a:hover { text-decoration: none; }

/* ============================================================
   DONUT RING STAT (reference-style progress ring)
   ============================================================ */
.stat-donut-row { display: flex; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.stat-donut-card {
    background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 20px 22px; box-shadow: var(--shadow-sm); flex: 1; min-width: 200px;
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.stat-donut-info .stat-donut-label { font-size: 12.5px; color: var(--text-muted); font-weight: 600; margin-bottom: 6px; }
.stat-donut-info .stat-donut-num { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.stat-donut-info .stat-donut-sub { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.donut-ring {
    width: 62px; height: 62px; border-radius: 50%; flex-shrink: 0;
    background: conic-gradient(var(--ring-color, var(--accent)) calc(var(--pct, 0) * 1%), var(--card-bg-2) 0);
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.donut-ring::before {
    content: ''; position: absolute; inset: 7px; background: var(--card-bg); border-radius: 50%;
}
.donut-ring span {
    position: relative; z-index: 1; font-size: 11px; font-weight: 700; color: var(--ring-color, var(--accent));
}

/* ============================================================
   AVATAR STACK (overlapping "Members" avatars, reference-style)
   ============================================================ */
.avatar-stack { display: inline-flex; align-items: center; }
.avatar-stack-item { margin-left: -10px; display: inline-flex; border-radius: 50%; }
.avatar-stack-item:first-child { margin-left: 0; }
.avatar-overflow {
    background: var(--card-bg-2); color: var(--text-muted); font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
    box-shadow: 0 0 0 2px var(--card-bg), 0 0 0 3px var(--accent-soft);
}

/* ============================================================
   APEX-STYLE TASK ROW (matches the reference: avatar+title+sub,
   members stack, status dot, progress bar, files, 3-dot menu)
   ============================================================ */
.apex-row-main { display: flex; align-items: center; gap: 12px; }
.apex-row-title { font-weight: 600; font-size: 13.5px; color: var(--text); }
.apex-row-title:hover { color: var(--accent); }
.apex-row-sub { font-size: 11.5px; color: var(--text-muted); margin-top: 3px; }

.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; margin-right: 7px; vertical-align: middle; }
.apex-status { display: inline-flex; align-items: center; font-size: 13px; font-weight: 500; }

.apex-files { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-muted); }
.apex-files a { color: var(--text-muted); }
.apex-files a:hover { color: var(--accent); }

/* 3-dot row menu (pure CSS, <details>/<summary>, no JS needed) */
.row-menu { position: relative; }
.row-menu summary { list-style: none; cursor: pointer; }
.row-menu summary::-webkit-details-marker { display: none; }
.dot-btn {
    width: 32px; height: 32px; border-radius: 50%; background: var(--card-bg-2); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: all .15s;
}
.dot-btn:hover { background: var(--accent-soft); color: var(--accent); }
.row-menu-panel {
    position: absolute; right: 0; top: 38px; z-index: 20; background: var(--card-bg); border: 1px solid var(--border);
    border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: 10px 12px; min-width: 190px;
    animation: fadeSlideUp .15s ease both;
}
.row-menu-panel a { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 2px; color: var(--text); }
.row-menu-panel a:hover { color: var(--accent); }
.row-menu-panel select { width: 100%; margin-top: 2px; }
.apex-table td { vertical-align: middle; }