/* ===== Bridgeway Brand ===== */
:root {
    --gold:     #B28B2F;
    --charcoal: #332828;
    --warm:     #B9A588;
    --cloud:    #F7F6F4;
    --slate:    #4976A6;
    --gold-soft: rgba(178, 139, 47, 0.12);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--cloud);
    color: var(--charcoal);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    color: var(--charcoal);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    background: var(--charcoal);
    color: #fff;
    padding: 20px 32px;
    border-radius: 12px;
    margin-bottom: 24px;
    border-top: 4px solid var(--gold);
}
.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    position: relative;
}
.header-logo {
    height: 40px;
    width: auto;
}
.header-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
header h1 {
    font-size: 1.3em;
    font-weight: 600;
}
.user-menu {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.9em;
}
.user-name { opacity: 0.85; }
.btn-logout {
    color: var(--cloud);
    background: rgba(255,255,255,0.10);
    text-decoration: none;
    padding: 6px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85em;
    transition: background 0.2s;
}
.btn-logout:hover { background: var(--gold-soft); }

/* Messages */
.messages { margin-bottom: 20px; }
.flash {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-weight: 500;
}
.flash.sucesso { background: #e8efe4; color: #3a5c2a; border-left: 4px solid var(--gold); }
.flash.erro    { background: #f8d7da; color: #721c24; border-left: 4px solid #dc3545; }

/* Cards */
.card {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 1px 4px rgba(51,40,40,0.06);
}
.card h2 {
    font-size: 1.2em;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--cloud);
}

/* Form */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}
.field { display: flex; flex-direction: column; }
.field label {
    font-size: 0.85em;
    font-weight: 600;
    color: var(--warm);
    margin-bottom: 4px;
}
.field input, .field select {
    padding: 10px 12px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95em;
    transition: border-color 0.2s;
    background: var(--cloud);
    color: var(--charcoal);
}
.field input:focus, .field select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-soft);
}

.btn-primary {
    background: var(--gold);
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.2s, background 0.2s;
}
.btn-primary:hover { background: #9e792a; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(178,139,47,0.3); }
.btn-primary:active { transform: translateY(0); }
.btn-full { width: 100%; }

/* Login page */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}
.login-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 4px 24px rgba(51,40,40,0.08);
    text-align: center;
    border-top: 4px solid var(--gold);
}
.login-icon { font-size: 3em; margin-bottom: 8px; }
.login-card h2 {
    font-size: 1.3em;
    border: none;
    padding: 0;
    margin-bottom: 4px;
}
.login-sub {
    color: var(--warm);
    font-size: 0.9em;
    margin-bottom: 28px;
}
.login-card .field {
    text-align: left;
    margin-bottom: 16px;
}

/* Table */
.table-wrap { overflow-x: auto; }
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92em;
}
thead { background: var(--cloud); }
th {
    text-align: left;
    padding: 12px 14px;
    font-weight: 700;
    color: var(--charcoal);
    border-bottom: 2px solid var(--warm);
    white-space: nowrap;
}
td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--cloud);
}
tbody tr:hover { background: #fafaf7; }

.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.82em;
    font-weight: 600;
}
.badge.clt        { background: #dbeafe; color: #1e40af; }
.badge.estágio    { background: #fef3c7; color: #92400e; }
.badge.freelancer { background: #d1fae5; color: #065f46; }

.empty {
    color: var(--warm);
    font-style: italic;
    padding: 20px 0;
}

/* ===== Pesquisa de Clima ===== */
.clima-intro {
    color: var(--warm);
    font-size: 0.95em;
    line-height: 1.7;
    margin-bottom: 24px;
}
.clima-intro strong { color: var(--charcoal); }

.clima-pergunta {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--cloud);
}
.clima-enunciado {
    font-size: 0.95em;
    color: var(--charcoal);
    margin-bottom: 8px;
}
.clima-opcoes {
    display: flex;
    gap: 8px;
}
.clima-radio {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}
.clima-radio input[type="radio"] { display: none; }
.clima-radio span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--warm);
    font-weight: 600;
    font-size: 1em;
    color: var(--warm);
    transition: all 0.15s;
}
.clima-radio input:checked + span {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold);
    transform: scale(1.08);
}
.clima-radio:hover span {
    border-color: var(--gold);
    color: var(--gold);
}

.clima-aberta {
    margin-top: 24px;
    margin-bottom: 20px;
}
.clima-aberta label {
    display: block;
    font-size: 0.95em;
    color: var(--charcoal);
    margin-bottom: 4px;
}
.clima-hint {
    font-size: 0.82em;
    color: var(--warm);
    margin-bottom: 8px;
}
.clima-aberta textarea {
    width: 100%;
    padding: 12px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95em;
    font-family: inherit;
    resize: vertical;
    background: var(--cloud);
    color: var(--charcoal);
}
.clima-aberta textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-soft);
}

/* Results */
.clima-resultados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 12px;
    margin-top: 16px;
}
.clima-resultado-card {
    background: var(--cloud);
    border-radius: 10px;
    padding: 16px;
}
.clima-media {
    font-size: 1.6em;
    font-weight: 700;
    margin-bottom: 4px;
}
.clima-pergunta-texto {
    font-size: 0.88em;
    color: var(--charcoal);
    line-height: 1.4;
}
.clima-tendencia {
    font-size: 0.78em;
    margin-top: 6px;
}
.clima-aberta-card {
    background: #fff;
    border: 1px solid var(--cloud);
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 8px;
    font-size: 0.92em;
    color: var(--charcoal);
    font-style: italic;
    line-height: 1.5;
}

/* Results page month selector */
select[name="mes"] {
    background: #fff;
    border: 1.5px solid var(--warm);
    color: var(--charcoal);
}
select[name="mes"]:focus {
    outline: none;
    border-color: var(--gold);
}

/* Farol dots (substituem emojis) */
.farol-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
}
.farol-verde   { background: #28a745; }
.farol-amarelo { background: #e6a817; }
.farol-vermelho { background: #dc3545; }
.farol-legenda {
    margin-left: 16px;
    font-size: 0.85em;
    color: var(--warm);
    white-space: nowrap;
}
