/* ============================================================
   BYCL PERFORMANCE PLATFORM — GLOBAL STYLES
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,400&display=swap');

:root {
  --green: #1a6b3a;
  --green-light: #2d9455;
  --green-pale: #e8f5ee;
  --green-deep: #0d3d20;
  --amber: #d97706;
  --amber-light: #fef3c7;
  --red: #dc2626;
  --red-light: #fee2e2;
  --blue: #1e40af;
  --blue-light: #dbeafe;
  --purple: #7c3aed;
  --purple-light: #ede9fe;
  --dark: #0f1f15;
  --mid: #3d5a45;
  --light: #f0f7f2;
  --white: #ffffff;
  --border: #c8dfd0;
  --shadow: 0 4px 24px rgba(26,107,58,0.10);
  --shadow-lg: 0 12px 48px rgba(26,107,58,0.18);
  --sidebar-w: 260px;
  --header-h: 64px;
  --radius: 12px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DM Sans', sans-serif; background: var(--light); color: var(--dark); min-height: 100vh; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; }

/* ---- AUTH SCREENS ---- */
.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--green-deep) 0%, var(--green) 50%, var(--green-light) 100%);
  position: relative;
  overflow: hidden;
}
.auth-screen::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  top: -200px; right: -200px;
}
.auth-screen::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  bottom: -150px; left: -100px;
}
.auth-box {
  background: white;
  border-radius: 20px;
  padding: 48px 44px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.25);
  position: relative; z-index: 1;
  animation: authIn 0.5s ease;
}
@keyframes authIn {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.auth-logo {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 32px;
}
.auth-logo-icon {
  width: 52px; height: 52px;
  background: var(--green);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
}
.auth-logo-icon svg { width: 30px; height: 30px; stroke: white; }
.auth-logo-text h1 { font-family: 'Syne', sans-serif; font-size: 1.2rem; font-weight: 800; color: var(--dark); }
.auth-logo-text p { font-size: 0.72rem; color: var(--mid); letter-spacing: 0.5px; text-transform: uppercase; }
.auth-title { font-family: 'Syne', sans-serif; font-size: 1.5rem; font-weight: 800; color: var(--dark); margin-bottom: 6px; }
.auth-sub { font-size: 0.88rem; color: var(--mid); margin-bottom: 28px; }
.auth-field { margin-bottom: 18px; }
.auth-field label { display: block; font-size: 0.78rem; font-weight: 500; color: var(--mid); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.auth-field input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--dark);
  outline: none;
  transition: all 0.2s;
}
.auth-field input:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(26,107,58,0.1); }
.auth-info {
  background: var(--amber-light);
  border: 1px solid var(--amber);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.84rem;
  color: var(--amber);
  margin-bottom: 20px;
}

/* ---- APP LAYOUT ---- */
.app-layout { display: flex; min-height: 100vh; }

/* ---- SIDEBAR ---- */
.sidebar {
  width: var(--sidebar-w);
  background: var(--dark);
  color: white;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 200;
  transition: transform 0.3s ease;
}
.sidebar-logo {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; gap: 12px;
}
.sidebar-logo-icon {
  width: 38px; height: 38px;
  background: var(--green);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sidebar-logo-icon svg { width: 22px; height: 22px; stroke: white; }
.sidebar-logo-text h2 { font-family: 'Syne', sans-serif; font-size: 0.88rem; font-weight: 800; }
.sidebar-logo-text p { font-size: 0.68rem; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.5px; }

.sidebar-user {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; gap: 12px;
}
.user-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.9rem;
  flex-shrink: 0;
}
.user-info p:first-child { font-weight: 500; font-size: 0.88rem; }
.user-info p:last-child { font-size: 0.72rem; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.4px; }
.role-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.role-superadmin { background: #7c3aed; color: white; }
.role-admin { background: var(--green); color: white; }
.role-collaborateur { background: var(--blue); color: white; }

.sidebar-nav { flex: 1; padding: 12px 0; overflow-y: auto; }
.nav-section { padding: 0 12px; margin-bottom: 4px; }
.nav-section-label {
  font-size: 0.63rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.3);
  padding: 8px 10px 4px;
  font-weight: 600;
}
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  transition: all 0.18s;
  cursor: pointer;
  border: none; background: none; width: 100%; text-align: left;
  font-family: 'DM Sans', sans-serif;
}
.nav-item:hover { background: rgba(255,255,255,0.06); color: white; }
.nav-item.active { background: var(--green); color: white; font-weight: 500; }
.nav-item .nav-icon { font-size: 1.1rem; width: 20px; text-align: center; flex-shrink: 0; }

