/*! oo-mod-framework.css — OpenOverlay Module Framework
 * Généré automatiquement depuis admin/admin.css par scripts/gen-framework-css.js
 * NE PAS MODIFIER MANUELLEMENT — relancer "npm run build:framework"
 */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:        #0c0c10;
  --surface:   #1e1e2a;
  --surface2:  #252535;
  --surface3:  #2e2e42;
  --border:    rgba(255,255,255,0.08);
  --text:      #f0eeff;
  --muted:     #7c7a99;
  --purple:    #7c5cfc;
  --purple-h:  #6847e8;
  --accent:    #7c5cfc;   /* alias de --purple */
  --accent2:   #c9b8ff;   /* violet clair — texte sur fond sombre */
  --green:     #00c896;
  --red:       #ff4040;
  --yellow:    #f0a000;
  --radius:    14px;
}

/* ══════════════════════════════════════════════════════════════════════════════
   FRAMEWORK CSS — UTILITAIRES & COMPOSANTS PARTAGÉS
   Classes disponibles pour le core et les mods sans import supplémentaire.
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Visibilité ────────────────────────────────────────────────────────────── */
.hidden { display: none !important; }

/* ── Utilitaires texte & couleur ───────────────────────────────────────────── */
.text-muted    { color: var(--muted); }
.text-green    { color: var(--green); }
.text-red      { color: var(--red); }
.text-yellow   { color: var(--yellow); }
.text-purple   { color: var(--purple); }
.text-accent2  { color: var(--accent2); }
.text-em       { color: var(--text); }

.text-sm   { font-size: 13px; }
.text-xs   { font-size: 12px; }
.text-xxs  { font-size: 11px; }

.text-center { text-align: center; }
.text-right  { text-align: right; }
.nowrap      { white-space: nowrap; }
.mono        { font-family: monospace; }
.fw-bold     { font-weight: 600; }
.fw-normal   { font-weight: 400; }
.text-italic { font-style: italic; }

/* ── Utilitaires espacement ────────────────────────────────────────────────── */
.mb-4  { margin-bottom:  4px; }
.mb-6  { margin-bottom:  6px; }
.mb-8  { margin-bottom:  8px; }
.mb-10 { margin-bottom: 10px; }
.mb-12 { margin-bottom: 12px; }
.mb-14 { margin-bottom: 14px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mt-4  { margin-top:     4px; }
.mt-6  { margin-top:     6px; }
.mt-8  { margin-top:     8px; }
.mt-10 { margin-top:    10px; }
.mt-12 { margin-top:    12px; }
.mt-16 { margin-top:    16px; }
.mt-20 { margin-top:    20px; }
.ml-6  { margin-left:    6px; }
.ml-8  { margin-left:    8px; }
.ml-10 { margin-left:   10px; }
.m-0   { margin: 0; }
.py-8  { padding-top: 8px; padding-bottom: 8px; }

/* ── Utilitaires flex / gap ────────────────────────────────────────────────── */
.flex-1   { flex: 1; }
.shrink-0 { flex-shrink: 0; }
.min-w-0  { min-width: 0; }
.gap-6    { gap:  6px; }
.gap-8    { gap:  8px; }

/* ── Utilitaires min-width ─────────────────────────────────────────────────── */
.min-w-90  { min-width:  90px; }
.min-w-100 { min-width: 100px; }
.min-w-120 { min-width: 120px; }
.min-w-220 { min-width: 220px; }

/* ── Modificateurs de card ─────────────────────────────────────────────────── */
.card--mb-sm   { margin-bottom: 12px; }
.card--warn    { border-color: rgba(240,160,0,0.35); }
.card--premium { border-color: rgba(124,92,252,0.3); }
.card--accent  { border-color: var(--purple); border-left-width: 3px; }

.card-body--flush  { padding: 0; }
.card-body--center { text-align: center; padding: 24px 16px; }
.card-body--loose  { padding: 24px 28px; }
.card-body--no-top { padding-top: 0; }

/* ── Code preview (URL, redirect URI, code d'activation) ───────────────────── */
.code-preview {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  font-family: monospace;
  font-size: 13px;
  color: var(--purple);
  word-break: break-all;
}

/* ── Tag chips (pills store) ───────────────────────────────────────────────── */
.tag-chip {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--surface2);
  color: var(--muted);
}

