/* ── Boussole+ Desktop — styles.css ── */
:root {
  --bg:         #F6F7F4;
  --surface:    #FFFFFF;
  --surface2:   #EEF3EF;
  --surface3:   #E8E5DF;
  --border:     rgba(6,17,45,0.08);
  --border2:    rgba(6,17,45,0.14);
  --text:       #06172D;
  --muted:      #61615f;
  --muted2:     #8a8a87;
  --primary:      #2d6a4f;
  --primary-dim:  rgba(45,106,79,0.12);
  --primary-dark: #1b4332;
  --green:      #16a34a;
  --amber:      #b45309;
  --red:        #dc2626;
  --blue:       #2563eb;
  --terra:      #c2410c;
  --terra-dim:  rgba(194,65,12,0.10);
  --sidebar-w:  220px;
  --panel-w:    280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* ── SHELL ── */
.shell { display: flex; flex: 1; overflow: hidden; }

/* ── TOPBAR ── */
.topbar {
  height: 44px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 12px;
  flex-shrink: 0;
  z-index: 10;
}
.topbar-toggle {
  width: 32px; height: 32px; border-radius: 8px;
  border: none; background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 16px;
  transition: background .14s;
}
.topbar-toggle:hover { background: var(--surface2); }
.topbar-title {
  font-size: 14px; font-weight: 700; color: var(--text);
  margin-left: 10px;
}
.topbar-spacer { flex: 1; }
.topbar-import-btn {
  background: var(--primary); color: #fff;
  border: none; border-radius: 8px;
  padding: 6px 14px; font-size: 12px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  transition: background .14s;
}
.topbar-import-btn:hover { background: var(--primary-dark); }

/* ── SIDEBAR ── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: width .22s ease;
  overflow: hidden;
}
.sidebar.collapsed { width: 0; border-right: none; overflow: hidden; }

.sidebar-brand {
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.logo { font-size: 14px; font-weight: 800; color: var(--text); white-space: nowrap; }
.logo span { color: var(--primary); }
.plan-chip {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 5px; font-size: 10px; font-weight: 700;
  color: var(--primary); background: var(--primary-dim);
  border: 1px solid rgba(45,106,79,0.3);
  padding: 2px 8px; border-radius: 20px; text-transform: uppercase; letter-spacing: .05em;
}
.sidebar-nav { flex: 1; overflow-y: auto; padding: 10px 8px; }
.nav-group { margin-bottom: 16px; }
.nav-group-label {
  font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .09em; color: var(--muted2); padding: 0 8px; margin-bottom: 4px;
}
.nav-item {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: 8px; cursor: pointer;
  color: var(--muted); font-size: 12px; font-weight: 500;
  transition: all .14s; white-space: nowrap; margin-bottom: 1px;
  user-select: none;
}
.nav-item:hover { background: var(--surface2); color: var(--text); }
.nav-item.active { background: var(--primary-dim); color: var(--primary); font-weight: 600; }
.nav-item .ico { font-size: 14px; width: 18px; text-align: center; flex-shrink: 0; }
.sidebar-footer {
  padding: 10px 8px; border-top: 1px solid var(--border); flex-shrink: 0;
}
.user-row {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 10px; border-radius: 8px; cursor: pointer; transition: background .14s;
}
.user-row:hover { background: var(--surface2); }
.avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--primary-dark); display: flex; align-items: center;
  justify-content: center; font-size: 11px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.user-name { font-size: 12px; font-weight: 600; color: var(--text); }
.user-sub  { font-size: 10px; color: var(--muted2); }

/* ── MAIN ── */
.main-content {
  flex: 1;
  overflow-y: auto;
  background: var(--bg);
}

/* ── DROP ZONE ── */
.drop-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 200;
  background: rgba(45,106,79,0.12);
  border: 3px dashed var(--primary);
  border-radius: 16px;
  margin: 12px;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 12px;
  font-size: 18px; font-weight: 700; color: var(--primary);
  pointer-events: none;
}
.drop-overlay.active { display: flex; }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: #06172D; color: #fff; border-radius: 12px;
  padding: 12px 20px; font-size: 13px; font-weight: 600;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2); z-index: 9999;
  max-width: 380px; text-align: center;
  animation: toastIn .25s ease;
}
@keyframes toastIn { from { opacity:0; transform: translateX(-50%) translateY(12px); } }
.toast.success { background: #16a34a; }
.toast.error   { background: #dc2626; }
