/* ==========================================================================
   NOVA IT PARK — RECRUITMENT MANAGEMENT SYSTEM (RMS)
   Components & Feature Styles (Scorecard, Profile, Comparison, Funnel)
   ========================================================================== */

/* Candidate Profile Header */
.profile-header-card {
  background: linear-gradient(135deg, #00396F 0%, #00794E 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.profile-header-card::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 121, 78, 0.35) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.profile-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.profile-avatar-large {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #00794E, #00396F);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.profile-info h2 {
  color: #ffffff;
  font-size: 1.6rem;
  margin-bottom: 0.25rem;
}

.profile-meta-badges {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.profile-meta-badges .badge {
  font-size: 0.8rem;
  padding: 0.3rem 0.75rem;
}

.profile-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Recruitment Funnel Visualizer */
.funnel-container {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.funnel-step {
  flex: 1;
  min-width: 110px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.6rem;
  text-align: center;
  position: relative;
  transition: all 0.2s ease;
}

.funnel-step:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.funnel-step-name {
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.4px;
}

.funnel-step-count {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0.2rem 0;
}

.funnel-step-rate {
  font-size: 0.7rem;
  color: var(--success);
  font-weight: 600;
}

/* Scorecard Breakdown Box */
.scorecard-summary-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.composite-score-circle {
  width: 84px;
  height: 84px;
  border-radius: var(--radius-full);
  background-color: #ffffff;
  border: 4px solid var(--success);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.composite-score-value {
  font-size: 1.6rem;
  font-weight: 900;
  color: #166534;
  line-height: 1;
}

.composite-score-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #15803d;
}

/* Timeline Feed */
.timeline-feed {
  position: relative;
  padding-left: 2rem;
}

.timeline-feed::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 11px;
  width: 2px;
  background-color: var(--border-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
}

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 4px;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background-color: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  border: 3px solid #ffffff;
  box-shadow: var(--shadow-xs);
}

.timeline-content {
  background-color: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
}

.timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.timeline-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
}

.timeline-time {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* Candidate Comparison Matrix */
.comparison-table-wrapper {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.comparison-table th, .comparison-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
}

.comparison-table th:first-child, .comparison-table td:first-child {
  position: sticky;
  left: 0;
  background-color: #f8fafc;
  z-index: 10;
  font-weight: 700;
  border-left: 1px solid var(--border-color);
  min-width: 180px;
}

.comparison-table th {
  background-color: #f1f5f9;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
}

.comparison-table td {
  text-align: center;
  background-color: #ffffff;
}

.comparison-candidate-card {
  text-align: center;
  padding: 0.5rem;
}

.comparison-candidate-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* Print Stylesheet for Offer Letter and Candidate Profiles */
@media print {
  .app-sidebar, .app-topbar, .page-actions, .tabs-header, .btn, .sidebar-footer {
    display: none !important;
  }
  .app-main {
    margin-left: 0 !important;
  }
  body {
    background-color: #ffffff !important;
    color: #000000 !important;
    font-size: 12pt;
  }
  .card, .profile-header-card {
    box-shadow: none !important;
    border: none !important;
    background: none !important;
    color: #000000 !important;
  }
  .printable-area {
    padding: 0;
    margin: 0;
  }
}