.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ---- MAIN CONTENT ---- */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: var(--header-h);
  background: white;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 0 var(--border);
}
.topbar-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--dark); }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-date { font-size: 0.82rem; color: var(--mid); background: var(--green-pale); padding: 6px 14px; border-radius: 20px; }

.page-content { padding: 32px; flex: 1; max-width: 1200px; }

/* ---- CARDS ---- */
.card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 28px 32px;
  margin-bottom: 24px;
}
.card-title {
  font-family: 'Syne', sans-serif;
  font-size: 1rem; font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.card-title .num {
  background: var(--green); color: white;
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 800;
}

/* ---- STATS GRID ---- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 28px; }
.stat-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  border-radius: 0 var(--radius) 0 80px;
  opacity: 0.07;
}
.stat-card.green::before { background: var(--green); }
.stat-card.amber::before { background: var(--amber); }
.stat-card.blue::before { background: var(--blue); }
.stat-card.purple::before { background: var(--purple); }
.stat-label { font-size: 0.72rem; font-weight: 500; color: var(--mid); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.stat-value { font-family: 'Syne', sans-serif; font-size: 2.2rem; font-weight: 800; line-height: 1; }
.stat-value.green { color: var(--green); }
.stat-value.amber { color: var(--amber); }
.stat-value.blue { color: var(--blue); }
.stat-value.purple { color: var(--purple); }
.stat-sub { font-size: 0.78rem; color: var(--mid); margin-top: 6px; }

/* ---- SCORE RING ---- */
.score-ring-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.score-ring-svg { transform: rotate(-90deg); }
.score-ring-track { fill: none; stroke: var(--border); stroke-width: 10; }
.score-ring-fill { fill: none; stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 1s ease; }
.score-ring-label { text-align: center; }
.score-ring-val { font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 800; color: var(--green); }
.score-ring-sub { font-size: 0.75rem; color: var(--mid); text-transform: uppercase; letter-spacing: 0.5px; }

/* ---- FORMS ---- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 0.78rem; font-weight: 500; color: var(--mid); text-transform: uppercase; letter-spacing: 0.5px; }
.form-field input, .form-field select, .form-field textarea {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--dark);
  background: white;
  outline: none;
  transition: all 0.2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(26,107,58,0.1);
}
.form-field textarea { resize: vertical; min-height: 80px; }
.form-full { grid-column: 1 / -1; }

/* ---- TABLES ---- */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.data-table th {
  background: var(--green);
  color: white;
  font-family: 'Syne', sans-serif;
  font-weight: 600; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.4px;
  padding: 11px 16px; text-align: left;
}
.data-table th:first-child { border-radius: 8px 0 0 0; }
.data-table th:last-child { border-radius: 0 8px 0 0; }
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--green-pale); transition: background 0.15s; }
.data-table td input, .data-table td select {
  border: 1.5px solid transparent;
  border-radius: 6px; padding: 6px 10px;
  font-family: 'DM Sans', sans-serif; font-size: 0.875rem;
  background: var(--light); color: var(--dark);
  outline: none; width: 100%; transition: all 0.2s;
}
.data-table td input:focus, .data-table td select:focus {
  border-color: var(--green); background: white;
  box-shadow: 0 0 0 3px rgba(26,107,58,0.1);
}
.num-cell { font-family: 'Syne', sans-serif; font-weight: 700; color: var(--green); text-align: center; width: 40px; }

/* ---- BADGES ---- */
.badge { display: inline-flex; align-items: center; padding: 3px 12px; border-radius: 20px; font-size: 0.74rem; font-weight: 700; font-family: 'Syne', sans-serif; text-transform: uppercase; letter-spacing: 0.3px; }
.badge-excellent { background: var(--green-pale); color: var(--green); }
.badge-bon { background: var(--blue-light); color: var(--blue); }
.badge-moyen { background: var(--amber-light); color: var(--amber); }
.badge-insuffisant { background: var(--red-light); color: var(--red); }
.badge-superadmin { background: var(--purple-light); color: var(--purple); }
.badge-admin { background: var(--green-pale); color: var(--green); }
.badge-collab { background: var(--blue-light); color: var(--blue); }
.badge-actif { background: var(--green-pale); color: var(--green); }
.badge-inactif { background: var(--red-light); color: var(--red); }

