/* ─── Portal Líder — CSS específico ─────────────────────────────────────────
   Cor de destaque: #4EC3E0 (azul)
   Depende de: base.css
────────────────────────────────────────────────────────────────────────────── */
:root {
    --cor-destaque: #4EC3E0;
    --cor-destaque-texto: #000;
    --login-gradient: linear-gradient(135deg, #000 0%, #4EC3E0 100%);
}

.portal { display: none; }

/* Header líder (mais compacto) */
.header { padding: 18px 40px; }
.header-left { display: flex; align-items: center; gap: 16px; }
.header-left img { height: 36px; }
.header-title { font-size: 16px; font-weight: 600; }
.header-sub { font-size: 12px; color: #4EC3E0; margin-top: 2px; }
.header-right { display: flex; align-items: center; gap: 16px; }
.user-info { text-align: right; font-size: 13px; }
.user-info .name { font-weight: 600; }
.user-info .role { color: #4EC3E0; font-size: 11px; }

.btn-logout {
    background: transparent;
    border: 1px solid #4EC3E0;
    color: #4EC3E0;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-logout:hover { background: #4EC3E0; color: #000; }

/* Layout — main-content herdado do base.css (app-layout) */

.screen { display: none; }
.screen.active { display: block; }

/* Seção */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    border-left: 4px solid #4EC3E0;
    padding-left: 12px;
}

.section-subtitle { font-size: 13px; color: #666; margin-top: 4px; }

/* Cards colaboradores */
.colaboradores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.colaborador-card {
    background: white;
    border: 1px solid #e0e0e0;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.colaborador-card:hover {
    border-color: #4EC3E0;
    box-shadow: 0 4px 16px rgba(78,195,224,0.15);
    transform: translateY(-2px);
}

.colaborador-card .nome { font-size: 15px; font-weight: 600; color: #000; margin-bottom: 4px; }
.colaborador-card .info { font-size: 12px; color: #888; margin-bottom: 12px; }

.badges-row { display: flex; gap: 6px; flex-wrap: wrap; }

.badge {
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 2px;
}

.badge-done { background: #d4edda; color: #155724; }
.badge-pending { background: #fff3cd; color: #856404; }
.badge-none { background: #e9ecef; color: #666; }

/* Voltar */
.btn-back {
    background: transparent;
    border: none;
    color: #4EC3E0;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
}

.btn-back:hover { color: #000; }

/* Detalhe colaborador */
.colaborador-detail {
    background: white;
    border: 1px solid #e0e0e0;
    padding: 24px;
    margin-bottom: 24px;
}

.colaborador-detail h2 { font-size: 20px; margin-bottom: 6px; }
.colaborador-detail p { font-size: 13px; color: #666; }

/* Timeline avaliações */
.avaliacoes-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.avaliacao-card {
    background: white;
    border: 1px solid #e0e0e0;
    padding: 20px;
}

.avaliacao-card .tipo-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #4EC3E0;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.avaliacao-card .status-feita {
    font-size: 13px;
    color: #155724;
    background: #d4edda;
    padding: 4px 10px;
    margin-bottom: 10px;
    display: inline-block;
}

.avaliacao-card .status-pendente {
    font-size: 13px;
    color: #856404;
    background: #fff3cd;
    padding: 4px 10px;
    margin-bottom: 10px;
    display: inline-block;
}

.avaliacao-card .resultado { font-size: 28px; font-weight: 700; color: #000; margin-bottom: 4px; }
.avaliacao-card .resultado-label { font-size: 12px; color: #888; margin-bottom: 12px; }
.avaliacao-card .data { font-size: 12px; color: #aaa; }

.btn-preencher, .btn-ver, .btn-editar {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-family: inherit;
    margin-top: 10px;
    margin-right: 8px;
}

.btn-preencher { background: #4EC3E0; color: #000; }
.btn-preencher:hover { background: #000; color: white; }
.btn-ver { background: #e9ecef; color: #333; }
.btn-ver:hover { background: #ddd; }
.btn-editar { background: #fff3cd; color: #856404; border: 1px solid #ffc107; }
.btn-editar:hover { background: #ffc107; color: #000; }

/* Modal overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    overflow-y: auto;
    padding: 40px 20px;
}

.modal-overlay.active { display: flex; align-items: flex-start; justify-content: center; }

.modal-overlay .modal {
    background: white;
    width: 100%;
    max-width: 700px;
    padding: 32px;
    position: relative;
    display: block;
}

.modal-close {
    position: absolute;
    top: 16px; right: 16px;
    background: none; border: none;
    font-size: 22px; cursor: pointer; color: #666;
    font-family: inherit;
}

.modal-close:hover { color: #000; }

.modal-overlay .modal h2 {
    font-size: 20px;
    margin-bottom: 6px;
    border-left: 4px solid #4EC3E0;
    padding-left: 12px;
    border-bottom: none;
    padding-bottom: 0;
}

.modal .modal-sub { font-size: 13px; color: #666; margin-bottom: 24px; padding-left: 16px; }

/* Formulário avaliação */
.form-section { margin-bottom: 28px; }

.form-section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #4EC3E0;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.criterio-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 16px;
}

.criterio-row:last-child { border-bottom: none; }
.criterio-label { font-size: 14px; color: #333; flex: 1; }
.notas-group { display: flex; gap: 6px; }

.nota-btn {
    width: 36px; height: 36px;
    border: 2px solid #e0e0e0;
    background: white;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.15s;
    font-family: inherit;
}

.nota-btn:hover { border-color: #4EC3E0; background: #f0fafd; }
.nota-btn.selected { background: #4EC3E0; border-color: #4EC3E0; color: #000; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #333; }

.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
}

.form-group textarea:focus { outline: none; border-color: #4EC3E0; }

.resultado-preview {
    background: #f0fafd;
    border: 1px solid #4EC3E0;
    padding: 16px 20px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.resultado-preview .valor { font-size: 32px; font-weight: 700; color: #000; }
.resultado-preview .descricao { font-size: 13px; color: #555; }

.escala-legenda {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 12px;
    color: #666;
}

.escala-legenda strong { color: #333; }

.btn-salvar {
    background: #000;
    color: white;
    padding: 14px 32px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
    width: 100%;
    margin-top: 8px;
}

.btn-salvar:hover { background: #4EC3E0; color: #000; }
.btn-salvar:disabled { background: #ccc; cursor: not-allowed; color: #666; }

/* Visualização preenchida */
.view-criterio {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.view-criterio:last-child { border-bottom: none; }
.view-criterio .label { color: #333; flex: 1; }

.view-nota {
    width: 36px; height: 36px;
    background: #4EC3E0;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 15px;
    flex-shrink: 0;
}

.view-texto { margin-top: 12px; }
.view-texto label { font-size: 12px; font-weight: 700; text-transform: uppercase; color: #888; display: block; margin-bottom: 4px; }
.view-texto p { font-size: 14px; color: #333; padding: 10px; background: #f9f9f9; border-left: 3px solid #4EC3E0; }

/* Desempenho duas colunas */
.criterio-row-desempenho {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 16px;
}

.criterio-row-desempenho:last-child { border-bottom: none; }
.nota-col { text-align: center; }
.nota-col label { font-size: 11px; color: #888; display: block; margin-bottom: 6px; }

/* Empty state */
.empty-state { text-align: center; padding: 60px 20px; color: #aaa; }
.empty-state .icon { font-size: 48px; margin-bottom: 16px; }
.empty-state p { font-size: 15px; }

/* Aviso ordem */
.aviso-ordem {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 12px 16px;
    font-size: 13px;
    color: #856404;
    margin-bottom: 20px;
    display: none;
}

/* ── Dados Pessoais / Edição inline ── */
.data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.data-item { margin-bottom: 15px; position: relative; }
.data-label { font-weight: 700; color: #666; font-size: 12px; text-transform: uppercase; margin-bottom: 5px; }
.data-value { color: #000; font-size: 14px; }
.edit-icon { cursor: pointer; color: #4EC3E0; font-size: 14px; margin-left: 10px; opacity: 0.7; transition: opacity 0.3s; }
.edit-icon:hover { opacity: 1; }
.data-value.editable { display: inline-block; min-width: 150px; }

@media (max-width: 600px) {
    .header { padding: 16px 20px; }
    .main-content { padding: 20px 16px; }
    .criterio-row { flex-direction: column; align-items: flex-start; }
    .modal-overlay .modal { padding: 20px; }
    .data-grid { grid-template-columns: 1fr; }
}
