:root {
    --background: #0f172a;
    --surface: #1e293b;
    --surface-light: #334155;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #0ea5e9;
    --success: #10b981;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--background);
    color: var(--text);
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.container {
    background-color: var(--surface);
    width: 100%;
    max-width: 500px;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

h1 {
    color: var(--text);
    font-size: 22px;
    text-align: center;
    margin-top: 0;
}

h3 {
    color: var(--text-muted);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.painel-valores {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.bloco {
    flex: 1;
    background-color: var(--surface-light);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.bloco:hover {
    transform: translateY(-2px);
    background-color: #475569;
}

.bloco p {
    font-size: 20px;
    font-weight: 700;
    margin: 6px 0 0 0;
    color: var(--accent);
}

.bloco.destaque {
    background-color: var(--success);
}

.bloco.destaque p, .bloco.destaque h3 {
    color: #ffffff;
}

.controles-rapidos {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.btn-controle {
    flex: 1;
    background-color: var(--surface-light);
    color: var(--text);
    border: 1px solid #475569;
    padding: 8px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-controle:hover {
    background-color: var(--accent);
    border-color: var(--accent);
}

.escondido {
    display: none !important;
}

.formulario, .historico-container {
    background-color: #111827;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--surface-light);
    animation: abrirMenu 0.2s ease-out;
}

.input-group {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.formulario input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--surface-light);
    border-radius: 6px;
    font-size: 13px;
    background-color: var(--surface);
    color: var(--text);
}

.formulario input:focus {
    outline: none;
    border-color: var(--accent);
}

.btn-adicionar {
    width: 100%;
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

li {
    background-color: var(--surface-light);
    border: 1px solid #475569;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.2s ease forwards;
}

.btn-fazer {
    background-color: var(--success);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
}

.btn-fazer:hover {
    filter: brightness(1.1);
}

/* Histórico Organizado e Legível */
.lista-historico li {
    background-color: #111827;
    border-left: 3px solid var(--accent);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px;
}

.data-historico {
    font-size: 11px;
    color: #38bdf8;
    margin-top: 4px;
    font-weight: bold;
}

@keyframes abrirMenu {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: slideIn 0.3s ease-out forwards;
}