/* ============================================
   RECRUTAMENTO - Estilos específicos
   ============================================ */

body {
    background: url('../assets/images/recrutamento-backgroud.png') center center / cover no-repeat fixed;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18, 18, 18, 0.91);
    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

/* Modal compacto (metade da largura) */
.card-modal-compact {
    max-width: 480px !important;
}

.card-modal-compact .card-modal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 60vh;
    overflow-y: auto;
}

/* Botão + na lista pré-aprovados */
.add-candidato-btn {
    color: var(--accent-success);
    opacity: 0.7;
    transition: opacity 0.15s;
}
.add-candidato-btn:hover {
    opacity: 1;
}

/* ============================================
   MODAL ADICIONAR CANDIDATO
   ============================================ */

#addCandidatoOverlay {
    align-items: center;
}

.add-candidato-modal {
    width: 480px;
    max-width: 95vw;
    max-height: 85vh;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.add-candidato-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
}

.add-candidato-header h3 {
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-candidato-header h3 i {
    color: var(--accent-success);
    font-size: 14px;
}

.add-candidato-body {
    padding: 16px 18px;
    overflow-y: auto;
    flex: 1;
}

.add-candidato-textarea {
    width: 100%;
    min-height: 140px;
    max-height: 300px;
    padding: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.85rem;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.15s ease;
}

.add-candidato-textarea::placeholder {
    color: var(--text-muted);
}

.add-candidato-textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.add-candidato-btn-analisar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
    padding: 9px 16px;
    background: var(--accent-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-lg);
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.add-candidato-btn-analisar:hover {
    background: #2563eb;
}

/* Campos extraídos */
.add-candidato-fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.ac-field {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.ac-field-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    min-width: 115px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ac-field-label i {
    font-size: 12px;
    width: 14px;
    text-align: center;
    color: var(--accent-primary);
}

.ac-field input,
.ac-field select {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.85rem;
    outline: none;
    padding: 0;
    box-shadow: none;
    background-image: none;
}

.ac-field input[type="date"] {
    color-scheme: dark;
    appearance: none;
    -webkit-appearance: none;
}

.ac-field input:focus,
.ac-field select:focus,
.ac-field input[type="date"]:focus {
    border: none;
    box-shadow: none;
    background: transparent;
}

.ac-field:focus-within {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.02);
}

.ac-field select {
    cursor: pointer;
}

.ac-field-empty {
    border-color: rgba(245, 158, 11, 0.3);
}

.ac-field-empty input::placeholder {
    color: var(--accent-warning);
}

.ac-field-manual {
    border-color: rgba(59, 130, 246, 0.2);
    background: rgba(59, 130, 246, 0.04);
}

.ac-field-manual .ac-field-label {
    color: var(--accent-primary);
}

.ac-separator {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px 0;
}

.ac-separator::before,
.ac-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.ac-separator span {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}



/* Ações */
.add-candidato-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.add-candidato-btn-enviar {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    background: var(--accent-success);
    color: #fff;
    border: none;
    border-radius: var(--radius-lg);
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.add-candidato-btn-enviar:hover {
    background: #059669;
}

.add-candidato-btn-enviar:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.add-candidato-btn-voltar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 14px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.add-candidato-btn-voltar:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

/* Observações no modal de adicionar */
.ac-obs-section {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 12px;
}

.ac-obs-section .obs-list {
    gap: 4px;
}

.ac-obs-section .obs-add-btn {
    width: 100%;
    justify-content: center;
    gap: 6px;
    padding: 7px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed var(--border);
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.15s;
}

.ac-obs-section .obs-add-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-hover);
    color: var(--text-secondary);
}

.ac-obs-section .obs-item {
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    padding: 8px 10px;
}

.ac-obs-section .obs-empty {
    font-size: 0.75rem;
    padding: 6px 0;
}

/* Botão formulário na top-actions do card modal */
.form-qa-open-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.15s;
}

.form-qa-open-btn:hover {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-primary);
}

/* Card modal centralizado no recrutamento */
#cardModalOverlay {
    align-items: center;
}

/* Modal formulário Q&A */
#formQAOverlay {
    align-items: center;
    z-index: 1100;
}

.form-qa-modal {
    width: 520px;
    max-width: 95vw;
    max-height: 80vh;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.form-qa-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
}