/* ---- BUTTONS ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: var(--radius-sm); font-family: 'Syne', sans-serif; font-weight: 600; font-size: 0.82rem; cursor: pointer; border: none; transition: all 0.18s; text-transform: uppercase; letter-spacing: 0.4px; }
.btn-primary { background: var(--green); color: white; }
.btn-primary:hover { background: var(--green-light); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(26,107,58,0.3); }
.btn-secondary { background: white; color: var(--green); border: 1.5px solid var(--green); }
.btn-secondary:hover { background: var(--green-pale); }
.btn-danger { background: var(--red-light); color: var(--red); border: 1px solid #fca5a5; }
.btn-danger:hover { background: #fca5a5; }
.btn-ghost { background: transparent; color: var(--mid); border: 1.5px solid var(--border); }
.btn-ghost:hover { background: var(--light); }
.btn-sm { padding: 6px 14px; font-size: 0.75rem; }
.btn-lg { padding: 14px 28px; font-size: 0.9rem; width: 100%; justify-content: center; }
.btn-row { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; align-items: center; }

/* ---- PROGRESS ---- */
.progress-wrap { display: flex; align-items: center; gap: 12px; }
.progress-bar { height: 8px; background: var(--border); border-radius: 10px; overflow: hidden; flex: 1; min-width: 80px; }
.progress-fill { height: 100%; border-radius: 10px; transition: width 0.6s ease; }

/* ---- TAUX ROW ---- */
.taux-row td { background: var(--green-pale); font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.85rem; }
.taux-value { color: var(--green); font-size: 1.1rem; font-weight: 800; }

/* ---- STATUS ---- */
.status-oui { background: var(--green-pale); color: var(--green); font-weight: 600; }
.status-non { background: var(--red-light); color: var(--red); font-weight: 600; }
.status-partial { background: var(--amber-light); color: var(--amber); font-weight: 600; }

/* ---- CHART GANTT ---- */
.gantt-wrap { overflow-x: auto; margin-top: 12px; }
.gantt-table { border-collapse: collapse; min-width: 700px; width: 100%; }
.gantt-table th { background: var(--green); color: white; font-family: 'Syne', sans-serif; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; padding: 8px 10px; text-align: center; }
.gantt-table td { padding: 7px 10px; border-bottom: 1px solid var(--border); font-size: 0.83rem; vertical-align: middle; }
.gantt-bar-cell { min-width: 300px; }
.gantt-bar-bg { background: var(--light); border-radius: 4px; height: 22px; position: relative; width: 100%; }
.gantt-bar { height: 100%; border-radius: 4px; position: absolute; top: 0; transition: all 0.3s; display: flex; align-items: center; padding: 0 6px; font-size: 0.7rem; font-weight: 600; color: white; white-space: nowrap; overflow: hidden; }
.gantt-pct { font-size: 0.72rem; font-weight: 700; color: var(--mid); margin-left: 8px; }

/* ---- COLLAB CARD ---- */
.collab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.collab-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow); cursor: pointer;
  transition: all 0.2s; position: relative;
}
.collab-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--green-light); }
.collab-card-header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.collab-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--green); display: flex; align-items: center; justify-content: center; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1rem; color: white; flex-shrink: 0; }
.collab-name { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.95rem; }
.collab-role { font-size: 0.72rem; color: var(--mid); text-transform: uppercase; letter-spacing: 0.4px; }
.collab-score-bar { height: 6px; background: var(--border); border-radius: 10px; overflow: hidden; margin-top: 10px; }
.collab-score-fill { height: 100%; border-radius: 10px; transition: width 0.8s ease; }

/* ---- PERIOD SELECTOR ---- */
.period-selector { display: flex; gap: 12px; align-items: center; margin-bottom: 24px; flex-wrap: wrap; }
.period-selector label { font-size: 0.78rem; font-weight: 500; color: var(--mid); text-transform: uppercase; letter-spacing: 0.4px; }
.period-selector select, .period-selector input { border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 8px 14px; font-family: 'DM Sans', sans-serif; font-size: 0.88rem; outline: none; background: white; }
.period-selector select:focus, .period-selector input:focus { border-color: var(--green); }
.period-btn { padding: 8px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); background: white; font-family: 'Syne', sans-serif; font-size: 0.78rem; font-weight: 600; color: var(--mid); cursor: pointer; transition: all 0.18s; text-transform: uppercase; }
.period-btn.active, .period-btn:hover { background: var(--green); color: white; border-color: var(--green); }

