:root{
    --bg:#0b1020; --bg-soft:#11172e;
    --surface:rgba(255,255,255,0.04); --surface-2:rgba(255,255,255,0.07);
    --border:rgba(255,255,255,0.08);
    --text:#e6e8ef; --muted:#97a0b5;
    --primary:#6366f1; --primary-2:#8b5cf6; --accent:#22d3ee;
    --success:#10b981; --warning:#f59e0b; --danger:#ef4444;
    --radius:16px; --shadow:0 10px 30px rgba(0,0,0,0.35);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
    font-family:'Inter',system-ui,-apple-system,sans-serif;
    background:
      radial-gradient(1200px 800px at 90% -10%, rgba(139,92,246,.20), transparent 60%),
      radial-gradient(900px 700px at -10% 110%, rgba(34,211,238,.18), transparent 60%),
      var(--bg);
    color:var(--text); letter-spacing:-0.01em;
    -webkit-font-smoothing:antialiased;
}
a{color:#c7d2fe}

.app{display:grid; grid-template-columns:260px 1fr; min-height:100vh}
@media (max-width:992px){ .app{grid-template-columns:1fr} .sidebar{display:none} }

.sidebar{
    background:linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    border-right:1px solid var(--border);
    padding:20px 14px; position:sticky; top:0; height:100vh;
}
.brand{display:flex; align-items:center; gap:12px; padding:10px 10px 18px; border-bottom:1px solid var(--border); margin-bottom:14px}
.brand-logo{
    width:40px; height:40px; border-radius:12px;
    background:conic-gradient(from 200deg, var(--primary), var(--accent), var(--primary-2), var(--primary));
    display:grid; place-items:center; color:#fff; font-weight:800;
    box-shadow:0 6px 20px rgba(99,102,241,.45);
}
.brand-name{font-weight:700; font-size:15px; line-height:1}
.brand-sub{font-size:11px; color:var(--muted); letter-spacing:.12em; text-transform:uppercase}
.nav-group-label{font-size:11px; color:var(--muted); text-transform:uppercase; letter-spacing:.14em; padding:14px 12px 6px}
.side-link{
    display:flex; align-items:center; gap:12px;
    padding:10px 12px; margin:2px 0; border-radius:10px;
    color:var(--muted); text-decoration:none; font-weight:500; font-size:14px;
    transition:all .18s ease;
}
.side-link i{font-size:18px}
.side-link:hover{color:#fff; background:var(--surface)}
.side-link.active{
    color:#fff;
    background:linear-gradient(90deg, rgba(99,102,241,.25), rgba(139,92,246,.10));
    box-shadow:inset 0 0 0 1px rgba(99,102,241,.35);
}

.topbar{
    display:flex; align-items:center; gap:14px;
    padding:18px 28px; border-bottom:1px solid var(--border);
    backdrop-filter:blur(8px); position:sticky; top:0; z-index:5;
    background:rgba(11,16,32,0.6);
}
.search{
    flex:1; max-width:480px;
    display:flex; align-items:center; gap:10px;
    background:var(--surface); border:1px solid var(--border);
    border-radius:12px; padding:10px 14px; color:var(--muted);
}
.search input{background:transparent; border:0; outline:0; color:var(--text); width:100%; font-size:14px}
.icon-btn{
    width:40px; height:40px; border-radius:12px;
    display:grid; place-items:center;
    background:var(--surface); border:1px solid var(--border);
    color:var(--text); cursor:pointer; transition:all .15s ease;
}
.icon-btn:hover{background:var(--surface-2)}
.avatar{
    width:40px; height:40px; border-radius:50%;
    background:linear-gradient(135deg, var(--primary), var(--accent));
    color:#fff; font-weight:700;
    display:grid; place-items:center; font-size:14px;
}

.content{padding:24px 28px 60px}
.page-title{font-size:22px; font-weight:700; margin:0}
.page-sub{color:var(--muted); font-size:13px; margin-top:4px}

.hero{
    border-radius:var(--radius);
    background:
      radial-gradient(600px 240px at 90% 0%, rgba(34,211,238,.30), transparent 60%),
      linear-gradient(135deg, #4f46e5 0%, #7c3aed 60%, #2563eb 100%);
    color:#fff; padding:26px 28px; position:relative; overflow:hidden;
    box-shadow:var(--shadow);
}
.hero h2{font-weight:800; letter-spacing:-0.02em; margin:0 0 6px}
.hero .btn-cta{background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.25); color:#fff; backdrop-filter:blur(6px)}
.hero .btn-cta:hover{background:rgba(255,255,255,.22); color:#fff}

.stat-card{
    background:var(--surface); border:1px solid var(--border);
    border-radius:var(--radius); padding:18px;
    transition:transform .18s ease, border-color .18s ease;
}
.stat-card:hover{transform:translateY(-3px); border-color:rgba(255,255,255,.16)}
.stat-icon{width:44px; height:44px; border-radius:12px; display:grid; place-items:center; font-size:20px; color:#fff}
.stat-label{color:var(--muted); font-size:12px; letter-spacing:.06em; text-transform:uppercase}
.stat-value{font-size:26px; font-weight:700; line-height:1.1; margin-top:4px}
.stat-trend{font-size:12px; margin-top:6px}
.trend-up{color:var(--success)}
.trend-down{color:var(--danger)}

.grad-indigo{background:linear-gradient(135deg, #6366f1, #8b5cf6)}
.grad-emerald{background:linear-gradient(135deg, #10b981, #06b6d4)}
.grad-amber{background:linear-gradient(135deg, #f59e0b, #ef4444)}
.grad-cyan{background:linear-gradient(135deg, #22d3ee, #3b82f6)}

.panel{background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:20px}
.panel-title{font-size:15px; font-weight:600; margin:0}
.panel-sub{color:var(--muted); font-size:12px}

.chip{display:inline-flex; align-items:center; gap:6px; padding:4px 10px; border-radius:999px; background:rgba(99,102,241,.14); color:#c7d2fe; font-size:12px; font-weight:600}
.chip.green{background:rgba(16,185,129,.14); color:#6ee7b7}
.chip.amber{background:rgba(245,158,11,.16); color:#fcd34d}
.chip.red{background:rgba(239,68,68,.16); color:#fca5a5}
.chip.gray{background:rgba(148,163,184,.18); color:#cbd5e1}

/* Form controls */
.form-control, .form-select {
    background:var(--surface) !important; border:1px solid var(--border) !important;
    color:var(--text) !important; border-radius:10px;
}
.form-control:focus, .form-select:focus {
    background:var(--surface-2) !important; border-color:var(--primary) !important;
    box-shadow:0 0 0 .2rem rgba(99,102,241,.18);
}
.form-label{color:var(--muted); font-size:13px; font-weight:500}
.btn-primary{background:linear-gradient(135deg,#6366f1,#8b5cf6); border:0; border-radius:10px; padding:10px 16px; font-weight:600}
.btn-primary:hover{filter:brightness(1.08)}
.btn-outline-light{border-color:var(--border); color:var(--text); border-radius:10px}
.btn-outline-light:hover{background:var(--surface-2); color:#fff}
.btn-danger{background:linear-gradient(135deg,#ef4444,#f97316); border:0; border-radius:10px}

/* Tables */
.table-modern{
    width:100%; border-collapse:separate; border-spacing:0;
}
.table-modern th, .table-modern td{
    padding:12px 14px; border-bottom:1px solid var(--border); font-size:14px;
}
.table-modern th{
    text-align:left; font-size:11px; text-transform:uppercase;
    letter-spacing:.1em; color:var(--muted); font-weight:600;
}
.table-modern tbody tr:hover{background:var(--surface)}
.table-modern td .avatar{width:32px; height:32px; font-size:12px}

/* Kanban */
.kanban{display:grid; grid-template-columns:repeat(3, 1fr); gap:16px}
@media (max-width:992px){ .kanban{grid-template-columns:1fr} }
.kanban-col{background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:14px; min-height:300px}
.kanban-col-header{display:flex; align-items:center; justify-content:space-between; margin-bottom:12px}
.kanban-col-title{font-weight:600; font-size:14px; display:flex; align-items:center; gap:8px}
.kanban-card{
    background:var(--surface-2); border:1px solid var(--border);
    border-radius:12px; padding:12px; margin-bottom:10px;
    transition:transform .15s ease, border-color .15s ease;
}
.kanban-card:hover{transform:translateY(-2px); border-color:rgba(99,102,241,.4)}
.kanban-card .title{font-weight:600; font-size:14px; margin-bottom:6px}
.kanban-card .meta{font-size:12px; color:var(--muted); display:flex; align-items:center; gap:8px}

.dot{width:8px; height:8px; border-radius:50%; display:inline-block}
.dot.todo{background:#94a3b8}
.dot.progress{background:#f59e0b}
.dot.done{background:#10b981}

/* Login */
.auth-wrap{min-height:100vh; display:grid; place-items:center; padding:24px}
.auth-card{
    width:100%; max-width:420px;
    background:var(--surface); border:1px solid var(--border);
    border-radius:20px; padding:34px;
    box-shadow:var(--shadow); backdrop-filter:blur(20px);
}
.auth-logo{width:56px; height:56px; margin-bottom:20px}

.footer{color:var(--muted); font-size:12px; text-align:center; padding:30px 0 0}

/* Activity */
.activity-item{display:flex; gap:12px; align-items:flex-start; padding:12px 0; border-bottom:1px dashed var(--border)}
.activity-item:last-child{border-bottom:0}
.activity-dot{width:36px; height:36px; border-radius:10px; display:grid; place-items:center; flex:0 0 auto; background:var(--surface-2); color:var(--text)}
.activity-text{font-size:14px}
.activity-meta{font-size:12px; color:var(--muted); margin-top:2px}
