/**
 * MEAAI Components CSS
 * Estilos para componentes del sistema MEAAI
 * Version: 1.0.0
 * Fecha: 20 de mayo de 2025
 */

/* Contenedores principales */
.progress-container.meaai-container {
  border-left: 4px solid #4776e6;
}

/* Artifacts Grid */
.artifacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: 20px;
  margin-top: 20px;
}

/* Artifact Cards */
.artifact-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.artifact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.artifact-header {
  padding: 15px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.artifact-body {
  padding: 15px;
  flex-grow: 1;
}

.artifact-actions {
  padding: 10px 15px;
  background-color: #f9f9f9;
  border-top: 1px solid #eee;
}

/* Plan components */
.plan-header {
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.plan-content {
  padding-top: 15px;
}

.recommendation-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  background-color: #fff;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.recommendation-item:hover {
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.recommendation-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
}

.recommendation-icon i {
  font-size: 20px;
  color: white;
}

.recommendation-text {
  flex-grow: 1;
}

.recommendation-title {
  font-weight: 600;
  margin-bottom: 5px;
}

.recommendation-desc {
  font-size: 0.9rem;
  color: #6c757d;
}

.generate-plan-btn {
  margin-left: 10px;
  white-space: nowrap;
}

/* Toast notifications */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  min-width: 300px;
  z-index: 9999;
  background-color: white;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  border: none;
  border-radius: 0.25rem;
}

.toast-success .toast-header {
  background-color: #28a745;
  color: white;
}

.toast-error .toast-header {
  background-color: #dc3545;
  color: white;
}

.toast-warning .toast-header {
  background-color: #ffc107;
  color: white;
}

/* Loader animation */
.meaai-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 0;
}

.meaai-loader .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 123, 255, 0.1);
  border-left-color: #007bff;
  border-radius: 50%;
  animation: meaai-spin 1s linear infinite;
}

@keyframes meaai-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Empty state */
.meaai-empty-state {
  text-align: center;
  padding: 40px 0;
}

.meaai-empty-state i {
  font-size: 40px;
  color: #6c757d;
  margin-bottom: 15px;
}

.meaai-empty-state h5 {
  margin-bottom: 10px;
}

/* Modal and dialogs */
.meaai-modal .modal-content {
  border: none;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.meaai-modal .modal-header {
  background: linear-gradient(to right, #4776e6, #8e54e9);
  color: white;
  border-bottom: none;
}

.meaai-modal .modal-header .close {
  color: white;
  opacity: 0.8;
}

.meaai-modal .modal-header .close:hover {
  opacity: 1;
}
