/* ════════════════════════════════════════════════════════════
   ProYönet — Ultra-Modern Design System
   ════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Design Tokens ──────────────────────────────────────────── */
:root {
    --primary:        #7C3AED;
    --primary-dark:   #6D28D9;
    --primary-light:  #EDE9FE;
    --primary-muted:  rgba(124,58,237,.12);
    --primary-glow:   rgba(124,58,237,.3);

    --accent:         #06B6D4;
    --accent-light:   #CFFAFE;

    --success:        #10B981;
    --success-bg:     #D1FAE5;
    --success-dark:   #065F46;

    --warning:        #F59E0B;
    --warning-bg:     #FEF3C7;
    --warning-dark:   #92400E;

    --danger:         #EF4444;
    --danger-bg:      #FEE2E2;
    --danger-dark:    #991B1B;

    --indigo:         #6366F1;
    --rose:           #F43F5E;

    /* Surfaces — required design tokens */
    --surface-0:      #FFFFFF;
    --surface-1:      #F5F7FB;
    --surface-2:      #EBEDF5;
    --surface-3:      #E0E3EF;
    /* Surface aliases for backward compat */
    --bg:             var(--surface-1);
    --bg-2:           var(--surface-2);
    --card:           var(--surface-0);
    --card-hover:     #FAFBFF;

    /* Sidebar */
    --sb-bg:          #0F0F1A;
    --sb-surface:     rgba(255,255,255,.04);
    --sb-border:      rgba(255,255,255,.07);
    --sb-text:        #8B9AB0;
    --sb-active-bg:   rgba(124,58,237,.2);
    --sb-active-text: #C4B5FD;
    --sb-hover:       rgba(255,255,255,.06);

    /* Border & Text */
    --border:         #E5E7EF;
    --border-sm:      #F0F1F8;
    --text:           #111827;
    --text-2:         #374151;
    --text-muted:     #6B7280;
    --text-light:     #9CA3AF;

    /* Radius */
    --r:              14px;
    --r-sm:           10px;
    --r-xs:           6px;
    --r-lg:           20px;

    /* Shadows */
    --shadow-xs:      0 1px 2px rgba(0,0,0,.05);
    --shadow-sm:      0 0 0 1px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.06);
    --shadow-md:      0 0 0 1px rgba(0,0,0,.06), 0 8px 32px rgba(0,0,0,.10);
    --shadow-lg:      0 0 0 1px rgba(0,0,0,.08), 0 20px 60px rgba(0,0,0,.16);
    --shadow-glow:    0 8px 32px var(--primary-glow);

    --sidebar-w: 248px;
    --transition: .15s ease;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* ── Layout ─────────────────────────────────────────────────── */
.layout { display: flex; min-height: 100vh; }

/* ── Sidebar ────────────────────────────────────────────────── */
.sidebar {
    width: var(--sidebar-w);
    background: var(--sb-bg);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    border-right: 1px solid var(--sb-border);
    z-index: 100;
    scrollbar-width: none;
}
.sidebar::-webkit-scrollbar { display: none; }

