@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-white-color: rgba(255, 255, 255, 0.9);
  --bg-dark-green: #515f3c;
  --bg-body: #f8f8f8;
  --font-black-color: #202124;
  font-weight: 700;
}

body {
  font-family: "Outfit", sans-serif;
  min-height: 100vh;
  color: var(--font-black-color);
  font-weight: 500;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  
}

.header {
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 25px;
  text-align: center;
  border-top: 5px solid #e67e22;
}

.header h1 {
  color: var(--font-black-color);
  margin-bottom: 10px;
  font-size: 2.2rem;
}

.header p {
  color: var(--font-black-color);
  font-size: 1.1rem;
}

.tabs {
  display: flex;
  background: white;
  border-radius: 10px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tab {
  flex: 1;
  padding: 15px 20px;
  background: #ffffff;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  color: var(--font-black-color);
  border-bottom: 3px solid transparent;
  font-family: "Outfit", sans-serif;
}

.tab.active {
  background: var(--bg-dark-green);
  color: white;
}

.tab:hover {
  background: #e9ecef;
  color: var(--bg-dark-green);
}

.tab.active:hover {
  background: #ffffff;
}

#entrevista .section {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  border-top: 10px solid var(--bg-dark-green);
}

.section {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  border-top: 10px solid var(--bg-dark-green);
}

.section {
  margin-bottom: 30px;
}

.section h3 {
  color: var(--font-black-color);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e9ecef;
  font-size: 1.5rem;
  font-weight: 400;
  position: relative;
}

.section h3::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background: #e67e22;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--font-black-color);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #e67e22;
  box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.function-assessment1 {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  border-top: 10px solid var(--bg-dark-green);
}

.function-assessment h4 {
  color: var(--font-black-color);
  margin-bottom: 15px;
  display: flex;
  gap: 10px;
  font-weight: 400;
  font-size: 1.2rem;
}

.function-score {
  font-size: 18px;
  font-weight: bold;
  color: #ffffff;
  text-align: center;
  margin-top: 10px;
  background: var(--bg-dark-green);
  padding: 10px;
  border-radius: 8px;
  border: 2px solid var(--bg-dark-green);
}

.rating-scale {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
  padding: 10px;
  background: white;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  gap: 10px;
}

.rating-scale label {
  margin: 0;
  font-weight: normal;
  color: var(--black-color);
}

.inputsRadios {
    display: flex;
    gap: 15px;
}

.radio-group {
    flex-direction: row;
    gap: 10px;
}

.results-section {
  background: #ffffff;
  color: var(--font-black-color);
  padding: 25px;
  border-radius: 8px;
  margin: 20px 0;
  border-top: 10px solid var(--bg-dark-green);
}

.results-section h3 {
  color: white;
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.results-section h3::after {
  background: #e67e22;
}

.recommendation-card {
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  padding: 20px;
  border-radius: 10px;
  margin: 15px 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-left: 10px solid var(--bg-dark-green);
}

.recommendation-card h4 {
  color: #000;
  margin-bottom: 20px;
  font-size: 1.2rem;
  font-weight: 500;
}

.priority-high {
  border-left: 10px solid #dc3545;
  background: #fff;
}

.priority-medium {
  border-left: 10px solid #e67e22;
  background: #fff;
}

.priority-low {
  border-left: 10px solid #4a6741;
  background: #fff;
}

.btn {
  background: var(--bg-dark-green);
  color: #ffffff;
  font-family: "Outfit", sans-serif;
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  margin: 10px 5px;
}

.btn:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(74, 103, 65, 0.3);
  color: #026451;
}

.btn:active {
  transform: translateY(0);
}

.btn-secondary {
  background: #7f8c8d;
}

.btn-secondary:hover {
  background: #95a5a6;
}

.alert {
  padding: 15px;
  border-radius: 8px;
  margin: 15px 0;
  border-left: 10px solid;
}

.alert-warning {
  background: #f5f7fa;
  color: var(--font-black-color);
  border-left: solid 10px #e67e22;
}

