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

:root {
  --bg:       #0f172a;
  --sidebar:  #111827;
  --card:     #1e293b;
  --border:   #334155;
  --primary:  #2563eb;
  --primary-h:#1d4ed8;
  --success:  #22c55e;
  --warning:  #f59e0b;
  --danger:   #ef4444;
  --text:     #f8fafc;
  --text-2:   #94a3b8;
  --text-3:   #64748b;
  --muted:    #475569;
}

html { font-size: 14px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ── Sidebar ──────────────────────────────────────────────── */
.sidebar {
  width: 240px;
  min-height: 100vh;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  overflow-y: auto;
  z-index: 100;
}

.sidebar-brand {
  padding: 20px 18px 16px;
  border-bottom: 1px solid var(--border);
}
.sidebar-brand .logo-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
}
.sidebar-brand .logo-name span { color: var(--primary); }
.sidebar-brand .logo-sub {
  font-size: 10px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

.sidebar-nav { flex: 1; padding: 10px 0; }

.nav-section {
  padding: 14px 18px 4px;
  font-size: 9px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background .12s, color .12s;
  position: relative;
  text-decoration: none;
}
.nav-item:hover { background: rgba(255,255,255,.05); color: var(--text); text-decoration: none; }
.nav-item.active { background: rgba(37,99,235,.15); color: var(--primary); }
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 3px;
  background: var(--primary);
  border-radius: 0 3px 3px 0;
}
.nav-item .icon { font-size: 16px; width: 20px; text-align: center; }
.nav-item .badge {
  margin-left: auto;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 20px;
  min-width: 18px;
  text-align: center;
}

.sidebar-footer {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.sidebar-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  flex-shrink: 0;
}
.sidebar-user-info .name { font-size: 13px; font-weight: 600; color: var(--text); }
.sidebar-user-info .role { font-size: 11px; color: var(--text-3); }
.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  font-size: 12px;
  padding: 6px 0;
  cursor: pointer;
  transition: color .12s;
}
.sidebar-logout:hover { color: var(--danger); text-decoration: none; }

/* ── Main ─────────────────────────────────────────────────── */
.main-wrapper {
  margin-left: 240px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Topbar ───────────────────────────────────────────────── */
.topbar {
  height: 56px;
  background: var(--sidebar);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-title { font-size: 15px; font-weight: 700; color: var(--text); flex: 1; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-icon {
  position: relative;
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
  font-size: 18px;
  cursor: pointer;
  transition: background .12s;
  text-decoration: none;
}
.topbar-icon:hover { background: var(--border); text-decoration: none; }
.topbar-icon .dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 8px; height: 8px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid var(--sidebar);
}

/* ── Content ──────────────────────────────────────────────── */
.content { padding: 24px; flex: 1; }

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 12px;
}
.page-header h1 { font-size: 22px; font-weight: 700; color: var(--text); }
.page-header p { font-size: 13px; color: var(--text-3); margin-top: 2px; }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-header h3 { font-size: 14px; font-weight: 700; color: var(--text); }
.card-body { padding: 20px; }
.card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,.1);
}