.sidebar-header {
    padding: 20px 16px 16px;
    border-bottom: 1px solid var(--sb-border);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.sidebar-collapse-btn {
    display: flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 8px; border: none;
    background: var(--sb-hover); color: var(--sb-text); cursor: pointer;
    transition: all var(--transition); flex-shrink: 0;
}
.sidebar-collapse-btn:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ── Sidebar Collapsed State ─── */
.layout.sidebar-collapsed .sidebar { width: 64px; }
.layout.sidebar-collapsed .logo-text,
.layout.sidebar-collapsed .nav-item > span:not(.nav-badge),
.layout.sidebar-collapsed .nav-section,
.layout.sidebar-collapsed .user-info,
.layout.sidebar-collapsed .logout-btn { display: none; }
.layout.sidebar-collapsed .nav-item { justify-content: center; padding: 10px; }
.layout.sidebar-collapsed .nav-item svg { width: 20px; height: 20px; opacity: .9; }
.layout.sidebar-collapsed .user-card { justify-content: center; padding: 8px; }
.layout.sidebar-collapsed .sidebar-collapse-btn { margin: 0 auto; }

/* ── Nav item tooltip on collapsed sidebar ─── */
.layout.sidebar-collapsed .nav-item { position: relative; }
.layout.sidebar-collapsed .nav-item::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    background: #1E1B2E;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 8px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s;
    z-index: 1000;
    box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.layout.sidebar-collapsed .nav-item:hover::after { opacity: 1; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, var(--primary), #9333EA);
    border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(124,58,237,.5);
}
.logo-icon svg { width: 20px; height: 20px; color: #fff; }
.logo-text { font-size: 17px; font-weight: 800; color: #fff; letter-spacing: -.5px; }
.logo-text span { color: var(--sb-active-text); }

.sidebar-nav {
    padding: 12px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.nav-section {
    padding: 14px 10px 5px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(139,154,176,.4);
    user-select: none;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--r-sm);
    color: var(--sb-text);
    font-size: 13.5px;
    font-weight: 500;
    transition: all var(--transition);
    position: relative;
    white-space: nowrap;
}
.nav-item svg { width: 16px; height: 16px; flex-shrink: 0; opacity: .75; transition: opacity var(--transition); }
.nav-item:hover {
    background: var(--sb-hover);
    color: #CBD5E1;
}
.nav-item:hover svg { opacity: 1; }
.nav-item.active {
    background: var(--sb-active-bg);
    color: var(--sb-active-text);
    font-weight: 600;
}
.nav-item.active svg { opacity: 1; color: var(--sb-active-text); }
.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0; top: 20%; bottom: 20%;
    width: 3px;
    background: var(--primary);
    border-radius: 0 3px 3px 0;
    margin-left: -10px;
}

.nav-badge {
    margin-left: auto;
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 20px;
    min-width: 18px;
    text-align: center;
    line-height: 1.4;
}

.sidebar-footer {
    padding: 10px;
    border-top: 1px solid var(--sb-border);
    flex-shrink: 0;
}
.user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--r-sm);
    background: var(--sb-surface);
    cursor: default;
    transition: background var(--transition);
}
.user-card:hover { background: rgba(255,255,255,.07); }
.user-info { flex: 1; overflow: hidden; min-width: 0; }
.user-name { font-size: 13px; font-weight: 600; color: #E2E8F0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 11px; color: var(--sb-text); margin-top: 1px; }
.logout-btn {
    padding: 6px;
    border-radius: 7px;
    color: var(--sb-text);
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition);
}
.logout-btn svg { width: 16px; height: 16px; }
.logout-btn:hover { background: rgba(239,68,68,.15); color: #FCA5A5; }

/* ── Avatar ─────────────────────────────────────────────────── */
.avatar {
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--indigo));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    width: 36px; height: 36px; font-size: 13px;
}
.avatar-sm  { width: 28px; height: 28px; font-size: 10px; }
.avatar-md  { width: 40px; height: 40px; font-size: 15px; }
.avatar-lg  { width: 52px; height: 52px; font-size: 20px; }
.avatar-color-0 { background: linear-gradient(135deg, #7C3AED, #6366F1); }
.avatar-color-1 { background: linear-gradient(135deg, #EC4899, #F43F5E); }
.avatar-color-2 { background: linear-gradient(135deg, #10B981, #06B6D4); }
.avatar-color-3 { background: linear-gradient(135deg, #F59E0B, #EF4444); }
.avatar-color-4 { background: linear-gradient(135deg, #3B82F6, #7C3AED); }

/* ── Main Content ────────────────────────────────────────────── */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

/* ── Topbar ─────────────────────────────────────────────────── */
.topbar {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 0 32px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 90;
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.breadcrumb-sep { color: var(--text-light); }
.breadcrumb-current { font-weight: 600; color: var(--text); }
.breadcrumb-parent { color: var(--text-muted); }
.breadcrumb-parent:hover { color: var(--primary); }

.topbar-right { display: flex; align-items: center; gap: 8px; }
.topbar-btn {
    width: 36px; height: 36px;
    border-radius: var(--r-xs);
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition);
    position: relative;
}
.topbar-btn svg { width: 16px; height: 16px; }
.topbar-btn:hover { background: var(--bg); color: var(--primary); border-color: var(--primary-muted); }
.topbar-notif-count {
    position: absolute;
    top: -4px; right: -4px;
    background: var(--danger);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
    line-height: 1.5;
}

/* ── Page Wrapper ───────────────────────────────────────────── */
.page-content { padding: 28px 32px; flex: 1; }

/* ── Page Header ────────────────────────────────────────────── */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
}
.page-title { font-size: 22px; font-weight: 800; letter-spacing: -.5px; color: var(--text); }
.page-subtitle { font-size: 13.5px; color: var(--text-muted); margin-top: 4px; }
.page-header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 500;
    transition: color var(--transition);
    margin-bottom: 4px;
}
.back-link svg { width: 14px; height: 14px; }
.back-link:hover { color: var(--primary); }

/* ── Cards ──────────────────────────────────────────────────── */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: var(--shadow-sm);
}
.card-header {
    padding: 18px 24px 16px;
    border-bottom: 1px solid var(--border-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.card-title { font-size: 15px; font-weight: 700; letter-spacing: -.25px; }
.card-subtitle { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.card-body { padding: 20px 24px; }

/* ── Stat Cards ─────────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 22px 24px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card-accent {
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    border-radius: 2px 2px 0 0;
}
.stat-card:nth-child(1) .stat-card-accent { background: linear-gradient(90deg, #7C3AED, #6366F1); }
.stat-card:nth-child(2) .stat-card-accent { background: linear-gradient(90deg, #10B981, #06B6D4); }
.stat-card:nth-child(3) .stat-card-accent { background: linear-gradient(90deg, #EF4444, #F43F5E); }
.stat-card:nth-child(4) .stat-card-accent { background: linear-gradient(90deg, #F59E0B, #EF4444); }
.stat-card:nth-child(5) .stat-card-accent { background: linear-gradient(90deg, #06B6D4, #3B82F6); }

.stat-icon-box {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
    flex-shrink: 0;
}
.stat-icon-box svg { width: 22px; height: 22px; }
.sib-violet  { background: var(--primary-light); color: var(--primary); }
.sib-green   { background: var(--success-bg);    color: var(--success); }
.sib-red     { background: var(--danger-bg);     color: var(--danger); }
.sib-yellow  { background: var(--warning-bg);    color: var(--warning); }
.sib-cyan    { background: var(--accent-light);  color: var(--accent); }

.stat-value { font-size: 32px; font-weight: 800; line-height: 1; letter-spacing: -1.5px; margin-bottom: 4px; }
.stat-label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.stat-meta  { font-size: 12px; color: var(--text-light); margin-top: 8px; display: flex; align-items: center; gap: 5px; }
.stat-trend-up   { color: var(--success); display: inline-flex; align-items: center; gap: 2px; font-weight: 600; }
.stat-trend-down { color: var(--danger);  display: inline-flex; align-items: center; gap: 2px; font-weight: 600; }

/* ── Alerts ─────────────────────────────────────────────────── */
.alert {
    padding: 13px 18px;
    border-radius: var(--r-sm);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 500;
    animation: alertIn .25s ease;
}
@keyframes alertIn { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:translateY(0); } }
.alert-success { background: var(--success-bg);  color: var(--success-dark); border: 1px solid #6EE7B7; }
.alert-error   { background: var(--danger-bg);   color: var(--danger-dark);  border: 1px solid #FCA5A5; }
.alert-danger  { background: var(--danger-bg);   color: var(--danger-dark);  border: 1px solid #FCA5A5; }
.alert-warning { background: var(--warning-bg);  color: var(--warning-dark); border: 1px solid #FDE68A; }
.alert-info    { background: var(--accent-light); color: #0E7490; border: 1px solid #67E8F9; }
.alert-close { background: none; border: none; cursor: pointer; font-size: 20px; color: inherit; opacity: .5; line-height: 1; padding: 0 2px; flex-shrink: 0; }
.alert-close:hover { opacity: 1; }
.alert-icon { display: flex; align-items: center; flex-shrink: 0; }
.alert-icon svg { width: 18px; height: 18px; }
.alert-text { flex: 1; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: var(--r-sm);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    white-space: nowrap;
    font-family: inherit;
    line-height: 1;
    text-decoration: none;
}
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.btn:disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 10px var(--primary-glow);
}
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 4px 18px var(--primary-glow); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); box-shadow: none; }

.btn-secondary { background: #F3F4F8; color: var(--text-2); border: 1px solid var(--border); }
.btn-secondary:hover { background: #EAEBF3; }

.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg); color: var(--text); border-color: #C9CBD8; }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #DC2626; }

.btn-danger-ghost { background: transparent; color: var(--danger); border: 1px solid #FECACA; }
.btn-danger-ghost:hover { background: var(--danger-bg); border-color: #FCA5A5; }

.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #059669; }

.btn-outline { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); }

.btn-sm { padding: 6px 12px; font-size: 12.5px; }
.btn-sm svg { width: 13px; height: 13px; }
.btn-lg { padding: 12px 24px; font-size: 15px; }
.btn-icon { padding: 7px; }
.btn-icon.btn-sm { padding: 5px; }

/* ── Badges ─────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .1px;
    white-space: nowrap;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.badge-primary   { background: var(--primary-muted);  color: var(--primary); }
.badge-success   { background: var(--success-bg);      color: var(--success-dark); }
.badge-warning   { background: var(--warning-bg);      color: var(--warning-dark); }
.badge-danger    { background: var(--danger-bg);       color: var(--danger-dark); }
.badge-secondary { background: #F0F1F8;                color: var(--text-muted); }
.badge-info      { background: var(--accent-light);    color: #0E7490; }
.badge-purple    { background: #EDE9FE;                color: #5B21B6; }
.badge-orange    { background: #FEF3C7; color: #92400E; }
.badge-admin     { background: rgba(124,58,237,.15);   color: var(--primary); font-size: 10.5px; }
.badge-staff     { background: rgba(100,116,139,.15);  color: #64748B; font-size: 10.5px; }

/* ── Forms ──────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label {
    display: block;
    font-weight: 600;
    font-size: 12.5px;
    margin-bottom: 6px;
    color: var(--text-2);
    letter-spacing: .1px;
}
.form-label-opt { font-weight: 400; color: var(--text-light); font-size: 11px; }
.form-hint { font-size: 11.5px; color: var(--text-light); margin-top: 4px; }

.form-control {
    width: 100%;
    padding: 9px 13px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    font-size: 13.5px;
    background: var(--card);
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    font-family: inherit;
    line-height: 1.4;
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124,58,237,.1);
}
.form-control::placeholder { color: var(--text-light); }
select.form-control { cursor: pointer; }
textarea.form-control { min-height: 90px; resize: vertical; }

/* Assignment Toggle */
.assign-radio { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }

.assign-toggle {
    display: flex;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    padding: 3px;
    gap: 3px;
    margin-bottom: 10px;
}
.assign-toggle-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: none;
    color: var(--text-muted);
    transition: all var(--transition);
    font-family: inherit;
}
.assign-toggle-btn svg { width: 15px; height: 15px; }
.assign-toggle-btn.active {
    background: var(--card);
    color: var(--primary);
    box-shadow: var(--shadow-xs);
}

/* ── Filter Bar ─────────────────────────────────────────────── */
.filter-bar {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 14px 20px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-xs);
}
.search-wrapper { position: relative; }
.search-wrapper svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--text-muted); width: 15px; height: 15px; pointer-events: none; }
.search-input { padding-left: 36px !important; }

/* ── View Toggle ────────────────────────────────────────────── */
.view-toggle {
    display: flex;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 3px;
    gap: 2px;
}
.view-toggle-btn {
    padding: 5px 10px;
    border-radius: 7px;
    border: none;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex; align-items: center;
    transition: all var(--transition);
    font-family: inherit;
}
.view-toggle-btn svg { width: 16px; height: 16px; }
.view-toggle-btn.active { background: var(--card); color: var(--primary); box-shadow: var(--shadow-xs); }

/* ── Tables ─────────────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; }
thead th {
    padding: 11px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .7px;
    border-bottom: 1px solid var(--border);
    background: #F9FAFD;
    white-space: nowrap;
    user-select: none;
}
thead th:first-child { border-radius: var(--r-xs) 0 0 0; }
thead th:last-child  { border-radius: 0 var(--r-xs) 0 0; }
tbody td { padding: 13px 16px; border-bottom: 1px solid var(--border-sm); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background var(--transition); }
tbody tr:hover { background: #FAFBFF; }
.table-link { color: var(--primary); font-weight: 600; transition: color var(--transition); }
.table-link:hover { color: var(--primary-dark); }

/* ── Progress Bar ───────────────────────────────────────────── */
.progress-bar { height: 6px; background: var(--bg-2); border-radius: 3px; overflow: hidden; }
.progress-bar-lg { height: 8px; }
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #9333EA);
    border-radius: 3px;
    transition: width .5s ease;
}
.progress-fill-green { background: linear-gradient(90deg, var(--success), var(--accent)); }
.progress-fill-red   { background: linear-gradient(90deg, var(--warning), var(--danger)); }

/* ── Modal ──────────────────────────────────────────────────── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10,10,25,.6);
    z-index: 500;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    padding: 20px;
}
.modal-overlay.open { display: flex; animation: overlayIn .2s ease; }
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
    background: var(--card);
    border-radius: var(--r-lg);
    padding: 28px;
    width: 100%;
    max-width: 540px;
    box-shadow: var(--shadow-lg);
    max-height: 92vh;
    overflow-y: auto;
    animation: modalIn .25s cubic-bezier(.34,1.3,.64,1);
    border: 1px solid var(--border);
    scrollbar-width: thin;
}
.modal-wide { max-width: 680px; }
@keyframes modalIn { from { opacity:0; transform:scale(.94) translateY(12px); } to { opacity:1; transform:scale(1) translateY(0); } }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; gap: 12px; }
.modal-title { font-size: 18px; font-weight: 800; letter-spacing: -.4px; }
.modal-subtitle { font-size: 13px; color: var(--text-muted); margin-top: 3px; }
.modal-close {
    background: none; border: none; cursor: pointer;
    font-size: 24px; color: var(--text-muted);
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    transition: all var(--transition);
    flex-shrink: 0;
    line-height: 1;
}
.modal-close:hover { background: var(--bg); color: var(--text); }
.modal-footer { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border-sm); }

/* ── Kanban ─────────────────────────────────────────────────── */
.kanban-board { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 20px; min-height: 70vh; }
.kanban-board::-webkit-scrollbar { height: 6px; }
.kanban-board::-webkit-scrollbar-track { background: var(--bg); }
.kanban-board::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.kanban-col {
    flex-shrink: 0;
    width: 280px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r);
    display: flex;
    flex-direction: column;
    max-height: 80vh;
}
.kanban-col-header {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.kanban-col-title { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.kanban-col-indicator { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.kanban-count { font-size: 11px; font-weight: 700; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 2px 7px; color: var(--text-muted); }

.kanban-cards {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 60px;
}
.kanban-cards.drag-over { background: var(--primary-muted); border-radius: var(--r-xs); }

.kanban-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 14px;
    cursor: grab;
    transition: all var(--transition);
    box-shadow: var(--shadow-xs);
}
.kanban-card:active { cursor: grabbing; }
.kanban-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); border-color: var(--primary-muted); }
.kanban-card.dragging { opacity: .5; cursor: grabbing; }
.kanban-card-title { font-size: 13px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.kanban-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.kanban-priority-stripe {
    width: 3px;
    position: absolute;
    left: 0; top: 0; bottom: 0;
    border-radius: var(--r-sm) 0 0 var(--r-sm);
}
.kanban-card { position: relative; }

/* ── Calendar ───────────────────────────────────────────────── */
.calendar-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--border); border-radius: var(--r); overflow: hidden; }
.calendar-day-header { background: #F9FAFD; padding: 10px 8px; text-align: center; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); }
.calendar-cell {
    background: var(--card);
    min-height: 90px;
    padding: 8px;
    vertical-align: top;
    position: relative;
    transition: background var(--transition);
}
.calendar-cell:hover { background: #FAFBFF; }
.calendar-cell.other-month { background: #F9FAFD; }
.calendar-cell.today { background: var(--primary-light); }
.calendar-day-num {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
}
.calendar-cell.today .calendar-day-num { background: var(--primary); color: #fff; }
.calendar-event {
    font-size: 10.5px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 2px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1.5;
}
.calendar-event-task    { background: var(--primary-muted); color: var(--primary); }
.calendar-event-project { background: var(--success-bg);   color: var(--success-dark); }

/* ── Teams & Users Admin ─────────────────────────────────────── */
.member-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.member-chip {
    display: flex; align-items: center; gap: 8px;
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 10px; padding: 7px 10px;
}
.chip-remove {
    background: none; border: none; cursor: pointer;
    color: var(--text-muted); font-size: 18px; line-height: 1;
    padding: 0 2px; border-radius: 4px; transition: all var(--transition);
}
.chip-remove:hover { color: var(--danger); background: var(--danger-bg); }
.add-member-form { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.add-member-form .form-control { max-width: 240px; margin: 0; }

/* ── Project Detail ─────────────────────────────────────────── */
.stat-pills { display: flex; gap: 10px; }
.stat-pill {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    padding: 14px 8px; border-radius: 12px; font-size: 12px;
    font-weight: 500; color: var(--text-muted); gap: 3px; text-align: center;
}
.stat-pill-num { font-size: 24px; font-weight: 800; color: var(--text); line-height: 1; }
.spp-gray  { background: var(--bg); }
.spp-blue  { background: var(--primary-light); }
.spp-blue  .stat-pill-num { color: var(--primary); }
.spp-green { background: var(--success-bg); }
.spp-green .stat-pill-num { color: var(--success); }
.spp-red   { background: var(--danger-bg); }
.spp-red   .stat-pill-num { color: var(--danger); }

.detail-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border-sm); gap: 12px; }
.detail-row:last-child { border-bottom: none; }
.detail-label { font-size: 12.5px; color: var(--text-muted); flex-shrink: 0; }
.detail-val { font-weight: 600; font-size: 13.5px; text-align: right; }

/* ── Activity Feed ──────────────────────────────────────────── */
.activity-feed { display: flex; flex-direction: column; }
.activity-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-sm); }
.activity-item:last-child { border-bottom: none; }
.activity-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--primary); flex-shrink: 0; margin-top: 5px;
}
.activity-dot-success { background: var(--success); }
.activity-dot-warning { background: var(--warning); }
.activity-dot-danger  { background: var(--danger); }
.activity-content { flex: 1; min-width: 0; }
.activity-text { font-size: 13px; line-height: 1.5; }
.activity-time { font-size: 11.5px; color: var(--text-light); margin-top: 2px; }

/* ── Comments ───────────────────────────────────────────────── */
.comment-list { display: flex; flex-direction: column; gap: 14px; }
.comment-item { display: flex; gap: 12px; }
.comment-body { flex: 1; min-width: 0; }
.comment-header { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.comment-author { font-size: 13px; font-weight: 600; }
.comment-date { font-size: 11.5px; color: var(--text-light); }
.comment-text { font-size: 13.5px; line-height: 1.6; color: var(--text-2); background: var(--bg); border-radius: var(--r-sm); padding: 10px 14px; }

/* ── Notification ───────────────────────────────────────────── */
.notif-item {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 16px 20px; border-bottom: 1px solid var(--border-sm);
    transition: background var(--transition);
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--bg); }
.notif-item.unread { background: var(--primary-muted); }
.notif-item.unread:hover { background: rgba(124,58,237,.1); }
.notif-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notif-icon svg { width: 18px; height: 18px; }
.notif-icon-info    { background: var(--accent-light); color: var(--accent); }
.notif-icon-success { background: var(--success-bg);   color: var(--success); }
.notif-icon-warning { background: var(--warning-bg);   color: var(--warning); }
.notif-icon-danger  { background: var(--danger-bg);    color: var(--danger); }
.notif-content { flex: 1; min-width: 0; }
.notif-title { font-size: 13.5px; font-weight: 600; }
.notif-msg   { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.notif-time  { font-size: 11.5px; color: var(--text-light); margin-top: 4px; }
.notif-unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex-shrink: 0; margin-top: 6px; }

/* ── Project Hero ───────────────────────────────────────────── */
.project-hero {
    background: linear-gradient(135deg, var(--sb-bg), #1C1435);
    border-radius: var(--r);
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 32px;
    color: #fff;
    justify-content: space-between;
}
.project-hero-main { flex: 1; min-width: 0; }
.project-hero-title { font-size: 22px; font-weight: 800; letter-spacing: -.5px; }
.project-hero-desc  { font-size: 13.5px; color: rgba(255,255,255,.6); margin-top: 8px; line-height: 1.55; }
.project-hero-stats { flex-shrink: 0; min-width: 180px; }

/* ── Info List (project detail) ─────────────────────────────── */
.info-list { display: flex; flex-direction: column; }
.info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-sm);
    gap: 12px;
}
.info-row:last-child { border-bottom: none; }
.info-row dt { font-size: 12.5px; color: var(--text-muted); font-weight: 500; flex-shrink: 0; }
.info-row dd { font-size: 13px; font-weight: 600; text-align: right; }

/* ── Notification Updated ───────────────────────────────────── */
.notif-item.notif-unread { background: var(--primary-muted); }
.notif-item.notif-unread:hover { background: rgba(124,58,237,.1); }
.notif-body { flex: 1; min-width: 0; }
.notif-text { font-size: 13.5px; line-height: 1.5; }
.notif-actions { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.notif-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--primary-muted); color: var(--primary); }

/* ── Profile ────────────────────────────────────────────────── */
.profile-hero {
    background: linear-gradient(135deg, var(--sb-bg), #1C1435);
    border-radius: var(--r);
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    color: #fff;
}
.profile-avatar { flex-shrink: 0; }
.profile-name { font-size: 22px; font-weight: 800; }
.profile-meta { font-size: 13.5px; color: rgba(255,255,255,.6); margin-top: 4px; }

/* ── Charts ─────────────────────────────────────────────────── */
.chart-container { position: relative; }

/* ── Empty State ────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 64px 20px;
    color: var(--text-muted);
}
.empty-icon {
    width: 64px; height: 64px;
    background: var(--bg);
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px;
}
.empty-icon svg { width: 30px; height: 30px; color: var(--text-light); }
.empty-title { font-size: 16px; font-weight: 700; color: var(--text); }
.empty-desc  { font-size: 13px; margin-top: 6px; max-width: 320px; margin-left: auto; margin-right: auto; }

/* ── Project Card Grid ──────────────────────────────────────── */
.project-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.project-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: all .2s;
}
.project-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.project-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.project-card-name { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.35; }
.project-card-desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }
.project-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border-sm); }

