﻿:root{ --bg:#0b1220; --card:#101a2f; --muted:#a9b4cc; --text:#eaf0ff; --primary:#4f8cff; --primary-2:#2b5bd7; --accent:#00c2a8; }
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
margin:0; font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial; color:var(--text); background:radial-gradient(1000px 600px at 80% -10%, #1b2a4a 0%, transparent 60%),
linear-gradient(180deg, #091123 0%, #0b1220 100%);
}
.header{ padding:24px 20px 8px; text-align:center; }
.header h1{ margin:0 0 6px; letter-spacing:0.4px; font-size:24px; }
.header p{ margin:4px 0; color:var(--muted); }
.toolbar{ display:flex; gap:12px; align-items:center; justify-content:center; padding:8px 16px; }

.progress{ position:relative; width:340px; height:10px; background:#0a1330; border-radius:999px; box-shadow:inset 0 0 0 1px #1d2b50; }
.progress #progressInner{ position:absolute; top:0; left:0; height:100%; width:0%; background:linear-gradient(90deg, var(--primary), var(--accent)); border-radius:999px; transition:width .3s ease; }
.progress #progressText{ position:absolute; top:14px; right:0; font-size:12px; color:var(--muted); }
.container{ max-width:980px; margin:0 auto; padding:20px; }
.card{ background:linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02)); border:1px solid rgba(255,255,255,0.08); border-radius:16px; padding:20px; box-shadow:0 8px 30px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.04); backdrop-filter: blur(8px); }
.intro .grid{ display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:16px; }
label{ display:flex; flex-direction:column; gap:8px; font-weight:600; color:#d6def2; }
input, textarea{ background:#0c1630; color:var(--text); border:1px solid #1a2750; border-radius:10px; padding:12px 14px; outline:none; box-shadow:0 0 0 0 rgba(79,140,255,.2); transition: box-shadow .2s ease, border-color .2s ease, transform .06s ease; }
textarea{ width:100%; min-height:120px; resize:vertical; }
input:focus, textarea:focus{ border-color:var(--primary); box-shadow:0 0 0 4px rgba(79,140,255,.12); }
#stepContainer .item-name{ font-size:18px; line-height:1.4; margin:6px 0 2px; }
#stepContainer .unit{ color:var(--muted); font-size:12px; margin-bottom:12px; }
.field{ margin:16px 0; }
.label{ display:block; margin-bottom:8px; color:#d6def2; font-weight:700; }
.options{ display:flex; gap:14px; }
.opt{ display:flex; gap:8px; align-items:center; background:#0c1630; padding:8px 12px; border-radius:999px; border:1px solid #1a2750; cursor:pointer; user-select:none; }
.opt input{ accent-color: var(--primary); }
.consumo-wrap{ display:flex; align-items:center; gap:8px; }
.consumo-wrap input{ width:180px; }
.unit-pill{ padding:6px 10px; border-radius:999px; border:1px dashed #3656a6; color:#a5b5e3; font-size:12px; }
.hint{ color:#8fa1c7; }
.actions{ display:flex; gap:12px; justify-content:flex-end; margin-top:12px; }
.btn{ background:#122045; color:var(--text); border:1px solid #25408e; padding:12px 18px; border-radius:12px; font-weight:700; cursor:pointer; transition: transform .06s ease, background .2s ease, box-shadow .2s ease; }
.btn:hover{ background:#162a57; box-shadow:0 10px 30px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.05); }
.btn:active{ transform: translateY(1px); }
.btn.primary{ background: linear-gradient(180deg, var(--primary), var(--primary-2)); border-color: transparent; }
.btn.secondary{ background:#0e1a39; border:1px solid #203a80; }
.btn:disabled{ opacity:.5; cursor:not-allowed; }
.hidden{ display:none; }
.toast{ position:fixed; left:50%; top:50%; transform:translate(-50%, -50%) scale(.9); background:#0f1b38; color:#fff; padding:12px 16px; border-radius:12px; border:1px solid #25408e; box-shadow:0 10px 40px rgba(0,0,0,.5); opacity:0; pointer-events:none; transition: all .2s ease; }
.toast.show{ opacity:1; transform:translate(-50%, -50%) scale(1); }

/* Estilos para dicas de teclado */
.keyboard-hint {
    text-align: center;
    margin-top: 16px;
    padding: 12px;
    background: rgba(79, 140, 255, 0.05);
    border: 1px solid rgba(79, 140, 255, 0.1);
    border-radius: 8px;
    color: var(--muted);
    font-size: 13px;
}

.keyboard-hint kbd {
    display: inline-block;
    padding: 2px 6px;
    background: #0c1630;
    border: 1px solid #1a2750;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: var(--primary);
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    margin: 0 2px;
}

/* Melhorar foco visual para campos de entrada */
input:focus, textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79,140,255,.12);
    transform: translateY(-1px);
}

/* Animação sutil para indicar que o Enter funciona */
.btn.primary:focus {
    box-shadow: 0 0 0 4px rgba(79,140,255,.2);
}

/* Melhorar acessibilidade dos radio buttons */
.opt {
    transition: all 0.2s ease;
}

.opt:hover {
    background: #0f1a35;
    border-color: var(--primary);
}

.opt:focus-within {
    background: #0f1a35;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(79,140,255,.2);
}

.opt input:focus {
    outline: none;
}

/* Indicador visual para campos obrigatórios */
.field.required .label::after {
    content: " *";
    color: var(--accent);
}

/* Melhorar feedback visual para navegação por teclado */
.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(79,140,255,.3);
}

/* Animação para indicar que o Enter foi pressionado */
@keyframes enterPress {
    0% { transform: scale(1); }
    50% { transform: scale(0.98); }
    100% { transform: scale(1); }
}

.enter-pressed {
    animation: enterPress 0.15s ease;
}

.animate{ animation: pop .25s ease; }
.slide-left{ animation: slideL .25s ease; }
.slide-right{ animation: slideR .25s ease; }
@keyframes pop{ from{ transform: scale(.98); opacity:.8 } to{ transform: scale(1); opacity:1 } }
@keyframes slideL{ from{ transform: translateX(10px); opacity:.6 } to{ transform: translateX(0); opacity:1 } }
@keyframes slideR{ from{ transform: translateX(-10px); opacity:.6 } to{ transform: translateX(0); opacity:1 } }
@media (max-width: 720px){ .intro .grid{ grid-template-columns: 1fr; } .toolbar{ flex-direction:column; } }