.form-qa-modal-header h3 {
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-qa-modal-header h3 i {
    color: var(--accent-primary);
    font-size: 14px;
}

.form-qa-modal-body {
    padding: 16px 18px;
    overflow-y: auto;
    flex: 1;
}

.form-qa-modal-body::-webkit-scrollbar {
    width: 5px;
}

.form-qa-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.form-qa-modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.form-qa-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Lista Q&A */
.form-qa-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-qa-item {
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
}

.form-qa-question {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.4;
}

.form-qa-answer {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.form-qa-empty {
    font-size: 0.82rem;
    color: var(--text-muted);
    padding: 20px;
    text-align: center;
}

/* ============================================
   AGENDAR ENTREVISTA
   ============================================ */

/* Botão calendário no card pré-aprovados */
.card-agendar-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: none;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-primary);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all 0.15s;
    opacity: 0;
}

.card:hover .card-agendar-btn {
    opacity: 1;
}

.card-agendar-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

/* Modal agendar */
#agendarOverlay {
    align-items: center;
    z-index: 1100;
}

.agendar-modal {
    width: 380px;
    max-width: 95vw;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.agendar-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
}

.agendar-modal-header h3 {
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.agendar-modal-header h3 i {
    color: var(--accent-primary);
    font-size: 14px;
}

.agendar-modal-body {
    padding: 18px;
}

.agendar-nick {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.agendar-nick strong {
    color: var(--text-primary);
}

.agendar-fields {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.agendar-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.agendar-field label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.agendar-field label i {
    font-size: 12px;
    color: var(--accent-primary);
}

.agendar-field input {
    width: 100%;
}

.agendar-confirm-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--accent-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-lg);
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.agendar-confirm-btn:hover {
    background: #2563eb;
}

/* Badge entrevista no card */
.card-badge-entrevista {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid rgba(59, 130, 246, 0.15);
    cursor: pointer;
    transition: all 0.15s;
}

.card-badge-entrevista:hover {
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(59, 130, 246, 0.3);
}

.card-badge-entrevista i {
    font-size: 10px;
    color: #3b82f6;
}

/* Botão enviar para análise */
.card-badge-analise-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-success);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid rgba(16, 185, 129, 0.15);
    cursor: pointer;
    transition: all 0.15s;
}

.card-badge-analise-btn:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.3);
}

.card-badge-analise-btn i {
    font-size: 10px;
}

.card[data-list="entrevista"] .card-member-row-inline,
.card[data-list="analise"] .card-member-row-inline {
    margin-top: 3px;
    margin-bottom: 9px;
}

/* ============================================
   POPUP OPÇÕES DO CARD (pré-aprovados)
   ============================================ */

.card-options-popup {
    position: fixed;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    min-width: 170px;
    overflow: hidden;
}

.card-options-popup button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.12s;
}

.card-options-popup button:hover {
    background: var(--overlay-06);
}