/* ── Login ──────────────────────────────────────────────────── */
.login-page {
    min-height: 100vh;
    background: linear-gradient(145deg, #080A12 0%, #0F0F1A 40%, #130D24 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}
.login-page::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124,58,237,.15) 0%, transparent 70%);
    top: -200px; right: -200px;
    pointer-events: none;
}
.login-page::after {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6,182,212,.1) 0%, transparent 70%);
    bottom: -100px; left: -100px;
    pointer-events: none;
}
.login-card {
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 44px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 32px 80px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.08);
    position: relative;
    z-index: 1;
}
.login-brand { text-align: center; margin-bottom: 36px; }
.login-logo-box {
    width: 66px; height: 66px;
    background: linear-gradient(135deg, var(--primary), #9333EA);
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 12px 32px rgba(124,58,237,.5);
}
.login-logo-box svg { width: 32px; height: 32px; color: #fff; }
.login-title { font-size: 26px; font-weight: 900; letter-spacing: -.6px; color: var(--text); }
.login-title span { color: var(--primary); }
.login-sub { font-size: 14px; color: var(--text-muted); margin-top: 5px; }
.login-error { background: var(--danger-bg); color: var(--danger-dark); border: 1px solid #FCA5A5; border-radius: var(--r-sm); padding: 11px 16px; font-size: 13.5px; font-weight: 500; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.login-btn { width: 100%; justify-content: center; padding: 13px; font-size: 15px; font-weight: 700; letter-spacing: .1px; border-radius: var(--r-sm); margin-top: 6px; }
.login-hint { background: var(--bg); border-radius: var(--r-sm); padding: 12px 16px; font-size: 12.5px; color: var(--text-muted); text-align: center; margin-top: 20px; border: 1px solid var(--border); line-height: 1.6; }
.login-hint strong { color: var(--text); }

/* ── Report ─────────────────────────────────────────────────── */
.report-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border-sm); }
.report-row:last-child { border-bottom: none; }
.report-bar-wrap { flex: 1; }
.report-bar { height: 8px; background: var(--bg-2); border-radius: 4px; overflow: hidden; }
.report-bar-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--primary), #9333EA); transition: width .6s ease; }
.report-label { font-size: 13px; font-weight: 600; min-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.report-count { font-size: 13px; font-weight: 700; color: var(--primary); min-width: 32px; text-align: right; }

/* ── Time Tracking ──────────────────────────────────────────── */
.time-chip { display: inline-flex; align-items: center; gap: 5px; background: var(--accent-light); color: #0E7490; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 20px; }
.time-chip svg { width: 12px; height: 12px; }

/* ── Label Pills ────────────────────────────────────────────── */
.label-pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 600; background: var(--primary-muted); color: var(--primary); }
.label-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }

