@import url('https://fonts.googleapis.com/css2?family=VT323&family=Share+Tech+Mono&display=swap');

:root {
    --verde: #33ff66;
    --verde-fraco: #1a9943;
    --verde-fundo: #001a05;
    --preto: #010b02;
    --ambar-alerta: #ffb000;
    --vermelho-alerta: #ff4d4d;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--preto);
    color: var(--verde);
    font-family: 'Share Tech Mono', 'VT323', monospace;
    font-size: 16px;
}

/* efeito de scanlines sutil */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        rgba(0,0,0,0) 0px,
        rgba(0,0,0,0) 2px,
        rgba(0,0,0,0.25) 3px
    );
    z-index: 999;
}

a { color: var(--verde); text-decoration: none; }
a:hover { text-decoration: underline; text-shadow: 0 0 6px var(--verde); }

h1, h2, h3 {
    font-family: 'VT323', monospace;
    text-shadow: 0 0 6px var(--verde);
    letter-spacing: 1px;
    margin: 0.4em 0;
}

.terminal {
    max-width: 980px;
    margin: 24px auto;
    padding: 20px 26px;
    border: 2px solid var(--verde);
    border-radius: 4px;
    background: var(--verde-fundo);
    box-shadow: 0 0 18px rgba(51,255,102,0.35), inset 0 0 40px rgba(0,0,0,0.6);
}

.topo {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px dashed var(--verde-fraco);
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.topo .usuario { font-size: 0.9em; opacity: 0.85; }

nav.menu {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    font-size: 0.95em;
}
nav.menu a::before { content: "> "; }

input, textarea, select, button {
    background: var(--preto);
    color: var(--verde);
    border: 1px solid var(--verde-fraco);
    font-family: inherit;
    font-size: 1em;
    padding: 8px 10px;
    border-radius: 2px;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--verde);
    box-shadow: 0 0 8px rgba(51,255,102,0.5);
}
button, .botao {
    cursor: pointer;
    border: 1px solid var(--verde);
    background: var(--verde-fraco);
    color: var(--preto);
    font-weight: bold;
    transition: 0.15s;
}
button:hover, .botao:hover {
    background: var(--verde);
    box-shadow: 0 0 10px var(--verde);
}

table { width: 100%; border-collapse: collapse; margin: 10px 0; }
th, td {
    border: 1px solid var(--verde-fraco);
    padding: 6px 8px;
    text-align: left;
    font-size: 0.95em;
}
th { background: rgba(51,255,102,0.1); }

.cursor-piscante::after {
    content: "_";
    animation: piscar 1s steps(1) infinite;
}
@keyframes piscar { 50% { opacity: 0; } }

/* Visão anual */
.ano-grid {
    display: grid;
    grid-template-columns: 90px repeat(31, 1fr);
    gap: 2px;
    font-size: 0.72em;
    overflow-x: auto;
    overflow-y: visible;
    padding-top: 4px;
    padding-right: 4px;
}
.ano-grid .rotulo-mes { padding: 3px 4px; white-space: nowrap; }
.dia-celula {
    aspect-ratio: 1;
    min-width: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(51,255,102,0.25);
    color: var(--preto);
    position: relative;
}
.dia-livre    { background: rgba(51,255,102,0.12); color: var(--verde-fraco); }
.dia-livre:not(.dia-destaque) { background: #0d3319; color: #33ff66; }
.dia-ocupado  { background: var(--vermelho-alerta); }
.dia-parcial  { background: var(--ambar-alerta); }
.dia-vazio    { background: transparent; border: none; }
.dia-celula:hover { box-shadow: 0 0 6px var(--verde); }
.dia-celula:not(.dia-destaque) { border-color: #cccccc; }

.legenda { display: flex; gap: 14px; margin: 10px 0; font-size: 0.85em; align-items: center; }
.legenda span.quad { display: inline-block; width: 12px; height: 12px; margin-right: 4px; vertical-align: middle; }

.aviso { color: var(--ambar-alerta); border: 1px dashed var(--ambar-alerta); padding: 8px; margin: 10px 0; }
.erro  { color: var(--vermelho-alerta); border: 1px dashed var(--vermelho-alerta); padding: 8px; margin: 10px 0; }
.ok    { color: var(--verde); border: 1px dashed var(--verde); padding: 8px; margin: 10px 0; }

.lista-notas .nota { border-bottom: 1px dotted var(--verde-fraco); padding: 8px 0; }
.tag { display: inline-block; border: 1px solid var(--verde-fraco); padding: 1px 6px; margin-right: 4px; font-size: 0.8em; border-radius: 2px; }
.rotulo-tipo { text-transform: uppercase; font-size: 0.75em; opacity: 0.8; }

footer.rodape { text-align: center; font-size: 0.75em; opacity: 0.6; margin-top: 20px; }