/* ── Nexus banner (bandeau rechargement store) ─────────────────────────────── */
.nexus-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(145,71,255,0.12);
  border: 1px solid var(--purple);
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 13px;
}

/* ── Barre de progression (installation module) ────────────────────────────── */
.progress-track {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  overflow: hidden;
}
.progress-fill {
  width: 0;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* ── Flex rows ─────────────────────────────────────────────────────────────── */
.row-flex          { display: flex; align-items: center; gap: 10px; }
.row-flex--between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.row-flex--wrap    { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.flex-col          { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.flex-col--lg      { gap: 16px; }

/* ── Composants admin ──────────────────────────────────────────────────────── */
.btn-xs          { padding: 2px 8px; }
.icon-lg         { font-size: 22px; }
.border-top-sep  { padding-top: 12px; border-top: 1px solid var(--border); }
.tags-row        { display: flex; gap: 6px; flex-wrap: wrap; }
.list-spaced     { line-height: 2; padding-left: 18px; }
.field--sm       { max-width: 280px; }
.filename-hint   { margin-left: 10px; color: var(--muted); font-size: 12px; }
.hint--spaced    { margin: 8px 0 12px; }
.store-mod-icon  { font-size: 22px; }
.nexus-login-row   { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.nexus-login-input { flex: 1; min-width: 140px; }

/* ── Ligne d'historique ────────────────────────────────────────────────────── */
.history-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.history-row:last-child { border-bottom: none; }

/* ── Meta-infos module store (version, auteur) ─────────────────────────────── */
.mod-meta { font-size: 11px; color: var(--muted); font-weight: 400; margin-left: 8px; }

/* ── Barre de sauvegarde (save-bar) ───────────────────────────────────────── */
#save-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 12px 24px;
  align-items: center;
  justify-content: space-between;
  z-index: 2147483647;
}
#save-bar.visible { display: flex; }

/* ── Panneau mode dev ──────────────────────────────────────────────────────── */
#dev-mode-warning {
  background: rgba(251,191,36,0.08);
  border: 1px solid rgba(251,191,36,0.3);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #fde68a;
  line-height: 1.6;
}

/* ── Asset previews — état visible ────────────────────────────────────────── */
.asset-img-preview.visible,
.asset-sound-preview.visible,
.asset-video-preview.visible { display: block; }

/* ── Sélecteur de style d'alerte (OO.AlertBox) ──────────────────────────────── */
.asp-picker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.asp-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--bg-input);
  cursor: pointer;
  min-width: 76px;
  transition: border-color .15s, background .15s;
  font-family: inherit;
}
.asp-btn:hover { border-color: var(--accent); background: var(--bg-hover); }
.asp-btn.active {
  border-color: var(--accent);
  background: rgba(124, 92, 252, 0.12);
}

.asp-icon  { font-size: 18px; line-height: 1; }
.asp-label { font-size: 11px; color: var(--muted); white-space: nowrap; }
.asp-btn.active .asp-label { color: var(--accent); font-weight: 600; }

.asp-preview {
  width: 52px;
  height: 30px;
  border-radius: 4px;
  flex-shrink: 0;
}
.asp-preview--glass {
  background: rgba(12, 12, 18, 0.93);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.asp-preview--solid {
  background: rgb(14, 14, 22);
  border: 2px solid var(--asp-accent, var(--accent));
}
.asp-preview--neon {
  background: rgba(5, 5, 12, 0.95);
  border: 1px solid var(--asp-accent, var(--accent));
  box-shadow: 0 0 8px var(--asp-accent, var(--accent));
}
.asp-preview--minimal {
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-left: 3px solid var(--asp-accent, var(--accent));
  border-radius: 2px;
}

.asp-preview--bd {
  background: #fffef0;
  border: 2px solid #111;
  box-shadow: 3px 3px 0 #111;
  border-radius: 3px;
}

.asp-accent-row { align-items: center; }

/* ── Check-up ──────────────────────────────────────────────────────────────── */
.checkup-list      { display: flex; flex-direction: column; gap: 8px; }
.checkup-row       { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.checkup-var       { font-size: 12px; color: var(--accent); min-width: 280px; flex-shrink: 0; }
.checkup-ok        { font-size: 12px; color: #4ade80; font-weight: 600; }
.checkup-error     { font-size: 12px; color: #f87171; font-weight: 600; }
.checkup-default   { font-size: 12px; color: var(--muted); }
.checkup-optional  { font-size: 11px; color: var(--muted); opacity: 0.6; }
