* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

body { background-color: #f4f5f7; color: #172b4d; height: 100vh; display: flex; flex-direction: column; }

header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 25px; background-color: #ffffff; border-bottom: 1px solid #dfe1e6;
}

.logo { display: flex; align-items: center; gap: 10px; color: #0052cc; }
.logo h1 { font-size: 20px; }

.acoes-header { display: flex; gap: 10px; }

button { cursor: pointer; border: none; border-radius: 4px; padding: 8px 16px; font-weight: 600; font-size: 14px; transition: 0.2s; }
.btn-primario { background-color: #0052cc; color: white; }
.btn-primario:hover { background-color: #0043a6; }
.btn-secundario { background-color: #ebecf0; color: #172b4d; }
.btn-secundario:hover { background-color: #dfe1e6; }
.btn-block { width: 100%; padding: 12px; font-size: 16px; flex: 1; }

/* KANBAN BOARD */
.kanban-board {
    display: flex; padding: 20px; gap: 15px; overflow-x: auto; flex-grow: 1; align-items: flex-start;
}

.kanban-column {
    background-color: #ebecf0; border-radius: 8px; min-width: 300px; width: 300px; display: flex; flex-direction: column; max-height: 100%;
}

.kanban-column h2 {
    font-size: 14px; padding: 12px 15px; color: #5e6c84; display: flex; justify-content: space-between; align-items: center;
}

.contador { background: #dfe1e6; padding: 2px 8px; border-radius: 12px; font-size: 12px; color: #172b4d; }

.kanban-cards {
    flex-grow: 1; padding: 0 10px 10px 10px; overflow-y: auto; min-height: 50px;
}

/* CARDS */
.card {
    background-color: #fff; padding: 12px; border-radius: 6px; margin-bottom: 10px;
    box-shadow: 0 1px 2px rgba(9,30,66,0.25); cursor: grab; transition: transform 0.1s, border-left 0.2s, box-shadow 0.2s;
    border-left: 4px solid transparent; position: relative;
}
.card:active { cursor: grabbing; transform: rotate(2deg); }
.card.dragging { opacity: 0.5; }

/* Faz o card parecer clicável além de arrastável */
.card:hover {
    box-shadow: 0 3px 6px rgba(9,30,66,0.3);
}

/* Alerta de Follow Up */
.card.alerta-tempo { border-left-color: #f6c23e; } /* Amarelo para +7 dias */
.card.alerta-critico { border-left-color: #e74a3b; } /* Vermelho para +14 dias */

.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }

/* Estilo para a Logo no Card e header da empresa */
.card-empresa-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    margin-bottom: 8px;
}
.empresa-logo {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    object-fit: contain;
    background-color: #f4f5f7;
    border: 1px solid #dfe1e6;
}

.card h3 { font-size: 15px; margin: 0; color: #172b4d; }
.card p { font-size: 12px; color: #5e6c84; margin-bottom: 4px; }
.card .cv-tag { font-size: 11px; color: #888; display: block; margin-top: 8px; font-style: italic; }
.card .alerta-badge { font-size: 10px; font-weight: bold; padding: 2px 5px; border-radius: 3px; margin-left: 5px;}
.alerta-badge.amarelo { background-color: #fdf3d8; color: #856404; }
.alerta-badge.vermelho { background-color: #fceceb; color: #721c24; }

.tag { font-size: 11px; padding: 3px 6px; border-radius: 4px; font-weight: bold; }
.tag-remoto { background-color: #e3fcef; color: #006644; }
.tag-hibrido { background-color: #deebff; color: #0747a6; }

.badge i { margin-right: 4px; }
.badge.linkedin { color: #0a66c2; font-weight: bold; font-size: 12px;}
.badge.email { color: #ea4335; font-weight: bold; font-size: 12px;}

/* MODAIS */
.modal {
    display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(9,30,66,0.54);
}

.modal-content {
    background-color: #f4f5f7; margin: 5% auto; padding: 25px; border-radius: 8px; width: 90%; max-width: 600px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2); position: relative;
}

/* Correção do Modal (Scroll e Altura) */
#modal-templates .modal-content, #modal-vaga .modal-content {
    max-height: 85vh;
    overflow-y: auto;
}

.close-btn { color: #5e6c84; float: right; font-size: 28px; font-weight: bold; cursor: pointer; line-height: 1; }
.close-btn:hover { color: #172b4d; }

.modal h2 { margin-bottom: 20px; color: #172b4d; font-size: 20px; }

.form-row { display: flex; gap: 15px; margin-bottom: 12px; }
.form-group { flex: 1; display: flex; flex-direction: column; }
.form-group label { font-size: 13px; font-weight: 600; color: #5e6c84; margin-bottom: 4px; }
.form-group input, .form-group select, .form-group textarea {
    padding: 8px 12px; border: 2px solid #dfe1e6; border-radius: 4px; font-size: 14px; outline: none; background: #fff;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: #4c9aff; }

/* TEMPLATES LIST */
.template-item { background: #fff; padding: 15px; border-radius: 6px; margin-bottom: 10px; border: 1px solid #dfe1e6; }
.template-item h4 { margin-bottom: 8px; color: #0052cc; display: flex; justify-content: space-between;}
.template-item pre { white-space: pre-wrap; font-family: inherit; font-size: 13px; color: #333; margin-bottom: 10px; }
.btn-copiar { background: #ebecf0; border: none; padding: 5px 10px; border-radius: 4px; cursor: pointer; font-size: 12px; }
.btn-copiar:hover { background: #dfe1e6; }