:root {
    --bg-page: linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 100%);
    --card-bg: #FFFFFF;
    --primary-dark: #0F172A;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    
    --gradient-vibrant: linear-gradient(135deg, #06B6D4 0%, #7C3AED 50%, #EC4899 100%);
    --gradient-hero: linear-gradient(135deg, #E0F2FE 0%, #EEF2FF 50%, #FCE7F3 100%);
    
    --radius-card: 16px;
    --radius-inner: 10px;
    --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
    
    --primary-color: #009ee3;
    --primary-hover: #0081b8;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    background: var(--bg-page);
    color: var(--text-main);
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header Principal */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo-img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.2);
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: #000000;
    letter-spacing: -0.5px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

nav a {
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-main);
    transition: color 0.2s;
}

nav a:hover, nav a.active {
    color: #7C3AED;
}

/* Botão Login */
.btn-login-highlight {
    background: var(--gradient-vibrant);
    color: #FFFFFF !important;
    padding: 0.45rem 1.2rem;
    border-radius: 20px;
    font-weight: 700 !important;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-login-highlight:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.35);
}

/* Layout Main Container */
.container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

header.form-header {
    background-color: var(--card-bg);
    color: var(--primary-dark);
    padding: 25px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    margin-bottom: 25px;
    text-align: center;
    border: 1px solid var(--border-color);
}

header.form-header h1 {
    font-size: 1.6rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-dark);
}

header.form-header p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.user-info { 
    background-color: var(--card-bg); 
    padding: 25px; 
    border-radius: var(--radius-card); 
    border: 1px solid var(--border-color); 
    margin-bottom: 25px; 
    box-shadow: var(--shadow-card); 
}

.user-info h3 { 
    margin-bottom: 15px; 
    font-size: 1.1rem; 
    color: var(--primary-dark); 
    text-transform: uppercase; 
}

.grid-2 { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 15px; 
}

.form-group { 
    margin-bottom: 15px; 
}

.form-group label { 
    display: block; 
    font-weight: 600; 
    margin-bottom: 6px; 
    font-size: 0.9rem; 
    color: var(--text-main); 
}

.form-group input { 
    width: 100%; 
    padding: 10px 12px; 
    border: 1px solid var(--border-color); 
    border-radius: 6px; 
    font-size: 0.95rem; 
}

.scale-box { 
    background-color: #eff6ff; 
    border: 1px solid #bfdbfe; 
    padding: 15px; 
    border-radius: var(--radius-inner); 
    margin-bottom: 20px; 
    font-size: 9.5pt; 
    line-height: 1.4; 
    color: #1e3a8a; 
}

table { 
    width: 100%; 
    border-collapse: collapse; 
    margin-bottom: 25px; 
    background: white; 
    border-radius: var(--radius-card); 
    overflow: hidden; 
    border: 1px solid var(--border-color); 
    box-shadow: var(--shadow-card);
}

th, td { 
    padding: 10px 12px; 
    border: 1px solid var(--border-color); 
    text-align: left; 
    font-size: 9pt; 
}

th { 
    background-color: #2563eb; 
    color: white; 
    text-transform: uppercase; 
    font-size: 8pt; 
}

.radio-col { 
    text-align: center; 
    width: 7%; 
}

input[type="radio"] { 
    transform: scale(1.2); 
    cursor: pointer; 
    accent-color: #2563eb; 
}

.submit-container { 
    text-align: center; 
    margin: 30px 0; 
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-submit { 
    background-color: #1e3a8a; 
    color: white; 
    border: none; 
    padding: 16px 30px; 
    font-size: 1.1rem; 
    font-weight: 700; 
    border-radius: 8px; 
    cursor: pointer; 
    box-shadow: 0 4px 6px -1px rgba(30, 58, 138, 0.3); 
    transition: all 0.2s ease; 
    flex: 1;
}

.btn-submit:hover { 
    background-color: #2563eb; 
}

.btn-back-link {
    background-color: #FFFFFF;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 16px 20px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: var(--shadow-card);
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-back-link:hover {
    background-color: #F1F5F9;
    border-color: #CBD5E1;
}

#areaPix { 
    display: none; 
    margin: 25px auto 50px auto; 
    text-align: center; 
    border: 1px solid var(--border-color); 
    padding: 25px; 
    background: var(--card-bg); 
    border-radius: var(--radius-card); 
    box-shadow: var(--shadow-card); 
    max-width: 500px; 
}

#qrCodeImg { 
    width: 220px; 
    height: 220px; 
    border: 1px solid var(--border-color); 
    padding: 8px; 
    background: white; 
    border-radius: 8px; 
    margin: 15px 0; 
}