.card-options-popup button i {
    width: 16px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

.card-options-popup button:first-child i {
    color: var(--accent-primary);
}

.card-options-popup button:last-child i {
    color: #6b7280;
}

body.light-mode .card-options-popup {
    background: var(--bg-secondary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* ============================================
   MODAIS DE CONFIRMAÇÃO (padronizado)
   ============================================ */

.confirm-modal {
    width: 380px;
    max-width: 95vw;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: visible;
    margin-top: 18vh;
}

.confirm-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
}

.confirm-modal-header h3 {
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.confirm-modal-header h3 i {
    color: var(--accent-primary);
    font-size: 14px;
}

.confirm-modal-header-green h3 i {
    color: #10b981;
}

.confirm-modal-header-red h3 i {
    color: #ef4444;
}

.confirm-modal-body {
    padding: 18px;
}

.confirm-modal-body p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 18px;
}

.confirm-modal-body p strong {
    color: var(--text-primary);
}

.confirm-modal-actions {
    display: flex;
    gap: 10px;
}

.confirm-modal-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: var(--radius-lg);
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.confirm-modal-btn-blue {
    background: var(--accent-primary);
    color: #fff;
}

.confirm-modal-btn-blue:hover {
    background: #2563eb;
}

.confirm-modal-btn-green {
    background: #10b981;
    color: #fff;
}

.confirm-modal-btn-green:hover {
    background: #059669;
}

.confirm-modal-btn-red {
    background: #ef4444;
    color: #fff;
}

.confirm-modal-btn-red:hover {
    background: #dc2626;
}

.confirm-modal-btn-cancel {
    background: var(--hover-bg);
    color: var(--text-secondary);
}

.confirm-modal-btn-cancel:hover {
    background: var(--border);
    color: var(--text-primary);
}

/* Campos dentro do modal de confirmação (reprovar) */
.confirm-modal-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}

.confirm-modal-field label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.confirm-modal-field label i {
    font-size: 12px;
    color: #ef4444;
}

.confirm-modal-field textarea,
.confirm-modal-field select {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.82rem;
    padding: 10px 12px;
    resize: none;
    transition: border-color 0.15s;
}

.confirm-modal-field textarea:focus,
.confirm-modal-field select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* Reprovação info no modal de perfil */
.member-info-item-reprovacao {
    background: rgba(239, 68, 68, 0.06) !important;
    border: 1px solid rgba(239, 68, 68, 0.12);
    border-radius: 8px;
}

.member-info-item-reprovacao .member-info-icon {
    color: #ef4444 !important;
}

.member-info-item-reprovacao .member-info-label {
    color: #ef4444 !important;
}

/* Aprovação info no modal de perfil */
.member-info-item-aprovacao {
    background: rgba(16, 185, 129, 0.06) !important;
    border: 1px solid rgba(16, 185, 129, 0.12);
    border-radius: 8px;
}

.member-info-item-aprovacao .member-info-icon {
    color: #10b981 !important;
}

.member-info-item-aprovacao .member-info-label {
    color: #10b981 !important;
}

/* Sem Interesse info no modal de perfil */
.member-info-item-sem-interesse {
    background: rgba(245, 158, 11, 0.06) !important;
    border: 1px solid rgba(245, 158, 11, 0.12);
    border-radius: 8px;
}

.member-info-item-sem-interesse .member-info-icon {
    color: #f59e0b !important;
}

.member-info-item-sem-interesse .member-info-label {
    color: #f59e0b !important;
}

/* Campo verde no modal de confirmação (aprovar) */
.confirm-modal-field-green label i {
    color: #10b981;
}

/* Botões aprovar/reprovar no card */
.card-badge-aprovar-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid rgba(16, 185, 129, 0.15);
    cursor: pointer;
    transition: all 0.15s;
}

.card-badge-aprovar-btn:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.3);
}

.card-badge-aprovar-btn i {
    font-size: 10px;
}

.card-badge-reprovar-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid rgba(239, 68, 68, 0.15);
    cursor: pointer;
    transition: all 0.15s;
}

.card-badge-reprovar-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
}

.card-badge-reprovar-btn i {
    font-size: 10px;
}

/* ============================================
   RESPONSIVO - RECRUTAMENTO
   ============================================ */

@media (max-width: 768px) {
    .add-candidato-modal {
        max-width: 100vw;
        max-height: 85dvh;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }

    .form-qa-modal {
        max-width: 100vw;
        max-height: 80dvh;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }

    .agendar-modal {
        max-width: 100vw;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }

    .confirm-modal {
        max-width: 90vw;
        margin-top: 25dvh;
    }

    .ac-field {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .ac-field-label {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .add-candidato-textarea {
        min-height: 100px;
    }

    .agendar-fields {
        flex-direction: column;
    }
}

/* ============================================
   MODO CLARO - RECRUTAMENTO
   ============================================ */

body.light-mode::before {
    background: rgba(18, 18, 18, 0.91);
}

/* --- List backgrounds (pastel por cor do dot) --- */
body.light-mode .list[data-list="lembretes"] {
    background: #fef3c7; /* amber pastel */
}
body.light-mode .list[data-list="pre-aprovados"] {
    background: #a7f3d0; /* green pastel */
}
body.light-mode .list[data-list="entrevista"] {
    background: #c4b5fd; /* purple pastel */
}
body.light-mode .list[data-list="analise"] {
    background: #93c5fd; /* blue pastel */
}
body.light-mode .list[data-list="aprovados"] {
    background: #a7f3d0; /* green pastel */
}
body.light-mode .list[data-list="reprovados"] {
    background: #fca5a5; /* red pastel */
}
body.light-mode .list[data-list="sem-interesse"] {
    background: #d1d5db; /* gray pastel */
}

/* --- Topbar --- */
body.light-mode .topbar-gestao {
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(12px);
}

/* --- Modais --- */
body.light-mode .add-candidato-modal,
body.light-mode .form-qa-modal,
body.light-mode .agendar-modal,
body.light-mode .confirm-modal {
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
}

body.light-mode .add-candidato-textarea {
    background: var(--bg-tertiary);
}

body.light-mode .form-qa-item {
    background: var(--bg-tertiary);
}

body.light-mode .form-qa-modal-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
}

body.light-mode .form-qa-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.18);
}

