/* 1. Reset de Elementos e Identidade Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: #0F141C; /* Grafite Neural */
    color: #FFFFFF;
    padding: 20px;
    display: flex;
    justify-content: center;
}

#app {
    width: 100%;
    max-width: 480px; /* Otimizado para Smartphones */
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* 2. Cabeçalho Minimalista */
header {
    text-align: center;
    padding: 20px 0;
}

header h1 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
}

header h1 span {
    color: #FF6B00; /* Laranja Excite */
}

header .subtitle {
    font-size: 12px;
    color: #8A99AD;
    margin-top: 5px;
}

/* 3. Seções e Cartões Visuais */
section {
    background: #171E28; /* Cinza Escuro de Contraste */
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #232D3B;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

section h2 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.instrucao {
    font-size: 13px;
    color: #8A99AD;
    margin-bottom: 24px;
    line-height: 1.4;
}

/* 4. Engenharia de Formulários e Campos de Resposta */
.grupo-campo {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.grupo-campo label {
    font-size: 13px;
    font-weight: 600;
    color: #E2E8F0;
}

select, textarea {
    width: 100%;
    background-color: #0F141C;
    border: 1px solid #232D3B;
    border-radius: 8px;
    color: #FFFFFF;
    padding: 12px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

select:focus, textarea:focus {
    border-color: #FF6B00; /* Foco Laranja */
}

textarea {
    height: 80px;
    resize: none;
    line-height: 1.5;
}

/* Slider de Resistência customizado */
.slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #0F141C;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #232D3B;
}

input[type="range"] {
    flex: 1;
    accent-color: #FF6B00;
    cursor: pointer;
}

#valor-excitacao,
#valor-hawkins,
#valor-resistencia {
    font-weight: 700;
    font-size: 16px;
    color: #FF6B00;
    min-width: 20px;
    text-align: center;
}

/* Botões Estilo "Interruptor" */
button {
    width: 100%;
    background-color: #FF6B00;
    color: #0F141C;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 10px;
}

button:hover {
    background-color: #E05E00;
}

button:disabled {
    background-color: #232D3B;
    color: #8A99AD;
    cursor: not-allowed;
}

/* 5. Painel de Controle Ativado (Dinâmico) */
#painel-comando {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: surgir 0.5s ease-out;
}

#status-estado {
    background: #0F141C;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid #232D3B;
}

.feedback-sincronicidade {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255, 107, 0, 0.12);
    border: 1px solid #FF6B00;
    color: #FFD7B3;
    font-size: 13px;
    line-height: 1.5;
}

#nome-estado {
    font-weight: 900;
    font-size: 22px;
}

.bloco-protocolo {
    background: #0F141C;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid #FF6B00;
}

.bloco-protocolo h3 {
    font-size: 14px;
    margin-bottom: 10px;
    color: #FF6B00;
}

.motor-bashar {
    margin-top: 8px;
    font-size: 12px;
    color: #8A99AD;
    font-style: italic;
    line-height: 1.5;
}

.range-label {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #8A99AD;
    margin-top: 4px;
}

.hawkins-status {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 107, 0, 0.10);
    border: 1px solid rgba(255, 107, 0, 0.25);
    color: #FFD7B3;
    font-size: 13px;
    line-height: 1.4;
}

.checkpoint-label {
    margin-top: 10px;
    font-size: 12px;
    color: #8A99AD;
}

.checkpoint-select {
    margin-top: 6px;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.08), rgba(255, 107, 0, 0.02));
    border: 1px solid rgba(255, 107, 0, 0.25);
}

.checkpoint-hint {
    margin-top: 8px;
    font-size: 11px;
    color: #8A99AD;
    line-height: 1.4;
}

.hawkins-status {
    font-weight: 600;
    color: #FFE0C2;
}

.detalhes-diagnostico {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
}

.detalhes-diagnostico span {
    color: #E2E8F0;
    font-weight: 600;
}

/* 6. Grid do Dashboard Histórico */
.metricas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 15px;
}

.card-metrica {
    background: #0F141C;
    border: 1px solid #232D3B;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.card-metrica span {
    font-size: 24px;
    font-weight: 800;
}

.card-metrica label {
    font-size: 11px;
    color: #8A99AD;
    font-weight: 500;
}

/* Cores sutis para as bordas das métricas no Dashboard */
.card-metrica.verde span { color: #00FF00; }
.card-metrica.amarelo span { color: #FFD600; }
.card-metrica.azul span { color: #29B6F6; }
.card-metrica.branco span { color: #FFFFFF; }

/* 7. Utilitários Globais */
.oculto {
    display: none !important;
}

@keyframes surgir {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* ==========================================
   8. COMPLEMENTO: SYNCHRONICITY LOG & MIRROR
   ========================================== */
.header-log {
    border-bottom: 1px solid #232D3B;
    padding-bottom: 15px;
}

.nav-topo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 5px;
}

.btn-voltar {
    color: #8A99AD;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.2s;
}

.btn-voltar:hover {
    color: #FF6B00;
}

.filtros-container {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.filtro-btn {
    background: #0F141C;
    border: 1px solid #232D3B;
    color: #8A99AD;
    padding: 6px 12px;
    font-size: 11px;
    border-radius: 20px;
    white-space: nowrap;
    width: auto;
    margin: 0;
}

.filtro-btn.ativo {
    background: #FF6B00;
    color: #0F141C;
    border-color: #FF6B00;
}

.card-contexto {
    background: #0F141C;
    border-left: 3px solid #FF6B00;
    padding: 12px;
    border-radius: 4px 8px 8px 4px;
    font-size: 12px;
    margin-bottom: 20px;
}

.timestamp-acao { 
    color: #8A99AD; 
    font-size: 10px !important; 
    margin: 0 !important; 
}

.estado-acao span { 
    font-weight: 700; 
    color: #00FF00; 
}

.texto-acao { 
    font-style: italic; 
    margin-top: 5px; 
    color: #E2E8F0; 
}

/* Linha Animada do Tempo Colapsando (Wireframe Original) */
.linha-animada-pontilhada {
    text-align: center;
    font-size: 11px;
    color: #FF6B00;
    letter-spacing: 1px;
    border-top: 1px dashed #232D3B;
    border-bottom: 1px dashed #232D3B;
    padding: 8px 0;
    margin: 12px 0;
    opacity: 0.8;
}

.tag-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
}

.tag-badge.positivo { background: rgba(0,255,0,0.1); color: #00FF00; }
.tag-badge.espelho { background: rgba(255,0,0,0.1); color: #FF1744; }
.tag-badge.neutro { background: rgba(138,153,173,0.1); color: #8A99AD; }

.insight-box {
    background: #171E28;
    border-radius: 6px;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #232D3B;
    font-size: 12px;
}

.botoes-acao-log {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.btn-secundario {
    background: transparent;
    border: 1px solid #232D3B;
    color: #8A99AD;
}

.btn-secundario:hover {
    background: rgba(23, 30, 40, 0.5);
    color: #FFFFFF;
}

.tags-selecao {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.tags-selecao .tag-btn {
    width: auto;
    margin: 0;
    font-size: 12px;
    padding: 8px 12px;
    background: #0F141C;
    border: 1px solid #232D3B;
    color: #8A99AD;
}

.tags-selecao .tag-btn.selecionada {
    background: #FF6B00;
    color: #0F141C;
    border-color: #FF6B00;
}


