/* ═══════════════════════════════════════════════════════
   QS Multiweb - Custom Styles
   On top of Material Dashboard 2 by Creative Tim
   ═══════════════════════════════════════════════════════ */

/* -- Section transitions -- */
.mw-section {
  animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* -- Proyecto Cards -- */
.mw-proyecto-card {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 2px solid transparent;
}
.mw-proyecto-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 26px rgba(0,0,0,.12) !important;
}
.mw-proyecto-card.active {
  border-color: #e91e63;
}

/* -- Log de generación -- */
.mw-log {
  background: #1a1a2e;
  border-radius: 8px;
  padding: 16px;
  max-height: 400px;
  overflow-y: auto;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #a7b1c2;
}
.mw-log:empty::before {
  content: 'El log de ejecución aparecerá aquí...';
  color: #555;
  font-style: italic;
}
.mw-log .log-line {
  padding: 2px 0;
}
.mw-log .log-time {
  color: #6c757d;
  margin-right: 8px;
}
.mw-log .log-success { color: #4caf50; }
.mw-log .log-error   { color: #f44336; }
.mw-log .log-warning { color: #ff9800; }
.mw-log .log-info    { color: #a7b1c2; }

/* -- Meta/Variación items -- */
.mw-meta-item,
.mw-var-group {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background 0.15s;
}
.mw-meta-item:hover,
.mw-var-group:hover {
  background: #eef1f5;
}
.mw-meta-item .meta-text,
.mw-var-group .var-text {
  flex: 1;
  font-size: 0.875rem;
  word-break: break-word;
}
.mw-meta-item .meta-badge {
  font-size: 0.7rem;
  min-width: 24px;
  text-align: center;
}

.mw-var-group-header {
  background: #e3e8ee;
  border-radius: 8px 8px 0 0;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.85rem;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mw-var-group-header:first-child {
  margin-top: 0;
}

/* -- Toast theming -- */
.toast.bg-success { background: linear-gradient(195deg, #49a3f1 0%, #1a73e8 100%) !important; }
.toast.bg-danger  { background: linear-gradient(195deg, #ef5350 0%, #e53935 100%) !important; }
.toast.bg-warning { background: linear-gradient(195deg, #ffa726 0%, #fb8c00 100%) !important; }

/* -- Monospace textarea -- */
.font-monospace {
  font-family: 'Roboto Mono', 'Courier New', monospace !important;
  font-size: 0.8rem !important;
  line-height: 1.5 !important;
}

/* -- Responsive fixes -- */
@media (max-width: 768px) {
  .mw-meta-item,
  .mw-var-group {
    flex-direction: column;
    align-items: stretch;
  }
}

/* -- Empty state -- */
.mw-empty-state {
  text-align: center;
  padding: 48px 24px;
  color: #adb5bd;
}
.mw-empty-state i {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}

/* -- Btn icon alignment -- */
.btn .material-icons {
  font-size: 18px;
  vertical-align: middle;
  margin-right: 4px;
  margin-top: -2px;
}

/* -- Table action btns -- */
.mw-actions .btn {
  padding: 4px 8px;
  margin: 0 2px;
}
.mw-actions .btn .material-icons {
  font-size: 16px;
  margin: 0;
}
