/**
 * infoAlunoCycleTracking.css
 * Estilos compactos para cards de cycle_tracking dentro do modal Info Aluno.
 * Prefixo: .iam-ct- (info-aluno-modal cycle-tracking) para evitar conflitos.
 */

/* Container da seção */
.iam-ct-section {
  background-color: #f9f9f9;
  border-radius: var(--border-radius, 8px);
  padding: 1rem;
}

.iam-ct-section h4 {
  margin: 0 0 0.75rem 0;
  color: var(--primary-color, #47ADB2);
  font-size: 1rem;
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.iam-ct-count {
  background: var(--primary-color, #47ADB2);
  color: white;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}

/* Lista scrollable */
.iam-ct-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
}

/* Card compacto individual */
.iam-ct-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: opacity 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.iam-ct-card.iam-ct-status-pending {
  border-left: 3px solid #2196F3;
}

.iam-ct-card.iam-ct-status-attention_required {
  border-left: 3px solid #FFC107;
  background: #fffdf5;
}

.iam-ct-card.iam-ct-status-read {
  border-left: 3px solid #4CAF50;
  opacity: 0.7;
}

/* Override para neutralizar o fading-out que markAsRead aplica */
.iam-ct-card.fading-out {
  opacity: 1;
  transform: none;
  max-height: none;
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
}

/* Header: meta info + badge */
.iam-ct-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.iam-ct-meta {
  font-size: 0.8rem;
  color: #666;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.iam-ct-sheet-label {
  font-size: 0.7rem;
  background: #e8e8e8;
  padding: 1px 6px;
  border-radius: 4px;
  color: #555;
}

.iam-ct-badge {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

.iam-ct-badge-pending {
  background: #e3f2fd;
  color: #1976D2;
}

.iam-ct-badge-attention_required {
  background: #fff8e1;
  color: #F57C00;
}

.iam-ct-badge-read {
  background: #e8f5e9;
  color: #388E3C;
}

/* Texto da resposta */
.iam-ct-response {
  font-size: 0.9rem;
  font-weight: 500;
  color: #222;
  padding: 6px 8px;
  background: #f5f5f5;
  border-left: 2px solid #ccc;
  border-radius: 0 6px 6px 0;
  font-style: italic;
  line-height: 1.4;
}

/* Botões de ação compactos */
.iam-ct-actions {
  display: flex;
  gap: 6px;
  border-top: 1px solid #f0f0f0;
  padding-top: 6px;
}

.iam-ct-btn {
  border: none;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background 0.2s;
}

.iam-ct-btn-resolve {
  background: #4CAF50;
  color: white;
}

.iam-ct-btn-resolve:hover {
  background: #43A047;
}

.iam-ct-btn-notes {
  background: #f5f5f5;
  color: #555;
}

.iam-ct-btn-notes:hover {
  background: #e0e0e0;
}

.iam-ct-btn-attention {
  background: #FFF3E0;
  color: #E65100;
}

.iam-ct-btn-attention:hover {
  background: #FFE0B2;
}

.iam-ct-btn-save-note {
  background: #2196F3;
  color: white;
  align-self: flex-end;
}

.iam-ct-btn-save-note:hover {
  background: #1976D2;
}

/* Área de notas colapsável */
.iam-ct-notes-section {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: #fafafa;
  padding: 8px;
  border-radius: 6px;
  border: 1px dashed #ccc;
}

.iam-ct-notes-section.iam-ct-expanded {
  display: flex;
}

.iam-ct-textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 6px;
  font-size: 0.85rem;
  min-height: 50px;
  font-family: inherit;
  box-sizing: border-box;
}

/* Estado vazio */
.iam-ct-empty {
  text-align: center;
  padding: 15px;
  color: #999;
  font-size: 0.9rem;
}