/* ── Stats Grid ───────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
}
.stat-label { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 8px; }
.stat-value { font-size: 28px; font-weight: 800; color: var(--text); line-height: 1; }
.stat-sub { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.stat-card.blue { border-color: rgba(37,99,235,.3); }
.stat-card.green { border-color: rgba(34,197,94,.3); }
.stat-card.yellow { border-color: rgba(245,158,11,.3); }
.stat-card.red { border-color: rgba(239,68,68,.3); }
.stat-card.blue .stat-value { color: #60a5fa; }
.stat-card.green .stat-value { color: #4ade80; }
.stat-card.yellow .stat-value { color: #fbbf24; }
.stat-card.red .stat-value { color: #f87171; }

/* ── Grid ─────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 16px; }

/* ── Table ────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
  padding: 10px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .6px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,.2);
  white-space: nowrap;
}
tbody td {
  padding: 11px 16px;
  font-size: 13px;
  color: var(--text);
  border-bottom: 1px solid rgba(51,65,85,.5);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(255,255,255,.03); }

/* ── Badges ───────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-primary  { background: rgba(37,99,235,.2);   color: #60a5fa; border: 1px solid rgba(37,99,235,.3); }
.badge-success  { background: rgba(34,197,94,.15);  color: #4ade80; border: 1px solid rgba(34,197,94,.3); }
.badge-warning  { background: rgba(245,158,11,.15); color: #fbbf24; border: 1px solid rgba(245,158,11,.3); }
.badge-danger   { background: rgba(239,68,68,.15);  color: #f87171; border: 1px solid rgba(239,68,68,.3); }
.badge-muted    { background: rgba(100,116,139,.15);color: #94a3b8; border: 1px solid rgba(100,116,139,.3); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; opacity: .9; }
.btn-primary  { background: var(--primary);  color: #fff; }
.btn-success  { background: #16a34a;          color: #fff; }
.btn-danger   { background: #dc2626;          color: #fff; }
.btn-warning  { background: #d97706;          color: #fff; }
.btn-outline  { background: transparent; color: var(--text-2); border: 1px solid var(--border); }
.btn-outline:hover { background: var(--border); color: var(--text); }
.btn-ghost    { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: rgba(255,255,255,.06); }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-lg { padding: 11px 24px; font-size: 15px; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ── Forms ────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 6px;
}
.form-label .req { color: var(--danger); }
.form-control {
  width: 100%;
  padding: 9px 12px;
  background: rgba(0,0,0,.3);
  border: 1.5px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border .15s;
  font-family: inherit;
}
.form-control:focus { border-color: var(--primary); }
.form-control::placeholder { color: var(--text-3); }
textarea.form-control { resize: vertical; min-height: 80px; }
select.form-control { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(0,0,0,.2);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 10px;
  transition: border .15s;
}
.form-check input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--primary); margin-top: 1px; flex-shrink: 0; }
.form-check-label { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.form-check-label strong { color: var(--text); }

/* ── Alerts ───────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
  border: 1px solid transparent;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.alert-success { background: rgba(34,197,94,.1);  border-color: rgba(34,197,94,.3);  color: #4ade80; }
.alert-error   { background: rgba(239,68,68,.1);  border-color: rgba(239,68,68,.3);  color: #f87171; }
.alert-warning { background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.3); color: #fbbf24; }
.alert-info    { background: rgba(37,99,235,.1);  border-color: rgba(37,99,235,.3);  color: #60a5fa; }

/* ── Auth Pages ───────────────────────────────────────────── */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 16px;
  background: var(--bg);
}
.auth-box {
  width: 100%;
  max-width: 420px;
}
.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}
.auth-logo .name {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
}
.auth-logo .name span { color: var(--primary); }
.auth-logo .tagline { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.auth-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px 28px;
}
.auth-card h2 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.auth-card .sub { font-size: 13px; color: var(--text-3); margin-bottom: 22px; }
.auth-footer { text-align: center; margin-top: 16px; font-size: 12px; color: var(--text-3); }
.auth-footer a { color: var(--primary); }

/* ── Wait Page ────────────────────────────────────────────── */
.wait-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 30px; background: var(--bg); }
.wait-box { max-width: 420px; width: 100%; text-align: center; }
.wait-icon { font-size: 52px; margin-bottom: 20px; }
.wait-box h2 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.wait-box p { color: var(--text-2); font-size: 14px; margin-bottom: 8px; line-height: 1.6; }

/* ── Progress Bar ─────────────────────────────────────────── */
.progress { background: var(--border); border-radius: 20px; height: 6px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--primary); border-radius: 20px; transition: width .3s; }

