@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --color-executor: #ef4444; /* Vermelho/Rose */
  --color-comunicador: #f59e0b; /* Amarelo/Amber */
  --color-planejador: #10b981; /* Verde/Emerald */
  --color-analista: #3b82f6; /* Azul/Sky */
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #f8fafc;
  background-image: 
    radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.03) 0px, transparent 50%),
    radial-gradient(at 50% 0%, rgba(16, 185, 129, 0.03) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(239, 68, 68, 0.02) 0px, transparent 50%);
  background-attachment: fixed;
  color: #1e293b;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Outfit', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Elegant Corporate Minimalist Styles */
.glass-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.03), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
}

.glass-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.02), 0 1px 2px -1px rgba(0, 0, 0, 0.02);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

/* Micro-animations */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.06);
  }
  50% {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.12);
  }
}

.pulse-glow {
  animation: pulseGlow 3s infinite;
}

.transition-all-300 {
  transition: all 0.3s ease;
}

/* Question Option States */
.question-option {
  position: relative;
  cursor: pointer;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 20px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.question-option:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: scale(1.005);
}

.question-option.selected {
  background: #eff6ff;
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.05);
}

/* Custom Checkmark */
.option-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.question-option.selected .option-dot {
  border-color: #3b82f6;
  background-color: #3b82f6;
}

.option-dot::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: white;
  opacity: 0;
  transform: scale(0);
  transition: all 0.2s ease;
}

.question-option.selected .option-dot::after {
  opacity: 1;
  transform: scale(1);
}

/* Profile Colors */
.border-executor { border-color: var(--color-executor) !important; }
.text-executor { color: var(--color-executor) !important; }
.bg-executor { background-color: var(--color-executor) !important; }
.bg-executor-light { background-color: rgba(239, 68, 68, 0.05) !important; }

.border-comunicador { border-color: var(--color-comunicador) !important; }
.text-comunicador { color: var(--color-comunicador) !important; }
.bg-comunicador { background-color: var(--color-comunicador) !important; }
.bg-comunicador-light { background-color: rgba(245, 158, 11, 0.05) !important; }

.border-planejador { border-color: var(--color-planejador) !important; }
.text-planejador { color: var(--color-planejador) !important; }
.bg-planejador { background-color: var(--color-planejador) !important; }
.bg-planejador-light { background-color: rgba(16, 185, 129, 0.05) !important; }

.border-analista { border-color: var(--color-analista) !important; }
.text-analista { color: var(--color-analista) !important; }
.bg-analista { background-color: var(--color-analista) !important; }
.bg-analista-light { background-color: rgba(59, 130, 246, 0.05) !important; }

/* ---------------------------------------------------- */
/* PRINT STYLES - CRITICAL FOR PDF HIGH FIDELITY */
/* ---------------------------------------------------- */
@media print {
  @page {
    size: A4 portrait;
    margin: 1.5cm 1.2cm 1.5cm 1.2cm;
  }

  /* CRITICAL: remove overflow/height restrictions so all content renders */
  html, body {
    height: auto !important;
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
  }

  body {
    background: #ffffff !important;
    background-image: none !important;
    color: #0f172a !important;
    font-size: 11pt !important;
    line-height: 1.5 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    display: block !important;
    flex-direction: unset !important;
  }

  /* Force headers, borders, progress bars, and grids to render correctly */
  * {
    color-adjust: exact !important;
    -webkit-print-color-adjust: exact !important;
  }

  /* Hide navigation, buttons, welcome, survey screen and other UI elements */
  .no-print,
  #nav-bar,
  #welcome-screen,
  #survey-screen,
  .print-btn-container,
  #main-content,
  button,
  footer {
    display: none !important;
  }

  /* CRITICAL: make the report container fully visible and auto-height */
  #report-view-container {
    display: block !important;
    height: auto !important;
    min-height: unset !important;
    overflow: visible !important;
    padding: 0 !important;
    background: transparent !important;
  }

  #report-view-container > div {
    max-width: 100% !important;
  }

  #report-screen {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
  }

  /* PDF Layout Structuring */
  .report-header {
    margin-bottom: 25px !important;
    border-bottom: 2px solid #e2e8f0 !important;
    padding-bottom: 15px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .report-header h1 {
    font-size: 24pt !important;
    color: #1e293b !important;
    margin: 0 !important;
  }

  .report-header p {
    font-size: 13pt !important;
    color: #475569 !important;
    margin: 4px 0 0 0 !important;
  }

  /* Main grid for boxes */
  .scores-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 15px !important;
    margin-bottom: 25px !important;
  }

  .score-box {
    background: #ffffff !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 15px !important;
    text-align: center !important;
    box-shadow: none !important;
  }

  .score-box.primary-box {
    background: #f8fafc !important;
  }

  /* Executive Summary Box */
  .summary-box {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 20px !important;
    margin-bottom: 30px !important;
  }

  /* Charts & Competencies Layout */
  .middle-row {
    display: grid !important;
    grid-template-columns: 2fr 3fr !important;
    gap: 25px !important;
    margin-bottom: 30px !important;
  }

  .chart-container-print {
    max-width: 250px !important;
    margin: 0 auto !important;
  }

  .competency-item {
    margin-bottom: 12px !important;
  }

  .competency-bar-bg {
    background-color: #f1f5f9 !important;
    height: 8px !important;
    border-radius: 4px !important;
  }

  .competency-bar-fill {
    height: 8px !important;
    border-radius: 4px !important;
  }

  /* PAGE BREAK - FORCE REPORT BLOCKS TO PAGE 2 */
  .page-break-before {
    page-break-before: always !important;
    break-before: page !important;
    padding-top: 20px !important;
  }

  /* Report detail blocks */
  .detail-block {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
    page-break-inside: avoid !important;
  }

  .detail-block h3 {
    margin-top: 0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding-bottom: 8px !important;
    font-size: 13pt !important;
  }

  .detail-block ul {
    margin: 8px 0 0 0 !important;
    padding-left: 20px !important;
  }

  .detail-block li {
    margin-bottom: 6px !important;
  }

  /* Custom Print badges */
  .badge-print {
    border: 1px solid #e2e8f0 !important;
    background: #f1f5f9 !important;
    color: #475569 !important;
    padding: 2px 8px !important;
    font-size: 9pt !important;
    border-radius: 4px !important;
  }
  .competency-card {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  /* Rodapé visível apenas no PDF */
  .print-only {
    display: block !important;
  }
}
