:root {
    --primary: #2563eb; 
    --dark: #0f172a;
    --success: #10b981;
    --danger: #ef4444;
    --bg: #f8fafc;
    --surface: #ffffff;
    --glass: rgba(255, 255, 255, 0.9);
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg);
    color: var(--dark);
    margin: 0;
    overflow-x: hidden; /* Evita rolagem lateral nas animações */
}

/* Header Compacto */
.app-header {
    background: var(--dark);
    color: white;
    padding: 1.5rem 1rem;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 25px -10px rgba(0,0,0,0.5);
    position: relative;
    z-index: 10;
}
.header-content { display: flex; justify-content: space-between; align-items: center; }
.header-content h1 { margin: 0; font-size: 1.2rem; font-weight: 700; letter-spacing: 0.5px; }

/* Barra de Progresso Segmentada */
.progress-track {
    background: rgba(255,255,255,0.1);
    height: 4px;
    margin-top: 15px;
    border-radius: 2px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: var(--success);
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Container Principal */
.main-container {
    max-width: 500px; /* Largura de App Mobile */
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 80px;
}

/* WIZARD CARDS (O Segredo do App) */
.wizard-step {
    display: none; /* Esconde tudo por padrão */
    animation: slideIn 0.4s ease forwards;
}
.wizard-step.active { display: block; }

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.card {
    background: var(--surface);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 10px 15px -3px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

/* Títulos de Seção Bonitos */
.step-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* Inputs Gigantes (Finger Friendly) */
.big-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.1rem;
    text-align: center;
    background: #f8fafc;
    box-sizing: border-box;
    font-weight: bold;
    color: var(--dark);
    text-transform: uppercase;
}
.big-input:focus { border-color: var(--primary); outline: none; background: white; }

/* Check Items Estilizados */
.check-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
}
.item-label { font-weight: 600; font-size: 0.95rem; line-height: 1.4; }
.crit-badge { font-size: 0.6rem; background: var(--danger); color: white; padding: 2px 6px; border-radius: 4px; margin-left: 5px; vertical-align: middle; }

/* Botões de Decisão (OK/NOK) Estilo Tinder */
.toggle-switch {
    display: flex;
    background: #e2e8f0;
    border-radius: 25px;
    padding: 3px;
    position: relative;
    cursor: pointer;
}
.toggle-option {
    padding: 8px 16px;
    border-radius: 22px;
    font-weight: bold;
    font-size: 0.8rem;
    z-index: 2;
    transition: 0.3s;
    color: #64748b;
}
/* Logica Visual dos Botões */
input[type="radio"] { display: none; }
input[value="OK"]:checked + span { background: var(--success); color: white; box-shadow: 0 2px 5px rgba(16, 185, 129, 0.3); }
input[value="NOK"]:checked + span { background: var(--danger); color: white; box-shadow: 0 2px 5px rgba(239, 68, 68, 0.3); }

/* Área de Assinatura */
canvas#signature-pad {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    width: 100%;
    background: #fff;
    cursor: crosshair;
}

/* Botões de Navegação Flutuantes */
.nav-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    padding: 15px 20px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
    z-index: 100;
}

.btn {
    padding: 14px 24px;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-next { background: var(--dark); color: white; flex: 1; justify-content: center; }
.btn-back { background: transparent; color: #64748b; margin-right: 10px; }
.btn-finish { background: var(--success); color: white; flex: 1; justify-content: center; }

.hidden { display: none !important; }