.copia-cola-input { 
    font-size: 11px; 
    font-family: monospace; 
    width: 100%; 
    padding: 10px; 
    margin-top: 8px; 
    border: 1px dashed var(--primary-color); 
    background: #ebf8ff; 
    text-align: center; 
    border-radius: 4px; 
    color: #2b6cb0; 
    cursor: pointer; 
    font-weight: bold; 
}

.result-box { 
    display: none; 
    margin-top: 25px; 
    padding: 25px; 
    background-color: var(--card-bg); 
    border: 2px solid #1e3a8a; 
    border-radius: var(--radius-card); 
    box-shadow: var(--shadow-card); 
}

.hogrefe-table { 
    width: 100%; 
    border-collapse: collapse; 
    margin-top: 15px; 
    background: #ffffff; 
}

.hogrefe-table th { 
    background-color: #1e3a8a; 
    color: white; 
    text-align: left; 
    padding: 9px 12px; 
    font-size: 9pt; 
    text-transform: uppercase; 
}

.hogrefe-table td { 
    padding: 8px 12px; 
    border: 1px solid #cbd5e1; 
    font-size: 9.5pt; 
}

.bar-background { 
    height: 12px; 
    background-color: #e2e8f0; 
    border-radius: 6px; 
    overflow: hidden; 
    margin-top: 4px; 
}

.bar-fill { 
    height: 100%; 
    background-color: #2563eb; 
    width: 0%; 
}

.legend-box { 
    margin-top: 25px; 
    background-color: #f8fafc; 
    border: 1px solid #cbd5e1; 
    border-radius: var(--radius-inner); 
    padding: 15px; 
}

.legend-box h4 { 
    margin: 0 0 10px 0; 
    color: #1e3a8a; 
    font-size: 10pt; 
    text-transform: uppercase; 
}

.badge { 
    display: inline-block; 
    padding: 4px 10px; 
    border-radius: 4px; 
    font-weight: bold; 
    font-size: 8.5pt; 
    text-align: center; 
}

.bg-alta { 
    background-color: #dcfce7; 
    color: #166534; 
}

.bg-media { 
    background-color: #fef9c3; 
    color: #854d0e; 
}

.bg-baixa { 
    background-color: #fee2e2; 
    color: #991b1b; 
}

.unanswered-row { 
    background-color: #fef2f2 !important; 
}

.holland-code-box { 
    text-align: center; 
    background: #eff6ff; 
    border: 2px dashed #2563eb; 
    padding: 15px; 
    border-radius: var(--radius-inner); 
    margin: 15px 0; 
}

.holland-code-title { 
    font-size: 10pt; 
    text-transform: uppercase; 
    color: #1e3a8a; 
    font-weight: bold; 
}

.holland-code-value { 
    font-size: 26pt; 
    font-weight: bold; 
    color: #1e3a8a; 
    letter-spacing: 4px; 
}

.btn-group { 
    margin-top: 20px; 
}

.btn-print { 
    background-color: #0284c7; 
    color: white; 
    padding: 14px 20px; 
    border: none; 
    border-radius: 6px; 
    font-size: 11pt; 
    font-weight: bold; 
    cursor: pointer; 
    width: 100%; 
}

.btn-print:hover { 
    background-color: #0369a1; 
}

/* Rodapé */
footer {
    margin-top: 3rem;
    background-color: #FFFFFF;
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0 1rem 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-brand p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.footer-col h5 {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    color: var(--primary-dark);
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-col a {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.footer-col a:hover {
    color: #7C3AED;
}

.copyright-bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem 0 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

@media print {
    body { background: white; padding: 0; }
    .container { box-shadow: none; max-width: 100%; padding: 0; }
    form, .btn-group, #areaPix, header:not(.form-header), footer { display: none !important; }
    .result-box { display: block !important; border: none; background: white; padding: 0; }
    header.form-header { background-color: #1e3a8a !important; color: white !important; -webkit-print-color-adjust: exact; }
    .bar-background, .bar-fill, .badge { -webkit-print-color-adjust: exact; }
}

@media (max-width: 850px) {
    nav ul { display: none; }
    .copyright-bar { flex-direction: column; gap: 0.5rem; text-align: center; }
}