/* ============================================
   ReS - Sistema de Recrutamento e Seleção
   Estilos Customizados
   ============================================ */

/* ============ VARIÁVEIS ============ */
:root {
  --primary-color: #0d6efd;
  --primary-dark: #0b5ed7;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #0dcaf0;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --gradient-primary: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
  --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
  --transition: all 0.3s ease;
}

/* ============ RESET & BASE ============ */
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f5f7fa;
}

main {
  flex: 1;
}

/* ============ TYPOGRAPHY ============ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
}

/* ============ NAVBAR ============ */
.navbar {
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.navbar-brand {
  font-size: 1.5rem;
}

/* ============ CARDS ============ */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-header {
  background: transparent;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-weight: 600;
}

/* ============ BUTTONS ============ */
.btn {
  border-radius: 8px;
  padding: 0.5rem 1.25rem;
  font-weight: 500;
  transition: var(--transition);
}

.btn-primary {
  background: var(--gradient-primary);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* ============ FORMS ============ */
.form-control,
.form-select {
  border-radius: 8px;
  padding: 0.625rem 1rem;
  border: 1px solid #dee2e6;
  transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
  border-color: var(--primary-color);
}

.form-label {
  font-weight: 500;
  color: var(--dark-color);
  margin-bottom: 0.375rem;
}

/* ============ TABLES ============ */
.table {
  border-radius: 12px;
  overflow: hidden;
}

.table thead th {
  background-color: var(--light-color);
  border-bottom: 2px solid #dee2e6;
  font-weight: 600;
  color: var(--secondary-color);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.table-hover tbody tr:hover {
  background-color: rgba(13, 110, 253, 0.05);
}

/* ============ BADGES ============ */
.badge {
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-weight: 500;
}

/* Status badges - Vagas */
.badge-inscricao {
  background-color: #0dcaf0;
  color: #000;
}
.badge-avaliacao {
  background-color: #ffc107;
  color: #000;
}
.badge-entrevista {
  background-color: #6f42c1;
  color: #fff;
}
.badge-concluido {
  background-color: #198754;
  color: #fff;
}
.badge-cancelado {
  background-color: #dc3545;
  color: #fff;
}

/* Status badges - Triagem */
.badge-pendente {
  background-color: #6c757d;
  color: #fff;
}
.badge-aprovado {
  background-color: #198754;
  color: #fff;
}
.badge-reprovado {
  background-color: #dc3545;
  color: #fff;
}

/* Status badges - Processo Seletivo */
.badge-inscrito {
  background-color: #0dcaf0;
  color: #000;
}
.badge-triagem {
  background-color: #6c757d;
  color: #fff;
}
.badge-vaga-encerrada {
  background-color: #6c757d;
  color: #fff;
}
/* badge-avaliacao já definido acima */
/* badge-entrevista já definido acima */
/* badge-aprovado já definido acima */
/* badge-reprovado já definido acima */

/* ============ HERO SECTION ============ */
.hero-section {
  background: var(--gradient-hero);
  min-height: 50vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='40' fill='rgba(255,255,255,0.05)'/%3E%3C/svg%3E");
  background-size: 100px;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-section p {
  font-size: 1.25rem;
  opacity: 0.9;
}

/* ============ DASHBOARD ============ */
.stat-card {
  border-radius: 16px;
  padding: 1.5rem;
  background: white;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat-card .stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark-color);
}

.stat-card .stat-label {
  color: var(--secondary-color);
  font-size: 0.875rem;
}

/* ============ EX-EMPLOYEE HIGHLIGHT ============ */
.ex-empregado-highlight {
  background-color: #fff3cd !important;
  border-left: 4px solid var(--warning-color);
}

.ex-empregado-badge {
  background-color: var(--warning-color);
  color: #000;
  font-weight: 600;
}

/* ============ PROGRESS TIMELINE ============ */
.process-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 2rem 0;
}

.process-timeline::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 4px;
  background: #e9ecef;
  z-index: 1;
}

.timeline-step {
  position: relative;
  z-index: 2;
  text-align: center;
  flex: 1;
}

.timeline-step .step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e9ecef;
  border: 3px solid white;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem;
  color: var(--secondary-color);
}

.timeline-step.active .step-circle {
  background: var(--primary-color);
  color: white;
}

.timeline-step.completed .step-circle {
  background: var(--success-color);
  color: white;
}

.timeline-step .step-label {
  font-size: 0.75rem;
  color: var(--secondary-color);
}

/* ============ SCORE DISPLAY ============ */
.score-display {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.score-bar {
  height: 8px;
  border-radius: 4px;
  background: #e9ecef;
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease;
}

/* ============ EMPTY STATE ============ */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--secondary-color);
}

.empty-state i {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* ============ PRINT STYLES ============ */
@media print {
  .navbar,
  footer,
  .btn,
  .no-print {
    display: none !important;
  }

  body {
    background: white;
  }

  .card {
    box-shadow: none;
    border: 1px solid #dee2e6;
  }

  main {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}

/* ============ FILTERS LAYOUT ============ */
.btn-group.flex-wrap {
  gap: 0;
}

.btn-group.flex-wrap .btn {
  white-space: nowrap;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2rem;
  }

  .stat-card .stat-value {
    font-size: 1.5rem;
  }

  .process-timeline {
    flex-direction: column;
    gap: 1rem;
  }

  .process-timeline::before {
    display: none;
  }

  .btn-group.flex-wrap {
    width: 100%;
  }

  .btn-group.flex-wrap .btn {
    flex: 1 1 auto;
    min-width: 0;
  }
}