body.light-mode .ac-field {
    background: var(--bg-tertiary);
}

body.light-mode .ac-obs-section {
    background: var(--bg-tertiary);
}

body.light-mode .ac-obs-section .obs-add-btn {
    background: rgba(0, 0, 0, 0.03);
}

body.light-mode .ac-obs-section .obs-add-btn:hover {
    background: rgba(0, 0, 0, 0.06);
}

body.light-mode .ac-obs-section .obs-item {
    background: rgba(0, 0, 0, 0.02);
}

body.light-mode .add-candidato-btn-voltar:hover {
    background: rgba(0, 0, 0, 0.06);
}

body.light-mode .confirm-modal-field textarea,
body.light-mode .confirm-modal-field select {
    background: var(--bg-tertiary);
}

body.light-mode .confirm-modal-btn-cancel {
    background: rgba(0, 0, 0, 0.06);
}

body.light-mode .confirm-modal-btn-cancel:hover {
    background: rgba(0, 0, 0, 0.1);
}

body.light-mode .form-qa-open-btn {
    background: var(--bg-tertiary);
}

/* ============================================
   LEMBRETES - Banner quadrado + Note cards
   ============================================ */

.card-banner-square {
    padding: 0;
    overflow: hidden;
    position: relative;
}

.card-banner-square .card-banner-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.card-banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 12px 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.682) 45%, transparent 100%);
    display: flex;
    align-items: flex-end;
}

.card-banner-label {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.lembrete-note-card {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: calc(15px + 15px) 14px 20px 14px !important;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.lembrete-note-card:hover {
    background: rgba(255,255,255,0.03);
    transform: translateX(2px);
}

/* Barra topo colorida */
.lembrete-note-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 15px;
    border-radius: 0 0 2px 2px;
}

.lembrete-note-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 14px;
    flex-shrink: 0;
}

.lembrete-note-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.lembrete-note-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.lembrete-note-desc {
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0.7;
}

.lembrete-note-arrow {
    margin-left: auto;
    font-size: 10px;
    color: var(--text-muted);
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    transform: translateX(-4px);
    flex-shrink: 0;
}

.lembrete-note-card:hover .lembrete-note-arrow {
    opacity: 0.6;
    transform: translateX(0);
}

/* Cores por card */
.note-color-blue .lembrete-note-accent { background: #3b82f6; }
.note-color-blue .lembrete-note-icon {
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
}

.note-color-purple .lembrete-note-accent { background: #8b5cf6; }
.note-color-purple .lembrete-note-icon {
    background: rgba(139, 92, 246, 0.12);
    color: #a78bfa;
}

.note-color-green .lembrete-note-accent { background: #10b981; }
.note-color-green .lembrete-note-icon {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
}

.note-color-amber .lembrete-note-accent { background: #f59e0b; }
.note-color-amber .lembrete-note-icon {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
}

/* ============================================
   NOTE EDITOR MODAL
   ============================================ */

#noteEditorOverlay {
    align-items: center;
}

.note-editor-modal {
    width: 680px;
    max-width: 95vw;
    max-height: 82vh;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.03);
}

.note-editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-tertiary);
}

.note-editor-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.note-editor-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    font-size: 14px;
}

.note-editor-header-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.note-editor-header h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.note-editor-subtitle {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

.note-editor-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.note-editor-edit-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: none;
    background: rgba(255,255,255,0.06);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 12px;
    transition: all 0.15s;
}

.note-editor-edit-btn:hover {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.note-editor-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: none;
    background: rgba(255,255,255,0.06);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 12px;
    transition: all 0.15s;
}

.note-editor-close:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

/* Body */
.note-editor-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.12) transparent;
}

.note-editor-body::-webkit-scrollbar {
    width: 6px;
}

.note-editor-body::-webkit-scrollbar-track {
    background: transparent;
}

.note-editor-body::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.12);
    border-radius: 3px;
}

.note-editor-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.22);
}

/* Rendered view (click to edit) */
.note-editor-rendered {
    min-height: 320px;
    padding: 20px 24px;
    color: var(--text-primary);
    font-size: 0.86rem;
    line-height: 1.5;
}

.note-editor-rendered.empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-style: italic;
    opacity: 0.5;
}