/* ---- TOAST ---- */
.toast { position: fixed; bottom: 30px; right: 30px; background: var(--green); color: white; padding: 14px 22px; border-radius: 10px; font-family: 'Syne', sans-serif; font-weight: 600; font-size: 0.88rem; box-shadow: 0 8px 24px rgba(0,0,0,0.2); opacity: 0; transform: translateY(20px); transition: all 0.3s; pointer-events: none; z-index: 9999; max-width: 340px; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: var(--red); }

/* ---- MODAL ---- */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 500; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.modal-overlay.show { opacity: 1; pointer-events: all; }
.modal { background: white; border-radius: 16px; padding: 36px; max-width: 520px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: 0 32px 80px rgba(0,0,0,0.25); transform: scale(0.95); transition: transform 0.25s; }
.modal-overlay.show .modal { transform: scale(1); }
.modal-title { font-family: 'Syne', sans-serif; font-size: 1.2rem; font-weight: 800; color: var(--dark); margin-bottom: 6px; }
.modal-sub { font-size: 0.85rem; color: var(--mid); margin-bottom: 24px; }
.modal-close { position: absolute; top: 16px; right: 16px; background: var(--light); border: none; border-radius: 8px; padding: 6px 10px; font-size: 1.1rem; cursor: pointer; color: var(--mid); }

/* ---- LOADING ---- */
.loading-screen { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--green-deep); color: white; gap: 20px; }
.loading-spinner { width: 48px; height: 48px; border: 4px solid rgba(255,255,255,0.15); border-top-color: white; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- EVAL OPTIONS ---- */
.eval-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; }
.eval-option { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.eval-option input[type=radio] { accent-color: var(--green); width: 17px; height: 17px; cursor: pointer; }
.eval-option label { font-weight: 500; cursor: pointer; font-size: 0.9rem; }

/* ---- CHART BARS ---- */
.chart-container { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.chart-bars { display: flex; align-items: flex-end; gap: 10px; height: 160px; margin-top: 20px; }
.chart-bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.chart-bar { width: 100%; background: var(--green); border-radius: 6px 6px 0 0; transition: height 0.5s ease; cursor: pointer; }
.chart-bar:hover { opacity: 0.8; }
.chart-bar-val { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.72rem; color: var(--green); }
.chart-bar-lbl { font-size: 0.68rem; color: var(--mid); font-weight: 500; }

/* ---- WEEK ENTRY ---- */
.week-entry { border: 1px solid var(--border); border-radius: 10px; padding: 16px 20px; margin-bottom: 12px; background: white; }
.week-entry-header { display: flex; justify-content: space-between; align-items: center; }
.week-entry-title { font-family: 'Syne', sans-serif; font-weight: 700; color: var(--green); font-size: 0.9rem; }

/* ---- EMPTY STATE ---- */
.empty-state { text-align: center; padding: 60px 20px; color: var(--mid); }
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.5; }
.empty-state h3 { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.empty-state p { font-size: 0.875rem; }

/* ---- ALERT ---- */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 0.875rem; margin-bottom: 16px; display: flex; gap: 10px; align-items: flex-start; }
.alert-info { background: var(--blue-light); color: var(--blue); border: 1px solid #93c5fd; }
.alert-warn { background: var(--amber-light); color: var(--amber); border: 1px solid #fcd34d; }
.alert-success { background: var(--green-pale); color: var(--green); border: 1px solid #6ee7b7; }
.alert-error { background: var(--red-light); color: var(--red); border: 1px solid #fca5a5; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  :root { --sidebar-w: 0px; }
  .sidebar { transform: translateX(-260px); width: 260px; }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .page-content { padding: 20px 16px; }
  .topbar { padding: 0 16px; }
}
@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .collab-grid { grid-template-columns: 1fr; }
}
@media print {
  .sidebar, .topbar, .btn-row, .toast { display: none !important; }
  .main-content { margin-left: 0; }
  .card { box-shadow: none; border: 1px solid #ccc; }
}
