/* Dashboard -> FiveM -> Mod : boss en direct et réglages des boss (mod-chaos-v1.js). */
body.cc-control-active .cc-mod-view { display: none; }

body.cc-control-active.cc-mod-active .dashboard-content > .main-nav,
body.cc-control-active.cc-mod-active .dashboard-content > .sub-nav,
body.cc-control-active.cc-mod-active .dashboard-content > .dashboard-section:not(.cc-mod-view) {
  display: none !important;
}
body.cc-control-active.cc-mod-active .dashboard-content > .cc-mod-view { display: block; padding: 0; }

.cc-mod-view { --cc-mod-line: var(--cc-line, rgba(255, 255, 255, .09)); color: var(--cc-text, #f7f7f8); }
.cc-mod-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 1100px) { .cc-mod-grid { grid-template-columns: minmax(0, 1fr); } }

.cc-mod-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px 4px; min-height: 28px; }
.cc-mod-title h3 { margin: 0; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--cc-text-muted, #74747e); }
.cc-mod-status { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; color: var(--cc-text-soft, #b0b0b8); }
.cc-mod-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #5d5d66; }
.cc-mod-status[data-state="on"] { color: #2fd277; }
.cc-mod-status[data-state="on"]::before { background: #2fd277; box-shadow: 0 0 8px #2fd277; }
.cc-mod-save { font-size: .82rem; color: var(--cc-text-soft, #b0b0b8); }
.cc-mod-save[data-state="saved"] { color: #2fd277; }
.cc-mod-save[data-state="error"] { color: #ff6b6b; }

.cc-mod-live, .cc-mod-card, .cc-mod-preview {
  border: 1px solid var(--cc-mod-line); border-radius: 14px;
  background: linear-gradient(145deg, rgba(21, 21, 25, .98), rgba(13, 13, 16, .98));
}
.cc-mod-live { display: flex; flex-direction: column; gap: 14px; padding: 18px; min-height: 120px; }
.cc-mod-empty { margin: auto; color: var(--cc-text-muted, #74747e); font-size: .9rem; }
.cc-mod-card { margin: 0 0 14px; }
.cc-mod-preview { padding: 18px; margin: 0 0 14px; background: radial-gradient(circle at 30% 0%, rgba(80, 90, 120, .25), transparent 60%), #0b0b0e; }

/* Barre d'un boss : mêmes éléments que dans le jeu (nom, @donateur, barre, points de vie). */
.cc-mod-boss { --cc-mod-scale: 1; font-size: calc(16px * var(--cc-mod-scale)); }
.cc-mod-boss-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 5px; }
.cc-mod-boss-name { font-size: 1.35em; line-height: 1; letter-spacing: .02em; text-shadow: 0 0 2px #000, 0 2px 4px #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-mod-boss-donor { font-size: 1em; line-height: 1; text-shadow: 0 0 2px #000, 0 2px 4px #000; white-space: nowrap; }
.cc-mod-boss-track { position: relative; height: calc(16px * var(--cc-mod-scale)); border-radius: 4px; background: rgba(0, 0, 0, .7); box-shadow: 0 0 0 2px rgba(0, 0, 0, .55); overflow: hidden; }
.cc-mod-boss-fill { height: 100%; transition: width .45s ease; }
.cc-mod-boss-hp { position: absolute; inset: 0; display: grid; place-items: center; font-size: .72em; font-weight: 700; color: #fff; text-shadow: 0 1px 2px #000; }
.cc-mod-boss.is-tired .cc-mod-boss-fill { animation: cc-mod-blink .18s ease-in-out infinite alternate; }
@keyframes cc-mod-blink { to { filter: brightness(2.2); } }
.cc-mod-boss-fill.is-rainbow { background: linear-gradient(90deg, #ff004c, #ff9f00, #f5ff00, #2bff6b, #00c8ff, #8a2bff, #ff004c); background-size: 200% 100%; animation: cc-mod-rainbow 3s linear infinite; }
.cc-mod-boss-name.is-rainbow { background: linear-gradient(90deg, #ff004c, #ff9f00, #f5ff00, #2bff6b, #00c8ff, #8a2bff, #ff004c); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: cc-mod-rainbow 3s linear infinite; text-shadow: none; }
@keyframes cc-mod-rainbow { to { background-position: 200% 0; } }

.cc-mod-heroes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.cc-mod-hero {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--cc-line-strong, rgba(255, 255, 255, .15)); background: transparent; color: var(--cc-text, #f7f7f8);
  font: inherit; font-size: .9rem; cursor: pointer;
}
.cc-mod-hero i { width: 10px; height: 10px; border-radius: 50%; }
.cc-mod-hero:hover { background: rgba(255, 255, 255, .06); }
.cc-mod-hero.is-active { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .35); }

.cc-mod-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 8px 16px; font-size: .95rem; }
.cc-mod-row + .cc-mod-row { border-top: 1px solid var(--cc-mod-line); }
label.cc-mod-row { cursor: pointer; }
.cc-mod-end { display: flex; align-items: center; gap: 10px; }
.cc-mod-input, .cc-mod-select {
  width: min(240px, 55%); padding: 8px 10px; border-radius: 9px; border: 1px solid var(--cc-line-strong, rgba(255, 255, 255, .15));
  background: #0c0c0f; color: var(--cc-text, #f7f7f8); font: inherit; font-size: 1rem;
}
.cc-mod-select option { font-size: 1rem; background: #0c0c0f; }
.cc-mod-color { width: 44px; height: 32px; padding: 0; border: 1px solid var(--cc-line-strong, rgba(255, 255, 255, .15)); border-radius: 8px; background: transparent; cursor: pointer; }
.cc-mod-chip, .cc-mod-seg button {
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--cc-line-strong, rgba(255, 255, 255, .15));
  background: transparent; color: var(--cc-text-soft, #b0b0b8); font: inherit; font-size: .82rem; cursor: pointer;
}
.cc-mod-chip.is-on, .cc-mod-seg button.is-on { background: var(--cc-accent, #ff0033); border-color: transparent; color: #fff; }
.cc-mod-seg { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.cc-mod-switch { appearance: none; position: relative; flex: none; width: 46px; height: 28px; border-radius: 999px; background: #3a3a42; cursor: pointer; transition: background .2s; margin: 0; }
.cc-mod-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.cc-mod-switch:checked { background: #2fd277; }
.cc-mod-switch:checked::after { transform: translateX(18px); }
.cc-mod-reset { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--cc-line-strong, rgba(255, 255, 255, .15)); background: transparent; color: var(--cc-text-soft, #b0b0b8); font: inherit; font-size: .85rem; cursor: pointer; }
.cc-mod-reset:disabled { opacity: .4; cursor: default; }
.cc-mod-view button:focus-visible, .cc-mod-view input:focus-visible, .cc-mod-view select:focus-visible { outline: 2px solid var(--cc-accent, #ff0033); outline-offset: 2px; }
@media (max-width: 560px) { .cc-mod-row { flex-wrap: wrap; } .cc-mod-input, .cc-mod-select { width: 100%; } }
.cc-mod-locked { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 48px 16px; border: 1px solid var(--cc-mod-line); border-radius: 14px; color: var(--cc-text-soft, #b0b0b8); }
.cc-mod-locked .material-icons { font-size: 34px; color: var(--cc-text-muted, #74747e); }
.cc-mod-locked p { margin: 0; }
.cc-mod-link-block { margin: 0 0 24px; }
.cc-mod-link { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 16px; margin: 0; }
.cc-mod-link .cc-mod-link-input { flex: 1 1 320px; width: auto; font-size: .85rem; font-family: ui-monospace, monospace; color: var(--cc-text-soft, #b0b0b8); }
.cc-mod-link a.cc-mod-reset { text-decoration: none; }
.cc-mod-primary { padding: 9px 18px; border: 0; border-radius: 999px; background: var(--cc-accent, #ff0033); color: #fff; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.cc-mod-primary:disabled { opacity: .6; cursor: default; }
.cc-mod-section { margin: 0 0 14px; }
.cc-mod-section-title { margin: 0 0 6px 14px; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--cc-text-muted, #74747e); }
.cc-mod-section .cc-mod-card { margin: 0; }
.cc-mod-range { width: 150px; accent-color: var(--cc-accent, #ff0033); cursor: pointer; }
.cc-mod-range-value { min-width: 44px; text-align: right; font-variant-numeric: tabular-nums; color: var(--cc-text-soft, #b0b0b8); font-size: .88rem; }
