/* DRS Community Service
   Só fundos sólidos: no FiveM, sombras, filtros e animações com transform ficam com um retângulo preto.
   Solid backgrounds only: in FiveM, shadows, filters and transform animations render a black box. */
:root {
    --bg: rgb(12, 13, 19);
    --panel: rgb(16, 17, 25);
    --side: rgb(19, 20, 30);
    --card: rgb(24, 26, 38);
    --card-hover: rgb(30, 32, 46);
    --card-active: rgb(34, 33, 58);
    --line: rgb(38, 40, 56);
    --line-soft: rgb(30, 32, 45);
    --white: #f4f4fb;
    --text: #d6d8e6;
    --muted: #8b8fa8;
    --faint: #5d6180;
    --accent: #fbbf24;
    --accent-2: #fcd34d;
    --accent-bg: rgb(52, 40, 14);
    --ok: #4ade80;
    --bad: #f87171;
    --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; font-family: "Manrope", "Segoe UI", sans-serif; }
html, body { width: 100vw; height: 100vh; overflow: hidden; background: transparent; color: var(--text); user-select: none; }
.hidden { display: none !important; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input, textarea { font: inherit; color: var(--white); }
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ------------------------------------------------------------------ HUD */
.hud {
    position: fixed; width: 250px;
    background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
    overflow: hidden;
}
.hud.right-center { top: 36vh; right: 1.4vw; }
.hud.left-center { top: 36vh; left: 1.4vw; }
.hud.top-center { top: 3vh; left: 0; right: 0; margin: 0 auto; }
.hud-head { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: var(--bg); border-bottom: 1px solid var(--line); border-left: 3px solid var(--accent); }
.hud-icon { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: var(--accent); background: var(--accent-bg); }
.hud-icon svg { width: 15px; height: 15px; }
.hud-title { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white); }
.hud-count { display: flex; align-items: flex-end; gap: 10px; padding: 14px 14px 10px; }
.hud-count strong { font: 700 38px/0.9 var(--mono); color: var(--white); }
.hud-count span { display: flex; flex-direction: column; gap: 2px; padding-bottom: 2px; }
.hud-count b { font-size: 12px; font-weight: 800; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; }
.hud-count em { font: normal 600 11px var(--mono); color: var(--muted); }
.hud-bar { height: 6px; margin: 0 14px; border-radius: 6px; background: var(--card-hover); overflow: hidden; }
.hud-bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--accent); transition: width 0.4s ease; }
.hud-info { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.hud-info div { display: flex; flex-direction: column; gap: 2px; }
.hud-info dt { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.hud-info dd { font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ------------------------------------------------------------------ prompt */
.prompt {
    position: fixed; top: 50vh; right: 1.4vw;
    display: flex; align-items: center; gap: 10px;
    padding: 8px 14px 8px 8px; border-radius: 12px;
    background: var(--panel); border: 1px solid var(--line);
    font-size: 13.5px; font-weight: 700; color: var(--white);
}
.prompt.left-center { right: auto; left: 1.4vw; }
.prompt.top-center { top: 16vh; left: 0; right: 0; margin: 0 auto; width: max-content; }
.prompt kbd { min-width: 30px; height: 30px; padding: 0 8px; border-radius: 8px; display: grid; place-items: center; font: 700 13px var(--mono); color: #2b1f04; background: var(--accent); }

/* ------------------------------------------------------------------ progress */
.progress {
    position: fixed; left: 0; right: 0; bottom: 11vh; margin: 0 auto;
    width: 340px; padding: 12px 14px 14px; border-radius: 14px;
    background: var(--panel); border: 1px solid var(--line);
}
.progress-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; font-size: 13px; font-weight: 800; color: var(--white); }
.pct { font: 700 12px var(--mono); color: var(--accent); }
.progress-bar { height: 8px; border-radius: 8px; background: var(--card-hover); overflow: hidden; }
.progress-bar i { display: block; height: 100%; width: 0; border-radius: 8px; background: var(--accent); }

/* ------------------------------------------------------------------ officer form */
.form {
    position: fixed; top: 0; bottom: 0; left: 0; right: 0; margin: auto;
    width: min(520px, 94vw); height: max-content; max-height: 90vh;
    display: flex; flex-direction: column;
    background: var(--panel); border: 1px solid var(--line); border-radius: 22px;
    overflow: hidden;
}
.form-head { display: flex; align-items: center; gap: 13px; padding: 16px 18px; background: var(--bg); border-bottom: 1px solid var(--line); }
.logo { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: var(--accent); background: var(--accent-bg); flex-shrink: 0; }
.logo svg { width: 24px; height: 24px; }
.form-head div { flex: 1; min-width: 0; }
h1 { font-size: 18px; font-weight: 800; color: var(--white); line-height: 1.2; }
.form-head p { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.icon-btn { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: var(--muted); background: var(--side); border: 1px solid var(--line-soft); }
.icon-btn:hover { color: var(--white); background: var(--card-hover); }
.icon-btn svg { width: 17px; height: 17px; }

.form-body { padding: 20px 20px 6px; display: flex; flex-direction: column; gap: 18px; overflow-y: auto; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.range-hint { font: 600 11px var(--mono); letter-spacing: 0; text-transform: none; color: var(--faint); }
.field input, .field textarea { width: 100%; padding: 12px 14px; border-radius: 12px; font-size: 14px; background: var(--card); border: 1px solid var(--line); outline: none; user-select: text; }
.field textarea { min-height: 84px; resize: none; line-height: 1.5; }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field.error input { border-color: var(--bad); }

.nearby { display: flex; flex-direction: column; gap: 6px; max-height: 176px; overflow-y: auto; }
.nearby .none { padding: 10px 12px; border-radius: 10px; font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--side); border: 1px dashed var(--line); }
.person { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 11px; background: var(--card); border: 1px solid var(--line-soft); text-align: left; }
.person:hover { background: var(--card-hover); }
.person.on { background: var(--card-active); border-color: var(--accent); }
.person .pid { min-width: 38px; height: 24px; padding: 0 6px; border-radius: 7px; display: grid; place-items: center; font: 700 11.5px var(--mono); color: var(--accent); background: var(--accent-bg); }
.person .pname { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 700; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person .pdist { font: 600 11px var(--mono); color: var(--faint); }

.tasks { display: grid; grid-template-columns: 48px 44px 1fr 44px 48px; gap: 6px; }
.tasks input { text-align: center; font: 700 20px var(--mono); padding: 8px; }
.step { height: 46px; border-radius: 11px; font: 700 13px var(--mono); color: var(--text); background: var(--card); border: 1px solid var(--line-soft); }
.step:hover { color: var(--white); background: var(--card-hover); }
.presets { display: flex; gap: 6px; flex-wrap: wrap; }
.presets button { height: 28px; padding: 0 11px; border-radius: 8px; font: 700 12px var(--mono); color: var(--muted); background: var(--card); border: 1px solid var(--line-soft); }
.presets button:hover { color: var(--white); }
.presets button.on { color: var(--white); border-color: var(--accent); background: var(--accent-bg); }

.form-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 20px 18px; }
.btn { height: 42px; padding: 0 20px; border-radius: 11px; font-size: 13.5px; font-weight: 800; color: #2b1f04; background: var(--accent); }
.btn:hover { background: var(--accent-2); }
.btn:disabled { cursor: not-allowed; color: var(--faint); background: var(--card); }
.btn.ghost { color: var(--text); background: var(--card); border: 1px solid var(--line); }
.btn.ghost:hover { color: var(--white); background: var(--card-hover); }
