/* IA Analysis specific styles */
#hero-ia {
  background: linear-gradient(135deg, var(--dark-color) 0%, #2a1a1a 100%);
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 5% 2rem;
}

#hero-ia h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

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

.analysis-card {
  background: var(--card-background);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s;
}

.analysis-card:hover {
  transform: translateY(-5px);
}

.analysis-card i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.scores-container {
  margin-top: 2rem;
  overflow-x: auto;
}

.table-wrapper {
  min-width: 800px;
  margin: 0 auto;
}

#scores-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-background);
  border-radius: 10px;
  overflow: hidden;
}

#scores-table th,
#scores-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,107,0,0.1);
}

#scores-table th {
  background: var(--primary-color);
  color: white;
}

#scores-table tr:hover {
  background: rgba(255,107,0,0.1);
}

.bad-score {
  background-color: rgba(255, 0, 0, 0.2);
  color: #ff4444;
  font-weight: bold;
}

.analysis-example {
  background: var(--card-background);
  border-radius: 10px;
  padding: 2rem;
  margin-top: 2rem;
}

.analysis-example h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

pre {
  background: #1a1a1a;
  padding: 1.5rem;
  border-radius: 5px;
  overflow-x: auto;
}

code {
  font-family: 'Consolas', 'Monaco', monospace;
  color: #e6e6e6;
}

.processing-animation {
  width: 100%;
  height: 150px;
  margin-top: 2rem;
  background: var(--card-background);
  border-radius: 10px;
  overflow: hidden;
}

.conversation-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: var(--card-background);
  border-radius: 10px;
}

.conversation-line {
  display: flex;
  margin: 1rem 0;
  gap: 1rem;
  align-items: flex-start;
}

.conversation-line.customer {
  justify-content: flex-start;
}

.conversation-line.agent {
  justify-content: flex-end;
  text-align: right;
}

.message {
  background: rgba(255, 107, 0, 0.1);
  padding: 1rem;
  border-radius: 10px;
  max-width: 70%;
  position: relative;
}

.customer .message {
  border-top-left-radius: 0;
}

.agent .message {
  border-top-right-radius: 0;
  background: rgba(255, 107, 0, 0.2);
}

.emotion {
  font-size: 1.5rem;
  margin: 0 0.5rem;
}

@media (max-width: 768px) {
  #hero-ia h1 {
    font-size: 2rem;
  }

  .analysis-grid {
    grid-template-columns: 1fr;
  }

  .scores-container {
    margin: 1rem;
  }

  .analysis-example {
    margin: 1rem;
  }

  .conversation-container {
    margin: 1rem;
    padding: 1rem;
  }
  
  .message {
    max-width: 85%;
  }
}