/* ============================================================
   MISS SÉNÉGAL 2026 – Styles du panneau d'administration
   ============================================================ */

:root {
  --sb-w:        260px;
  --sb-bg:       #0d1117;
  --sb-border:   rgba(255,255,255,.07);
  --header-h:    64px;
  --ap-or:       #C9A84C;
  --ap-or-light: #F0D080;
  --ap-vert:     #00853F;
  --ap-rouge:    #E31B23;
  --ap-info:     #3b82f6;
  --ap-warning:  #f59e0b;
  --ap-bg:       #f3f4f6;
  --ap-card:     #ffffff;
  --ap-border:   #e5e7eb;
  --ap-text:     #111827;
  --ap-muted:    #6b7280;
  --ap-radius:   10px;
  --ap-shadow:   0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --ap-shadow-md:0 4px 16px rgba(0,0,0,.1);
  --trans:       .25s ease;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body.admin-body {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  background: var(--ap-bg);
  color: var(--ap-text);
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ── LAYOUT ── */
.admin-wrapper { display: flex; min-height: 100vh; }

/* ── SIDEBAR ── */
.sidebar {
  width: var(--sb-w);
  background: var(--sb-bg);
  min-height: 100vh;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: var(--trans);
  overflow-y: auto;
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid var(--sb-border);
}
.sidebar-logo .crown { font-size: 1.8rem; filter: drop-shadow(0 0 6px var(--ap-or)); }
.sidebar-logo .logo-name { font-family: 'Playfair Display', Georgia, serif; color: var(--ap-or); font-size: 1.05rem; font-weight: 700; line-height: 1.1; }
.sidebar-logo .logo-sub  { font-size: .62rem; color: rgba(255,255,255,.35); text-transform: uppercase; letter-spacing: .1em; }

.sidebar-section { padding: 1rem 0; }
.sidebar-section-title { font-size: .65rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.3); padding: .4rem 1.25rem; margin-bottom: .25rem; }

.sidebar-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem 1.25rem;
  color: rgba(255,255,255,.6);
  font-size: .875rem;
  font-weight: 500;
  transition: var(--trans);
  position: relative;
  border-radius: 0;
}
.sidebar-link .icon { font-size: 1.1rem; width: 22px; text-align: center; flex-shrink: 0; }
.sidebar-link .badge {
  margin-left: auto;
  background: var(--ap-rouge);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: .1rem .45rem;
  border-radius: 20px;
  min-width: 20px;
  text-align: center;
}
.sidebar-link:hover { color: var(--ap-or-light); background: rgba(255,255,255,.05); }
.sidebar-link.active {
  color: var(--ap-or);
  background: rgba(201,168,76,.12);
  border-right: 3px solid var(--ap-or);
}
.sidebar-link.active .icon { filter: drop-shadow(0 0 4px var(--ap-or)); }

.sidebar-divider { height: 1px; background: var(--sb-border); margin: .5rem 1.25rem; }

.sidebar-footer {
  margin-top: auto;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--sb-border);
}
.sidebar-user { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.sidebar-user .avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ap-vert), var(--ap-or));
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: #fff; font-weight: 700;
  flex-shrink: 0;
}
.sidebar-user .user-name  { font-size: .85rem; font-weight: 600; color: rgba(255,255,255,.85); }
.sidebar-user .user-role  { font-size: .7rem; color: rgba(255,255,255,.35); }
.logout-btn {
  width: 100%;
  padding: .55rem;
  background: rgba(227,27,35,.12);
  border: 1px solid rgba(227,27,35,.25);
  border-radius: var(--ap-radius);
  color: #ff6b6b;
  font-size: .82rem;
  font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  transition: var(--trans);
}
.logout-btn:hover { background: rgba(227,27,35,.25); }

