/* Estilos para notas TRI */

/* Estilos para notas TRI */
.tri-scores-section {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.tri-scores-section h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tri-scores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.score-card {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.score-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.score-area {
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.score-value {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.score-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.score-pattern {
  font-family: "Courier New", monospace;
  font-size: 0.75rem;
  color: var(--muted-color);
  background: var(--bg-secondary);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  cursor: help;
}

.tri-info {
  margin-top: 1rem;
  padding: 0.75rem;
  background: var(--warning-bg, #fff3cd);
  border: 1px solid var(--warning-border, #ffeaa7);
  border-radius: 6px;
  color: var(--warning-text, #856404);
  font-size: 0.9rem;
}

.tri-info i {
  margin-right: 0.5rem;
}

.tri-info-header {
  margin-bottom: 1rem;
  text-align: center;
}

.tri-info-header p {
  color: var(--text-secondary);
  font-style: italic;
  margin: 0;
}

.tri-calculation-info {
  color: black;
  background: white;
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-light, #e9ecef);
}

.calculation-details h5 {
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
}

.calculation-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.calculation-details li {
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--border-light, #e9ecef);
}

.calculation-details li:last-child {
  border-bottom: none;
}

.tri-error-info {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--warning-bg, #fff3cd);
  border: 1px solid var(--warning-border, #ffeaa7);
  border-radius: 8px;
}

.tri-error-info h5 {
  color: var(--warning-text, #856404);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tri-error-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tri-error-info li {
  padding: 0.25rem 0;
  color: var(--warning-text, #856404);
  font-size: 0.9rem;
}

/* Animações para seção TRI */
@keyframes triScoreSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tri-scores-section {
  animation: triScoreSlideIn 0.5s ease-out;
  border: 2px solid var(--primary-color);
  background: linear-gradient(
    135deg,
    var(--bg-secondary) 0%,
    var(--card-bg) 100%
  );
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.tri-scores-section h4 {
  background: var(--primary-color);
  color: white;
  margin: -1.5rem -1.5rem 1rem -1.5rem;
  padding: 1rem 1.5rem;
  border-radius: 10px 10px 0 0;
}

.score-card {
  animation: triScoreSlideIn 0.3s ease-out;
  animation-delay: 0.2s;
  animation-fill-mode: both;
  border: 2px solid var(--primary-color);
}

.score-value {
  color: var(--primary-color);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  font-family: "Arial Black", sans-serif;
}

.tri-info-header {
  background: rgba(var(--primary-color-rgb, 79, 121, 167), 0.1);
  padding: 0.75rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

/* Destaque especial para notas TRI */
.tri-scores-section::before {
  content: "🎯 NOVA FUNCIONALIDADE";
  position: absolute;
  top: -10px;
  right: 20px;
  background: #ff6b6b;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.7rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.tri-scores-section {
  position: relative;
}

/* Responsividade para notas TRI */
@media (max-width: 768px) {
  .tri-scores-grid {
    grid-template-columns: 1fr;
  }

  .score-value {
    font-size: 1.5rem;
  }

  .tri-calculation-info {
    padding: 0.75rem;
  }
}

/* Estilos para área única */
.tri-score-display {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
}

.score-card.single-area {
  min-width: 250px;
  max-width: 300px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  color: white;
  border: none;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.score-card.single-area:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.score-card.single-area .score-area {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.score-card.single-area .score-value {
  font-size: 3rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  margin: 0.5rem 0;
}

.score-card.single-area .score-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

/* Estilos para erros */
.tri-error-display {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
}

.error-card {
  min-width: 250px;
  max-width: 400px;
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: white;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 8px 25px rgba(220, 53, 69, 0.15);
}

.error-card .error-area {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
}

.error-card .error-message {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}
