/* ============================================================
   Aprend — Módulo de RH & Recrutamento Tech (Estilo Dark Tech Premium)
   Controles de formulário escuros, cards de vagas, talentos,
   kanban pipeline interativo e temas de modais SweetAlert2.
   ============================================================ */

/* Formulários & Controles Globais de RH */
.rh-filter-box,
.rh-card,
.talent-card,
.job-card,
.kanban-col {
  box-sizing: border-box;
}

.form-label,
label.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 0.4rem;
  text-transform: none;
  letter-spacing: 0.02em;
}

.form-label i,
label.form-label i {
  color: var(--accent, #29c3d6);
  margin-right: 0.35rem;
}

.form-control,
.form-select,
select.form-control,
input.form-control,
textarea.form-control,
input[type="text"].form-control,
input[type="email"].form-control,
input[type="number"].form-control {
  background: #0d121c !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #f8fafc !important;
  border-radius: 10px !important;
  padding: 0.65rem 0.95rem !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  outline: none !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.45) !important;
  width: 100%;
  box-sizing: border-box;
}

.form-control:focus,
.form-select:focus,
select.form-control:focus,
input.form-control:focus,
textarea.form-control:focus {
  border-color: #29c3d6 !important;
  background: #121826 !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(41, 195, 214, 0.22), inset 0 2px 4px rgba(0, 0, 0, 0.4) !important;
}

.form-control::placeholder,
textarea.form-control::placeholder,
input.form-control::placeholder {
  color: #64748b !important;
  font-size: 0.84rem !important;
}

select.form-control,
select.form-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-color: #0d121c !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2329c3d6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.85rem center !important;
  background-size: 16px !important;
  padding-right: 2.4rem !important;
  cursor: pointer !important;
}

select.form-control option,
select.form-select option {
  background: #090d15 !important;
  color: #f8fafc !important;
  padding: 10px 14px !important;
}

/* Custom Checkbox Tech */
.checkbox-tech {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  user-select: none;
  font-size: 0.84rem;
  font-weight: 700;
  color: #34d399;
}
.checkbox-tech input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: #0d121c;
  border: 1px solid rgba(52, 211, 153, 0.4);
  outline: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
  flex: none;
}
.checkbox-tech input[type="checkbox"]:checked {
  background: #10b981;
  border-color: #10b981;
}
.checkbox-tech input[type="checkbox"]:checked::after {
  content: "✓";
  color: #022c22;
  font-weight: 900;
  font-size: 0.75rem;
}

/* KPIs e Grid Estatística */
.rh-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.rh-stat-card {
  background: #0b0f17;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.6);
  transition: all 0.2s ease;
}
.rh-stat-card:hover {
  border-color: rgba(41, 195, 214, 0.3);
  transform: translateY(-2px);
}
.rh-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  flex: none;
}

/* Filtros */
.rh-filter-box {
  background: #0b0f17;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 1.35rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Cards do Banco de Talentos */
.rh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}
.talent-card {
  background: #0b0f17;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.6);
}
.talent-card:hover {
  transform: translateY(-3px);
  border-color: rgba(41, 195, 214, 0.45);
  box-shadow: 0 14px 35px -10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(41, 195, 214, 0.1);
}
.talent-card.open-to-work::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #10b981, #34d399);
}
.talent-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.talent-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  flex: none;
  background: #131824;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--accent, #29c3d6);
}
.talent-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.talent-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.25;
}
.talent-headline {
  font-size: 0.85rem;
  color: var(--accent, #29c3d6);
  font-weight: 600;
  margin-top: 0.2rem;
  line-height: 1.35;
}
.talent-badges {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.55rem;
}
.talent-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.talent-badge.otw {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.35);
}
.talent-badge.cert {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
}
.talent-stacks {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin: 0.85rem 0;
}
.talent-stack-tag {
  font-size: 0.74rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}
.talent-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 0.9rem;
  margin-top: 0.85rem;
}