/* ── Utilities ──────────────────────────────────────────────── */
.grid-2  { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3  { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.grid-4  { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }

.flex            { display: flex; }
.flex-col        { flex-direction: column; }
.items-center    { align-items: center; }
.items-start     { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.flex-wrap       { flex-wrap: wrap; }
.flex-1          { flex: 1; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }

.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }
.mb-6 { margin-bottom: 24px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }

.text-muted  { color: var(--text-muted); }
.text-light  { color: var(--text-light); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-xs   { font-size: 11.5px; }
.text-sm   { font-size: 12.5px; }
.text-base { font-size: 14px; }
.text-lg   { font-size: 16px; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-full { width: 100%; }
.min-w-0 { min-width: 0; }
.hidden { display: none !important; }
.divider { border: none; border-top: 1px solid var(--border-sm); margin: 16px 0; }

/* ── Activity Stream ─────────────────────────────────────────── */
.activity-row { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border-sm); }
.activity-row:last-child { border-bottom: none; }
.activity-icon { width: 24px; height: 24px; border-radius: 50%; background: var(--bg-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.activity-body { flex: 1; min-width: 0; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.activity-user { font-weight: 600; color: var(--text-1); margin-right: 4px; }
.activity-detail { color: var(--text-2); }
.activity-time { font-size: 11px; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; margin-top: 3px; }

/* ── Sticky Table Header ─────────────────────────────────────── */
.table-wrapper { overflow-x: auto; }
.table-wrapper table thead th {
    position: sticky; top: 0; z-index: 2;
    background: var(--surface-1);
    box-shadow: 0 1px 0 var(--border);
}

/* ── Utility ─────────────────────────────────────────────────── */
.btn-xs { font-size: 11px !important; padding: 3px 8px !important; }

/* ── Timer Button (tasks.php) ────────────────────────────────── */
.btn-timer {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--surface-2); border: 1px solid var(--border);
    color: var(--text-2); font-size: 11px; font-weight: 600;
    padding: 3px 8px; border-radius: 20px; cursor: pointer;
    transition: all .18s; white-space: nowrap;
}
.btn-timer:hover { border-color: var(--primary); color: var(--primary); }
.btn-timer.running { background: #FEF2F2; border-color: #EF4444; color: #EF4444; }

/* ── Label Multi-Select (tasks.php) ──────────────────────────── */
.label-multiselect { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 6px; }
.label-option {
    display: inline-flex; align-items: center; gap: 6px;
    cursor: pointer; font-size: 13px; font-weight: 500;
    padding: 4px 10px; border-radius: 20px;
    border: 1px solid var(--border); background: var(--surface-2);
    transition: all .15s; user-select: none;
}
.label-option input { display: none; }
.label-option:has(input:checked) {
    border-color: var(--lc, #6366f1);
    background: color-mix(in srgb, var(--lc, #6366f1) 10%, transparent);
    color: var(--lc, #6366f1);
}
.label-option .label-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
    :root { --sidebar-w: 64px; }
    .logo-text, .nav-item > span:not(.nav-badge), .nav-section,
    .user-info, .logout-btn { display: none; }
    .nav-item { justify-content: center; padding: 10px; }
    .nav-item svg { width: 20px; height: 20px; }
    .user-card { justify-content: center; padding: 8px; }
    .page-content { padding: 20px 16px; }
    .topbar { padding: 0 16px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .modal { padding: 20px; }
    .login-card { padding: 32px 24px; }
}
@media (max-width: 600px) {
    .stats-grid { grid-template-columns: 1fr; }
    .kanban-board { gap: 10px; }
    .kanban-col { width: 260px; }
    .filter-bar form { flex-direction: column; align-items: flex-start; }
    .page-header { flex-direction: column; align-items: flex-start; }
}
