/* ============================================================
   Rodentia — style.css
   Layout geral, variáveis de design e tipografia base.
   Reaproveita exatamente os tokens visuais dos HTMLs originais
   (videos.html / workers.html / process.html).

   Identidade visual: Inter (texto) + Inter Tight (títulos),
   acento de marca #06AED4 (ciano laboratório). --card-bg #262626
   é o neutro escuro de marca, usado como superfície dos cards
   no tema escuro.
   ============================================================ */

@font-face {
    font-family: "Inter";
    src: url("/fonts/Inter[wght].ttf") format("truetype");
    font-weight: 100 900;
}

@font-face {
    font-family: "Inter Tight";
    src: url("/fonts/InterTight[wght].ttf") format("truetype");
    font-weight: 100 900;
}

:root {
    --bg:        #1a1a1a;
    --card-bg:   #262626;
    --card-bd:   #454545;
    --text:      #ddd;
    --muted:     #999;
    --muted-bg:  #333333;
    --accent:    #06AED4;

    --ok:        #8f8;
    --ok-bg:     #123a1a;

    --yellow:    #ffd966;
    --yellow-bg: #473d12;

    --fail:      #f88;
    --fail-bg:   #3a1414;

    --blue:      #84d7ff;
    --blue-bg:   #123040;

    --track:     #23262b;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 20px 48px;
}

/* Páginas mais estreitas (login, processing) seguem o padrão de
   process.html — telas de tarefa única, sem tabelas largas. */
.page-narrow { max-width: 720px; }

h1, h2, h3 {
    font-family: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
}

h1 { color: var(--ok); margin: 0; font-size: 1.6em; }

h2 {
    color: var(--accent);
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--card-bd);
    font-size: 1.05em;
}

h3 {
    color: var(--accent);
    margin: 0 0 10px;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.muted { color: var(--muted); }
.ok    { color: var(--ok); }
.fail  { color: var(--fail); }

.hint { color: var(--muted); font-size: 0.9em; margin-top: 10px; }

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.empty {
    color: var(--muted);
    text-align: center;
    padding: 20px;
}

/* Responsividade básica */
@media (max-width: 600px) {
    .page { padding: 16px 14px 32px; }
    h1 { font-size: 1.3em; }
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: #fff;
    width: 700px;
    max-width: 90%;
    max-height: 80vh;
    overflow: auto;
    border-radius: 8px;
    padding: 20px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}