.content .section {
  background: white;
  padding: 20px 3%;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  border-top: 10px solid var(--bg-dark-green);
}
#coleta .section {
  margin: 20px 3%;
}
.alert-danger {
  background: linear-gradient(135deg, #fff5f5 0%, #fed7da 100%);
  border-left-color: #dc3545;
  color: #721c24;
}

.progress-bar {
  width: 100%;
  height: 20px;
  background: #e9ecef;
  border-radius: 10px;
  overflow: hidden;
  margin: 10px 0;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4a6741, #e67e22);
  transition: width 0.3s ease;
}

.hidden {
  display: none;
}

/* Estilos específicos para funções */
.atencao {
  border-top-color: #e74c3c;
}
.fuga {
  border-top-color: #3498db;
}
.tangiveis {
  border-top-color: #e67e22;
}
.automatico {
  border-top-color: var(--bg-dark-green);
}

/* Header do sistema */
.system-header {
  background: var(--bg-dark-green);
  color: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-top: 10px solid var(--bg-dark-green);
  gap: 0.5rem;
  align-items: center;
  text-align: center;
}

.system-header h1 {
  margin-bottom: 10px;
  font-size: 2rem;
  font-weight: 400;
}

.system-header p {
  font-size: 1.2rem;
}

.system-header small {
  color: #e67e22;
  font-weight: 600;
  font-size: 1rem;
}

.cabecalho-relatorio {
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 20px;
  margin-bottom: 30px;
}

.cabecalho-relatorio h2 {
  color: var(--font-black-color);
  margin-bottom: 15px;
  font-weight: 400;
  font-size: 1.5rem;
}

.secao-relatorio {
  margin-bottom: 30px;
  page-break-inside: avoid;
}

.secao-relatorio h3 {
  color: var(--font-black-color);
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 10px;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.distribuicao-visual {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
  border-left: 10px solid var(--bg-dark-green);
}

.barra-funcao {
  margin-bottom: 15px;
}

.barra-progresso {
  width: 100%;
  height: 20px;
  background: #e9ecef;
  border-radius: 10px;
  overflow: hidden;
  margin: 5px 0;
}

.cor-atencao {
  background: linear-gradient(90deg, #e74c3c, #c0392b);
}
.cor-fuga {
  background: linear-gradient(90deg, #3498db, #2980b9);
}
.cor-tangiveis {
  background: linear-gradient(90deg, #e67e22, #d35400);
}
.cor-automatico {
  background: var(--bg-dark-green);
}

.hipotese-funcional {
  background: #c8e6c9;
  padding: 20px;
  border-radius: 8px;
  border-left: 10px solid var(--bg-dark-green);
  font-style: italic;
  color: #202124;
}

.procedimento-recomendado {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  border-left: 10px solid var(--bg-dark-green);
}

.observacoes-importantes {
  background: #c8e6c9;
  padding: 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
}

.referencias-section {
  background: #f5f7fa;
  padding: 25px;
  border-radius: 10px;
  margin: 30px 0;
  border-top: 10px solid var(--bg-dark-green);
}

.referencias-section h3 {
  color: #000;
  margin-bottom: 20px;
}

.referencia-item {
  margin-bottom: 15px;
  padding: 10px;
  background: white;
  border-radius: 5px;
  border-left: 10px solid #e67e22;
  font-size: 0.9em;
  line-height: 1.4;
}

.assinatura-container {
  margin: 20px 0;
  padding: 20px;
  background: #f5f7fa;
  border-radius: 10px;
  border-top: 10px solid var(--bg-dark-green);
}

.nome-autor {
  color: #e67e22;
  font-weight: bold;
  font-size: 1.2em;
  margin: 5px 0;
}

/* Estilos para tabelas */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

th {
  background: var(--bg-dark-green);
  color: white;
  padding: 12px;
  text-align: left;
  font-weight: 600;
}

td {
  padding: 12px;
  border-bottom: 1px solid #e2e8f0;
}

tbody tr:nth-child(even) {
  background: #f8f9fa;
}

tbody tr:hover {
  background: #e8f5e8;
}

@media (max-width: 768px) {
  .tabs {
    flex-direction: column;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 10px;
  }

  .rating-scale {
    flex-wrap: wrap;
  }
}

/* Animações sutis */
.recommendation-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(74, 103, 65, 0.15);
  transition: all 0.3s ease;
}

.function-assessment:hover {
  transform: scale(1.02);
  transition: all 0.3s ease;
}

@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  body {
    margin: 10mm;
  }
}