/* ── Tabs ─────────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  overflow-x: auto;
}
.tab {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  transition: color .12s;
}
.tab:hover { color: var(--text); text-decoration: none; }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ── Kanban ───────────────────────────────────────────────── */
.kanban { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.kanban-col {
  background: rgba(0,0,0,.2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  min-height: 300px;
}
.kanban-col-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text-3);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.kanban-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color .12s;
}
.kanban-card:hover { border-color: var(--primary); }
.kanban-card .title { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.kanban-card .meta { font-size: 11px; color: var(--text-3); }

/* ── User Avatar ──────────────────────────────────────────── */
.avatar {
  border-radius: 50%;
  background: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.avatar-sm { width: 28px; height: 28px; font-size: 11px; }
.avatar-md { width: 38px; height: 38px; font-size: 14px; }
.avatar-lg { width: 56px; height: 56px; font-size: 20px; }

/* ── Role Tag ─────────────────────────────────────────────── */
.role-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  margin: 1px;
}

/* ── Notification Item ────────────────────────────────────── */
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.notif-item:last-child { border-bottom: none; }
.notif-item.unread { background: rgba(37,99,235,.04); }
.notif-icon { font-size: 20px; width: 36px; text-align: center; flex-shrink: 0; }
.notif-text { font-size: 13px; color: var(--text-2); flex: 1; }
.notif-time { font-size: 11px; color: var(--text-3); white-space: nowrap; }

/* ── Empty State ──────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-3);
}
.empty-icon { font-size: 40px; margin-bottom: 12px; }
.empty-state p { font-size: 14px; }

/* ── Pagination ───────────────────────────────────────────── */
.pagination { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--text-2);
  text-decoration: none;
  transition: all .12s;
}
.pagination a:hover { background: var(--border); color: var(--text); text-decoration: none; }
.pagination .active-p { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ── Utilities ────────────────────────────────────────────── */
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.text-center { text-align: center; }
.text-muted { color: var(--text-3) !important; }
.text-sm { font-size: 12px; }
.text-xs { font-size: 11px; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.w-100 { width: 100%; }
.divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }

/* ── Modal ────────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 15px; font-weight: 700; }
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* ── Team Grid ────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 16px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s, transform .15s;
}
.team-card:hover { border-color: var(--primary); transform: translateY(-2px); text-decoration: none; }
.team-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; color: #fff;
  margin-bottom: 12px;
  overflow: hidden;
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-name { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.team-username { font-size: 12px; margin-bottom: 8px; }
.team-roles { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; }

/* ── Project Grid ─────────────────────────────────────────── */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.proj-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  transition: border-color .15s, transform .15s;
}
.proj-card:hover { border-color: var(--primary); transform: translateY(-2px); text-decoration: none; }
.proj-color { height: 4px; flex-shrink: 0; }
.proj-body { padding: 16px; flex: 1; }
.proj-name { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.proj-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.proj-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px; }

/* ── Wiki Grid ────────────────────────────────────────────── */
.wiki-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.wiki-card {
  display: flex;
  flex-direction: column;
  padding: 16px 18px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s;
}
.wiki-card:hover { border-color: var(--primary); text-decoration: none; }
.wiki-title { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.wiki-meta { font-size: 11px; }

/* ── Kanban fix ───────────────────────────────────────────── */
.kanban-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.kanban-title { font-size: 13px; font-weight: 600; }

/* ── Notifications ────────────────────────────────────────── */
.notif-list { display: flex; flex-direction: column; }
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  transition: background .1s;
}
.notif-item.unread { background: rgba(37,99,235,.05); border-left: 3px solid var(--primary); }
.notif-item:hover { background: rgba(255,255,255,.03); }
.notif-body { flex: 1; min-width: 0; }
.notif-text { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.notif-meta { font-size: 11px; color: var(--text-3); margin-top: 3px; }
.notif-actions { display: flex; gap: 4px; flex-shrink: 0; }

/* ── Stat card highlight ──────────────────────────────────── */
.stat-card.highlight { border-color: var(--warning); }
.stat-card .stat-val { font-size: 28px; font-weight: 800; color: var(--text); line-height: 1; }
.stat-card .stat-label { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 6px; }

/* ── Back Link ────────────────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 6px;
  text-decoration: none;
}
.back-link:hover { color: var(--text); text-decoration: none; }

/* ── File Drop ────────────────────────────────────────────── */
.file-drop {
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s;
  color: var(--text-3);
}
.file-drop:hover { border-color: var(--primary); color: var(--text-2); }

/* ── List Item ────────────────────────────────────────────── */
.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: background .1s;
}
.list-item:last-child { border-bottom: none; }
.list-item:hover { background: rgba(255,255,255,.03); text-decoration: none; }

/* ── Form Control SM ──────────────────────────────────────── */
.form-control-sm { padding: 6px 10px; font-size: 12px; }

/* ── Text utilities ───────────────────────────────────────── */
.text-danger   { color: var(--danger)  !important; }
.text-warning  { color: var(--warning) !important; }
.text-success  { color: var(--success) !important; }
.badge-error   { background: rgba(239,68,68,.15); color: #f87171; border: 1px solid rgba(239,68,68,.3); }

/* ── Page Btn ─────────────────────────────────────────────── */
.page-btn {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  border: 1px solid var(--border);
  color: var(--text-2);
  text-decoration: none;
  transition: all .12s;
}
.page-btn:hover { background: var(--border); text-decoration: none; }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: translateX(0); }
  .main-wrapper { margin-left: 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .kanban { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .kanban { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .content { padding: 16px; }
}