.note-editor-rendered h1,
.note-editor-rendered h2,
.note-editor-rendered h3,
.note-editor-rendered h4,
.note-editor-rendered h5,
.note-editor-rendered h6 {
    color: var(--text-primary);
    font-weight: 700 !important;
}

.note-editor-rendered :first-child {
    margin-top: 0;
}

.note-editor-rendered h1 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 28px 0 8px 0;
}

.note-editor-rendered h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 24px 0 6px 0;
    color: var(--text-primary);
}

.note-editor-rendered h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 22px 0 5px 0;
    color: var(--text-primary);
}

.note-editor-rendered h4 {
    font-size: 0.92rem;
    font-weight: 600;
    margin: 20px 0 4px 0;
    color: var(--text-primary);
}

.note-editor-rendered h5 {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 10px 0 4px 0;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.note-editor-rendered h6 {
    font-size: 0.8rem;
    font-weight: 600;
    margin: 10px 0 4px 0;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.note-editor-rendered p {
    margin: 0 0 20px 0;
}

.note-editor-rendered ul,
.note-editor-rendered ol {
    margin: 4px 0 20px 0;
    padding-left: 20px;
}

.note-editor-rendered li {
    margin-bottom: 2px;
}

.note-editor-rendered li::marker {
    color: var(--text-muted);
}

.note-editor-rendered code {
    background: rgba(245, 158, 11, 0.1);
    padding: 1px 6px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.82rem;
    color: #f59e0b;
}

.note-editor-rendered pre {
    background: rgba(0,0,0,0.3);
    padding: 12px 14px;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 4px 0 8px 0;
    border: 1px solid var(--border);
}

.note-editor-rendered pre code {
    background: none;
    padding: 0;
    color: var(--text-primary);
    font-size: 0.82rem;
    line-height: 1.5;
}

.note-editor-rendered blockquote {
    border-left: 3px solid #f59e0b;
    margin: 4px 0 8px 0;
    padding: 6px 14px;
    background: rgba(245, 158, 11, 0.05);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: var(--text-secondary);
}

.note-editor-rendered strong {
    font-weight: 700;
    color: var(--text-primary);
}

.note-editor-rendered em {
    font-style: italic;
}

.note-editor-rendered del {
    text-decoration: line-through;
    color: var(--text-muted);
}

.note-editor-rendered a {
    color: #3b82f6;
    text-decoration: none;
}

.note-editor-rendered a:hover {
    text-decoration: underline;
}

.note-editor-rendered img {
    max-width: 100%;
    border-radius: 8px;
    margin: 4px 0;
}

.note-editor-rendered hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 12px 0;
}

/* Textarea (edit mode) */
.note-editor-textarea {
    width: 100%;
    min-height: 320px;
    padding: 20px 24px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.86rem;
    line-height: 1.5;
    resize: none;
    outline: none;
    tab-size: 4;
}

.note-editor-textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.4;
    font-family: var(--font-primary);
    font-style: italic;
}

/* Footer */
.note-editor-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    border-top: 1px solid var(--border);
    background: var(--bg-tertiary);
}

.note-editor-hint {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0.5;
}

.note-editor-hint i {
    font-size: 11px;
}

.note-editor-footer-btns {
    display: flex;
    align-items: center;
    gap: 8px;
}

.note-editor-cancel-btn {
    padding: 7px 16px;
    border-radius: var(--radius-md);
    border: none;
    background: rgba(255,255,255,0.06);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s;
}

.note-editor-cancel-btn:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.note-editor-cancel-btn i {
    font-size: 11px;
}

.note-editor-save-btn {
    padding: 7px 18px;
    border-radius: var(--radius-md);
    border: none;
    background: var(--accent-success);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s;
}

.note-editor-save-btn:hover {
    background: #059669;
    transform: translateY(-1px);
}

.note-editor-save-btn i {
    font-size: 11px;
}

/* Mobile */
@media (max-width: 768px) {
    .note-editor-modal {
        width: 100%;
        max-width: 100%;
        max-height: 90dvh;
        margin-top: 10dvh;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }
    #noteEditorOverlay {
        align-items: flex-end;
    }
    .note-editor-header {
        flex-wrap: wrap;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .note-editor-modal {
        max-height: 95dvh;
        margin-top: 5dvh;
    }
    .note-editor-textarea {
        min-height: 250px;
        font-size: 0.82rem;
        padding: 16px 18px;
    }
    .note-editor-rendered {
        padding: 16px 18px;
    }
}
