:root {
    --primary: #c62828;
    --primary-hover: #b71c1c;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text: #1e293b;
    --border: #e2e8f0;
}

body { font-family: 'Segoe UI', Arial, sans-serif; background: var(--bg); margin: 0; padding: 20px; color: var(--text); }
.brand { font-size: 11px; font-weight: bold; color: var(--primary); text-transform: uppercase; letter-spacing: 1.2px; text-align: center; margin-bottom: 8px; }
.container { max-width: 650px; background: var(--card-bg); margin: 30px auto; padding: 40px; border-radius: 14px; box-shadow: 0 4px 20px rgba(0,0,0,0.04); border: 1px solid var(--border); }
.container.wide { max-width: 950px; }
h1, h2 { text-align: center; color: var(--text); margin-top: 0; font-size: 24px; }
.subtitle { text-align: center; color: #64748b; font-size: 14px; margin-bottom: 30px; }

/* Home Cards */
.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 25px; }
.home-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 30px 25px; text-decoration: none; color: inherit; transition: all 0.2s; box-shadow: 0 2px 8px rgba(0,0,0,0.02); display: flex; flex-direction: column; justify-content: space-between; }
.home-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); border-color: #cbd5e1; }
.home-card-icon { background: #fef2f2; width: 45px; height: 45px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 15px; }
.home-card h3 { margin: 0 0 8px 0; color: var(--text); font-size: 18px; }
.home-card p { color: #64748b; font-size: 13px; margin: 0 0 20px 0; line-height: 1.5; }
.home-card .link-action { color: var(--primary); font-weight: bold; font-size: 14px; }

/* Formulários */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 14px; color: #334155; }
.form-control { width: 100%; padding: 14px 16px; border: 1px solid #cbd5e1; border-radius: 10px; box-sizing: border-box; font-size: 15px; }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(198,40,40,0.1); }
.btn-primary { background: var(--primary); color: white; border: none; padding: 14px 20px; border-radius: 10px; cursor: pointer; width: 100%; font-size: 16px; font-weight: 600; transition: background 0.2s; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: #64748b; color: white; padding: 10px 18px; text-decoration: none; border-radius: 8px; font-size: 14px; display: inline-block; font-weight: 600; }
.btn-secondary:hover { background: #475569; }

/* Wizard Questionário */
.wizard-header { display: flex; justify-content: space-between; font-size: 13px; color: #64748b; margin-bottom: 8px; font-weight: 600; }
.progress-bar-container { background: #e2e8f0; height: 6px; border-radius: 3px; margin-bottom: 25px; overflow: hidden; }
.progress-bar-fill { background: var(--primary); height: 100%; width: 4%; transition: width 0.3s ease; }
.instrucao-box { background: #fffbeb; border: 1px solid #fef3c7; padding: 14px 16px; border-radius: 10px; font-size: 13px; color: #b45309; margin-bottom: 25px; line-height: 1.5; }
.card-questao { display: none; }
.card-questao.ativo { display: block; }
.card-questao h3 { font-size: 18px; color: var(--text); margin-bottom: 20px; }
.opcao-row { display: flex; justify-content: space-between; align-items: center; background: #f8fafc; border: 1px solid var(--border); padding: 14px 18px; border-radius: 10px; margin-bottom: 12px; }
.opcao-texto { font-size: 14px; font-weight: 500; color: #334155; flex: 1; padding-right: 15px; }
.btns-valor { display: flex; gap: 8px; align-items: center; }
.btn-val { width: 36px; height: 36px; border: 1px solid #cbd5e1; background: #fff; border-radius: 8px; cursor: pointer; font-weight: bold; font-size: 14px; color: #475569; transition: all 0.1s; }
.btn-val:hover { border-color: var(--primary); color: var(--primary); }
.btn-val.ativo { background: var(--primary); color: white; border-color: var(--primary); }
.wizard-footer { display: flex; justify-content: space-between; margin-top: 30px; gap: 15px; }
.btn-step { padding: 12px 24px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; border: 1px solid #cbd5e1; background: #fff; color: #475569; transition: all 0.2s; }
.btn-step:hover:not(:disabled) { background: #f1f5f9; border-color: #94a3b8; }
.btn-step:disabled { opacity: 0.4; cursor: not-allowed; }

/* Dashboard Tabela */
.table { width: 100%; border-collapse: collapse; margin-top: 20px; background: #fff; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.table th, .table td { padding: 15px 18px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--border); }
.table th { background: #f8fafc; font-weight: 600; color: #475569; }
.table tr:hover { background: #f8fafc; }
.badge { background: #fee2e2; color: #991b1b; padding: 4px 10px; border-radius: 6px; font-weight: bold; font-size: 12px; }
.scores-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-top: 20px; text-align: center; }
.score-box { background: #f8fafc; padding: 15px; border-radius: 10px; border: 1px solid var(--border); }
.score-box h3 { margin: 0; font-size: 13px; color: #64748b; }
.score-box p { font-size: 22px; font-weight: bold; margin: 5px 0 0; color: var(--primary); }
.card-info { background: #f8fafc; border: 1px solid var(--border); padding: 20px; border-radius: 10px; margin-bottom: 20px; }