/* ── MAIN CONTENT ── */
.main-content {
  margin-left: var(--sb-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── TOP HEADER ── */
.top-header {
  height: var(--header-h);
  background: var(--ap-card);
  border-bottom: 1px solid var(--ap-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.top-header .page-title { font-size: 1.1rem; font-weight: 600; display: flex; align-items: center; gap: .5rem; }
.top-header .page-title .icon { font-size: 1.2rem; }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.header-btn {
  padding: .5rem 1.2rem;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  border: none;
  transition: var(--trans);
  display: flex; align-items: center; gap: .4rem;
}
.header-btn-primary { background: var(--ap-or); color: #fff; }
.header-btn-primary:hover { background: #a07828; transform: translateY(-1px); }
.header-btn-outline { background: transparent; border: 2px solid var(--ap-border); color: var(--ap-muted); }
.header-btn-outline:hover { border-color: var(--ap-or); color: var(--ap-or); }
.header-btn-danger { background: var(--ap-rouge); color: #fff; }
.header-btn-danger:hover { background: #b01018; }
.header-btn-success { background: var(--ap-vert); color: #fff; }
.header-btn-success:hover { background: #006630; }

/* ── PAGE CONTENT ── */
.page-content { padding: 2rem; flex: 1; }

/* ── STAT CARDS ── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.stat-card {
  background: var(--ap-card);
  border-radius: var(--ap-radius);
  padding: 1.4rem;
  box-shadow: var(--ap-shadow);
  border: 1px solid var(--ap-border);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--trans);
}
.stat-card:hover { box-shadow: var(--ap-shadow-md); transform: translateY(-2px); }
.stat-card .stat-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.stat-icon-or     { background: rgba(201,168,76,.15); }
.stat-icon-vert   { background: rgba(0,133,63,.12); }
.stat-icon-rouge  { background: rgba(227,27,35,.12); }
.stat-icon-info   { background: rgba(59,130,246,.12); }
.stat-icon-purple { background: rgba(139,92,246,.12); }
.stat-card .stat-val  { font-family: 'Playfair Display', Georgia, serif; font-size: 1.9rem; font-weight: 700; line-height: 1; }
.stat-card .stat-lbl  { font-size: .78rem; color: var(--ap-muted); margin-top: .2rem; }
.stat-card .stat-trend{ font-size: .75rem; margin-top: .3rem; display: flex; align-items: center; gap: .2rem; }
.trend-up   { color: var(--ap-vert); }
.trend-down { color: var(--ap-rouge); }

/* ── GRID LAYOUT ── */
.content-grid { display: grid; gap: 1.5rem; }
.col-2 { grid-template-columns: 1fr 1fr; }
.col-3 { grid-template-columns: 2fr 1fr; }

/* ── CARD ── */
.card {
  background: var(--ap-card);
  border-radius: var(--ap-radius);
  box-shadow: var(--ap-shadow);
  border: 1px solid var(--ap-border);
  overflow: hidden;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--ap-border);
}
.card-header h3 { font-size: 1rem; font-weight: 600; display: flex; align-items: center; gap: .5rem; }
.card-header .card-actions { display: flex; gap: .5rem; }
.card-body { padding: 1.4rem; }
.card-body-np { padding: 0; }

/* ── TABLE ── */
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}
thead th {
  background: #fafafa;
  padding: .75rem 1rem;
  text-align: left;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ap-muted);
  border-bottom: 2px solid var(--ap-border);
  white-space: nowrap;
}
tbody td { padding: .75rem 1rem; border-bottom: 1px solid var(--ap-border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #f9fafb; }
.td-actions { display: flex; gap: .4rem; align-items: center; }

/* ── ACTION BUTTONS (small) ── */
.btn-sm {
  padding: .32rem .75rem;
  border-radius: 6px;
  font-size: .78rem;
  font-weight: 600;
  border: none;
  display: inline-flex; align-items: center; gap: .3rem;
  transition: var(--trans);
  cursor: pointer;
  white-space: nowrap;
}
.btn-sm-edit    { background: rgba(59,130,246,.1);   color: var(--ap-info);    }
.btn-sm-edit:hover    { background: var(--ap-info);    color: #fff; }
.btn-sm-delete  { background: rgba(227,27,35,.1);    color: var(--ap-rouge);   }
.btn-sm-delete:hover  { background: var(--ap-rouge);  color: #fff; }
.btn-sm-view    { background: rgba(201,168,76,.1);   color: var(--ap-or);      }
.btn-sm-view:hover    { background: var(--ap-or);     color: #fff; }
.btn-sm-success { background: rgba(0,133,63,.1);     color: var(--ap-vert);    }
.btn-sm-success:hover { background: var(--ap-vert);   color: #fff; }
.btn-sm-warning { background: rgba(245,158,11,.1);   color: var(--ap-warning); }
.btn-sm-warning:hover { background: var(--ap-warning);color: #fff; }

/* ── BADGE ── */
.badge {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .2rem .65rem;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.badge-active    { background: #dcfce7; color: #15803d; }
.badge-inactive  { background: #fee2e2; color: #b91c1c; }
.badge-pending   { background: #fef3c7; color: #92400e; }
.badge-published { background: #dcfce7; color: #15803d; }
.badge-draft     { background: #f3f4f6; color: var(--ap-muted); }
.badge-accepted  { background: #dcfce7; color: #15803d; }
.badge-rejected  { background: #fee2e2; color: #b91c1c; }
.badge-or        { background: rgba(201,168,76,.15); color: #7a5c00; }

/* ── CHART ── */
.bar-chart { display: flex; align-items: flex-end; gap: .4rem; height: 120px; }
.bar-chart-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  height: 100%;
  justify-content: flex-end;
}
.bar-fill {
  width: 100%;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--ap-or), #8a6200);
  transition: height .6s ease;
  min-height: 3px;
}
.bar-label { font-size: .62rem; color: var(--ap-muted); text-align: center; white-space: nowrap; }
.bar-val   { font-size: .7rem; font-weight: 600; color: var(--ap-or); }

/* Horizontal bar (candidats) */
.h-bar-item { margin-bottom: .85rem; }
.h-bar-meta { display: flex; justify-content: space-between; font-size: .82rem; margin-bottom: .3rem; }
.h-bar-meta .name { font-weight: 600; }
.h-bar-meta .count { color: var(--ap-or); font-weight: 700; }
.h-bar-track { background: #f3f4f6; border-radius: 50px; height: 8px; overflow: hidden; }
.h-bar-fill  { height: 100%; border-radius: 50px; background: linear-gradient(90deg, var(--ap-vert), var(--ap-or)); transition: width .8s ease; }

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: var(--trans);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--ap-card);
  border-radius: 14px;
  padding: 2rem;
  max-width: 560px;
  width: 92%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(.95);
  transition: var(--trans);
  position: relative;
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.modal-header h3 { font-size: 1.15rem; font-weight: 700; }
.modal-close {
  width: 30px; height: 30px; border-radius: 8px;
  background: #f3f4f6; border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: var(--trans);
}
.modal-close:hover { background: var(--ap-rouge); color: #fff; }

/* ── FORM ── */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .4rem; color: var(--ap-text); }
.form-group .hint { font-size: .75rem; color: var(--ap-muted); margin-top: .25rem; }
.form-control {
  width: 100%;
  padding: .65rem 1rem;
  border: 2px solid var(--ap-border);
  border-radius: 8px;
  font-size: .9rem;
  font-family: 'Poppins', sans-serif;
  transition: var(--trans);
  background: #fff;
  color: var(--ap-text);
}
.form-control:focus { outline: none; border-color: var(--ap-or); box-shadow: 0 0 0 3px rgba(201,168,76,.12); }
.form-control.error { border-color: var(--ap-rouge); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-actions { display: flex; gap: .75rem; justify-content: flex-end; margin-top: 1.5rem; }

/* ── TOGGLE SWITCH ── */
.toggle-wrap { display: flex; align-items: center; gap: .75rem; }
.toggle {
  width: 44px; height: 24px;
  background: #d1d5db;
  border-radius: 50px;
  position: relative;
  cursor: pointer;
  transition: var(--trans);
  flex-shrink: 0;
}
.toggle::after {
  content: '';
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 3px; left: 3px;
  transition: var(--trans);
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.toggle.on { background: var(--ap-vert); }
.toggle.on::after { transform: translateX(20px); }

/* ── SEARCH BAR ── */
.admin-search {
  display: flex;
  gap: .75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}
.search-input-wrap input {
  width: 100%;
  padding: .6rem 1rem .6rem 2.4rem;
  border: 2px solid var(--ap-border);
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: .875rem;
  transition: var(--trans);
  background: #fff;
}
.search-input-wrap input:focus { outline: none; border-color: var(--ap-or); }
.search-input-wrap .search-icon {
  position: absolute;
  left: .8rem; top: 50%;
  transform: translateY(-50%);
  font-size: .9rem;
  color: var(--ap-muted);
  pointer-events: none;
}
.filter-select {
  padding: .6rem .9rem;
  border: 2px solid var(--ap-border);
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: .875rem;
  background: #fff;
  transition: var(--trans);
}
.filter-select:focus { outline: none; border-color: var(--ap-or); }

/* ── PAGINATION ── */
.pagination { display: flex; gap: .4rem; margin-top: 1.25rem; justify-content: center; }
.page-btn {
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 2px solid var(--ap-border);
  background: #fff;
  font-size: .85rem;
  font-weight: 500;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--trans);
}
.page-btn:hover, .page-btn.active { border-color: var(--ap-or); background: var(--ap-or); color: #fff; }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 3.5rem 1rem; color: var(--ap-muted); }
.empty-state .empty-icon { font-size: 3.5rem; margin-bottom: 1rem; opacity: .5; }
.empty-state h4 { font-size: 1rem; color: var(--ap-text); margin-bottom: .3rem; }
.empty-state p  { font-size: .85rem; }

/* ── TOAST ADMIN ── */
.admin-toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; display: flex; flex-direction: column; gap: .5rem; }
.admin-toast {
  background: var(--ap-card);
  border-radius: 10px;
  padding: .85rem 1.25rem;
  box-shadow: 0 8px 30px rgba(0,0,0,.15);
  display: flex; align-items: center; gap: .75rem;
  min-width: 280px;
  transform: translateX(120%);
  transition: transform .38s ease;
  border-left: 4px solid var(--ap-vert);
}
.admin-toast.show { transform: translateX(0); }
.admin-toast.success { border-color: var(--ap-vert); }
.admin-toast.error   { border-color: var(--ap-rouge); }
.admin-toast.info    { border-color: var(--ap-info); }
.admin-toast-msg { font-size: .88rem; font-weight: 500; }

/* ── LOGIN PAGE ── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #060810 0%, #0d1117 50%, #0a1a0a 100%);
  position: relative;
  overflow: hidden;
}
.login-page::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: rgba(201,168,76,.05);
  top: -200px; right: -200px;
}
.login-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
}
.login-logo { text-align: center; margin-bottom: 2rem; }
.login-logo .crown    { font-size: 3rem; filter: drop-shadow(0 0 12px var(--ap-or)); }
.login-logo h1        { font-family: 'Playfair Display', serif; color: var(--ap-or); font-size: 1.5rem; margin-top: .5rem; }
.login-logo p         { font-size: .8rem; color: rgba(255,255,255,.4); margin-top: .2rem; }
.login-form .form-group label { color: rgba(255,255,255,.7); }
.login-form .form-control {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
  color: #fff;
}
.login-form .form-control:focus { border-color: var(--ap-or); background: rgba(255,255,255,.1); }
.login-form .form-control::placeholder { color: rgba(255,255,255,.3); }
.login-btn {
  width: 100%;
  padding: .85rem;
  background: linear-gradient(135deg, var(--ap-or), #8a6200);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  margin-top: .5rem;
  cursor: pointer;
  transition: var(--trans);
}
.login-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(201,168,76,.4); }
.login-demo-hint {
  background: rgba(201,168,76,.08);
  border: 1px solid rgba(201,168,76,.2);
  border-radius: 10px;
  padding: .85rem 1rem;
  margin-top: 1.25rem;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  text-align: center;
}
.login-demo-hint strong { color: var(--ap-or); }
.login-error {
  background: rgba(227,27,35,.15);
  border: 1px solid rgba(227,27,35,.3);
  border-radius: 8px;
  padding: .65rem 1rem;
  font-size: .85rem;
  color: #ff8080;
  margin-bottom: 1rem;
  display: none;
}
.login-error.show { display: block; }

/* ── SETTINGS GROUPS ── */
.settings-group {
  background: var(--ap-card);
  border-radius: var(--ap-radius);
  border: 1px solid var(--ap-border);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.settings-group-title { padding: 1rem 1.4rem; border-bottom: 1px solid var(--ap-border); font-weight: 600; font-size: .95rem; display: flex; align-items: center; gap: .5rem; }
.settings-row { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.4rem; border-bottom: 1px solid var(--ap-border); gap: 1rem; }
.settings-row:last-child { border-bottom: none; }
.settings-row .sr-left label { font-weight: 600; font-size: .88rem; display: block; }
.settings-row .sr-left p    { font-size: .78rem; color: var(--ap-muted); margin-top: .15rem; }

/* ── CONFIRM DIALOG ── */
.confirm-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 9990;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: var(--trans);
}
.confirm-overlay.open { opacity: 1; pointer-events: all; }
.confirm-box {
  background: var(--ap-card);
  border-radius: 14px;
  padding: 2rem;
  max-width: 380px;
  width: 90%;
  transform: scale(.95);
  transition: var(--trans);
  text-align: center;
}
.confirm-overlay.open .confirm-box { transform: scale(1); }
.confirm-icon { font-size: 3rem; margin-bottom: 1rem; }
.confirm-box h3 { margin-bottom: .5rem; }
.confirm-box p  { color: var(--ap-muted); font-size: .88rem; margin-bottom: 1.5rem; }
.confirm-actions { display: flex; gap: .75rem; justify-content: center; }
.confirm-btn { padding: .65rem 1.5rem; border-radius: 8px; font-size: .9rem; font-weight: 600; border: none; font-family: 'Poppins', sans-serif; cursor: pointer; transition: var(--trans); }
.confirm-btn-danger  { background: var(--ap-rouge); color: #fff; }
.confirm-btn-danger:hover  { background: #b01018; }
.confirm-btn-cancel  { background: #f3f4f6; color: var(--ap-text); }
.confirm-btn-cancel:hover  { background: var(--ap-border); }

/* ── INSCRIPTIONS KANBAN-LIKE ── */
.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.kanban-col { background: #f9fafb; border-radius: var(--ap-radius); padding: 1rem; border: 1px solid var(--ap-border); }
.kanban-col-title { font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ap-muted); margin-bottom: .75rem; display: flex; align-items: center; justify-content: space-between; }
.kanban-card { background: var(--ap-card); border-radius: 8px; padding: .85rem; margin-bottom: .6rem; box-shadow: 0 1px 3px rgba(0,0,0,.07); border: 1px solid var(--ap-border); font-size: .83rem; }
.kanban-card h4 { font-size: .88rem; margin-bottom: .2rem; }
.kanban-card p  { color: var(--ap-muted); font-size: .78rem; }
.kanban-card .kc-footer { display: flex; justify-content: space-between; margin-top: .5rem; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) { .col-2, .col-3 { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .page-content { padding: 1rem; }
  .top-header { padding: 0 1rem; }
  .kanban { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr; } }

/* Scrollbar */
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 2px; }