/* Cards de Vagas Tech */
.job-card {
  background: #0b0f17;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.4rem 1.6rem;
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  transition: all 0.2s ease;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.6);
}
.job-card:hover {
  border-color: rgba(41, 195, 214, 0.4);
  background: #0e1420;
  transform: translateY(-2px);
}
.job-main {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex: 1;
  min-width: 280px;
}
.job-logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #131824;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  color: var(--accent, #29c3d6);
  overflow: hidden;
  flex: none;
}
.job-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.job-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.25;
}
.job-company {
  font-size: 0.88rem;
  color: var(--accent, #29c3d6);
  font-weight: 700;
  margin-top: 0.15rem;
}
.job-tags {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.job-tag {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}
.job-kpis {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}
.job-kpi-item {
  min-width: 80px;
}
.job-kpi-val {
  font-size: 1.3rem;
  font-weight: 800;
  color: #f8fafc;
}
.job-kpi-lbl {
  font-size: 0.72rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Kanban Pipeline Board */
.kanban-wrapper {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  padding-bottom: 1.5rem;
  min-height: calc(100vh - 280px);
  align-items: flex-start;
}
.kanban-wrapper::-webkit-scrollbar { height: 8px; }
.kanban-wrapper::-webkit-scrollbar-track { background: rgba(255,255,255,.03); border-radius: 4px; }
.kanban-wrapper::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 4px; }

.kanban-col {
  flex: 0 0 310px;
  background: #080c14;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 270px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.kanban-col.dragover {
  border-color: #29c3d6;
  background: #0d131f;
}
.kanban-col-header {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex: none;
}
.kanban-col-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.kanban-col-count {
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
}
.kanban-cards-list {
  padding: 0.85rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
  min-height: 120px;
}
.kanban-cards-list::-webkit-scrollbar { width: 5px; }
.kanban-cards-list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 4px; }

.kanban-card {
  background: #0f1420;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem;
  cursor: grab;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  position: relative;
}
.kanban-card:active { cursor: grabbing; }
.kanban-card:hover {
  transform: translateY(-2px);
  border-color: rgba(41, 195, 214, 0.4);
  background: #141c2c;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}
.kanban-card.dragging {
  opacity: 0.4;
  border-color: #29c3d6;
}

.kc-head { display: flex; align-items: flex-start; gap: 0.75rem; }
.kc-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #182030;
  display: grid;
  place-items: center;
  flex: none;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--accent, #29c3d6);
  overflow: hidden;
}
.kc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.kc-name { font-size: 0.92rem; font-weight: 800; color: #f8fafc; line-height: 1.25; }
.kc-headline { font-size: 0.78rem; color: #94a3b8; margin-top: 0.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.kc-tags { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-top: 0.6rem; }
.kc-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
}
.kc-tag.otw { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.kc-rating { display: flex; gap: 0.2rem; color: #f5c542; font-size: 0.78rem; margin-top: 0.5rem; }
.kc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.6rem;
  margin-top: 0.65rem;
}
.kc-actions { display: flex; gap: 0.35rem; }
.kc-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  display: grid;
  place-items: center;
  font-size: 0.74rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.kc-btn:hover {
  background: rgba(41, 195, 214, 0.15);
  color: var(--accent, #29c3d6);
  border-color: rgba(41, 195, 214, 0.3);
}

/* Modais SweetAlert2 Dark Tech Premium */
div:where(.swal2-container) .swal2-popup.swal-dark-custom {
  background: #090d15 !important;
  border: 1px solid rgba(41, 195, 214, 0.35) !important;
  border-radius: 18px !important;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.85), 0 0 30px rgba(41, 195, 214, 0.15) !important;
  color: #f8fafc !important;
  padding: 1.8rem !important;
}
.swal-dark-custom .swal2-title {
  color: #f8fafc !important;
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
}
.swal-dark-custom .swal2-close {
  color: #94a3b8 !important;
  transition: color 0.15s ease !important;
}
.swal-dark-custom .swal2-close:hover {
  color: #29c3d6 !important;
}
.swal-dark-custom input.form-control,
.swal-dark-custom select.form-control,
.swal-dark-custom textarea.form-control {
  background: #111724 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #f8fafc !important;
  border-radius: 10px !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4) !important;
}
.swal-dark-custom input.form-control:focus,
.swal-dark-custom select.form-control:focus,
.swal-dark-custom textarea.form-control:focus {
  border-color: #29c3d6 !important;
  background: #161e2e !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(41, 195, 214, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.4) !important;
}
