/* Variables actualizadas y sistema de diseño */
:root {
    --color-dark-1: #0f172a;
    --color-dark-2: #1e293b;
    --color-dark-3: #334155;
    --color-secondary: #6366f1;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --gradient-secondary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  }

/* Animaciones clave */
@keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
  
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
  }
  
.mis-prompts-container{
  margin: 20px;
}


/* ===========================
   ⚡ CONTENEDOR DE TARJETAS (Dark Mode)
   =========================== */
.mp-prompt-list {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

/* Efecto de borde luminoso al hacer hover */
.mp-prompt-list:hover {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4),
              inset 0 0 20px rgba(99, 102, 241, 0.05);
}

/* Brillo dinámico en el contenedor */
.mp-prompt-list::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 25%,
    rgba(99, 102, 241, 0.08) 50%,
    transparent 75%
  );
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  animation: containerGlow 6s linear infinite;
}

.mp-prompt-list:hover::after {
  opacity: 0.6;
}

@keyframes containerGlow {
  from { transform: rotate(45deg) translateY(-50%); }
  to { transform: rotate(45deg) translateY(30%); }
}

/* Título de la Lista */
.mp-list-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #e2e8f0;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-left: 1.2rem;
  transition: color 0.3s ease;
}

/* Línea decorativa animada */
.mp-list-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 70%;
  width: 3px;
  background: linear-gradient(180deg, #6366f1 0%, #818cf8 100%);
  border-radius: 2px;
  animation: titlePulse 2s ease-in-out infinite;
}

@keyframes titlePulse {
  0%, 100% { opacity: 0.8; height: 50%; }
  50% { opacity: 1; height: 70%; }
}

/* Efecto hover título */
.mp-list-title:hover {
  color: #a5b4fc;
  text-shadow: 0 0 12px rgba(99, 102, 241, 0.3);
}
/* ===========================
   🎴 GRID DE TARJETAS
   =========================== */
.mp-card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: flex-start;
}

/* ===========================
   💎 TARJETA DARK MODE
   =========================== */
.mp-card {
  background: linear-gradient(145deg, #1e2433, #0f172a);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 220px;
  max-width: 320px;
  word-wrap: break-word;
  flex: 1 1 auto;
  color: #e2e8f0;
  overflow: hidden;
}

/* 🌟 Hover con Efecto Elevado */
.mp-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  border-color: #6366f1;
}

/* ===========================
   📋 ENCABEZADO DE LA TARJETA
   =========================== */
.mp-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.mp-target {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp-usage {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ===========================
   📊 METADATOS CONTRASTADOS
   =========================== */
.mp-card-meta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.8rem;
}

.mp-date {
  font-style: italic;
  color: #cbd5e1;
}

.mp-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.mp-category {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  padding: 0.25rem 0.7rem;
  border-radius: 6px;
  font-size: 0.75rem;
  text-transform: capitalize;
  font-weight: 600;
  transition: background 0.3s ease;
}

.mp-category:hover {
  background: rgba(99, 102, 241, 0.4);
}

/* ===========================
   ❌ BOTÓN ELIMINAR ELEVADO
   =========================== */
.mp-delete-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(239, 68, 68, 0.15);
  border: none;
  color: #ef4444;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
}

.mp-card:hover .mp-delete-btn {
  opacity: 1;
}

.mp-delete-btn:hover {
  background: #ef4444;
  color: white;
  transform: scale(1.1) rotate(15deg);
}

/* ===========================
   📭 ESTADO VACÍO
   =========================== */
.mp-empty-state {
  padding: 2rem;
  text-align: center;
  color: #64748b;
  font-size: 1rem;
  border: 2px dashed rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

/* ===========================
   📱 RESPONSIVE DESIGN
   =========================== */
@media (max-width: 768px) {
  .mp-card-grid {
    justify-content: center;
  }

  .mp-card {
    min-width: 180px;
    max-width: 100%;
  }

  .mp-delete-btn {
    opacity: 1; /* Siempre visible en móviles */
  }
}

/* ===========================
   ⚡ HEADER PRINCIPAL MEJORADO
   =========================== */
   .mp-header {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: var(--border-radius, 12px);
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
  }
  
  /* ✨ Animación de brillo en el borde */
  .mp-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 45%, rgba(99, 102, 241, 0.1) 50%, transparent 55%);
    animation: glowMove 6s linear infinite;
    pointer-events: none;
  }
  
  /* 🌟 Animación de brillo */
  @keyframes glowMove {
    0% {
      transform: rotate(0deg) translate(0, 0);
    }
    100% {
      transform: rotate(360deg) translate(0, 0);
    }
  }
  
  /* ===========================
     🎨 TÍTULO CON GRADIENTE DINÁMICO
     =========================== */
  .mp-header-title h1 {
    font: 600 2rem/1.1 'Space Grotesk', sans-serif;
    background: linear-gradient(90deg, var(--text-primary, #f8fafc) 0%, var(--color-secondary, #6366f1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    padding-bottom: 1rem;
    transition: all 0.3s ease;
  }
  
  /* Barra debajo del título */
  .mp-header-title h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--color-secondary, #6366f1);
    border-radius: 2px;
    transition: width 0.3s ease;
  }
  
  .mp-header-title h1:hover::after {
    width: 100px;
  }
  
  /* Ícono en el título */
  .mp-header-title h1 i {
    color: #818cf8;
    font-size: 1.8rem;
    margin-right: 0.5rem;
  }
  
  /* Subtítulo */
  .mp-header-subtitle {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0.5rem 0 0 0;
  }
  
  /* ===========================
     🛠️ CONTROLES Y BOTONES
     =========================== */
  .mp-header-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
  }
  
  /* 🎯 BOTÓN CON EFECTOS DE BRILLO */
  .mp-button {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .mp-button::after {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 200%;
    height: 200%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.5s ease;
  }
  
  .mp-button:hover::after {
    opacity: 1;
    transform: translateX(100%) translateY(100%);
  }
  
  /* BOTÓN PRINCIPAL */
  .mp-button.primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
  
  .mp-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
  }
  
  /* ===========================
     🔍 FILTROS Y BÚSQUEDA
     =========================== */
/* ===========================
   🎛️ SECCIÓN DE FILTRADO
   =========================== */
   .mp-filtrado {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
  }
  
  /* ===========================
     🔍 BUSCADOR
     =========================== */
  .mp-search {
    position: relative;
    flex: 1;
    max-width: 400px;
  }
  
  .mp-search-input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #f8fafc;
    font-size: 1rem;
    transition: all 0.3s ease;
  }
  
  .mp-search-input::placeholder {
    color: #94a3b8;
  }
  
  .mp-search-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    outline: none;
  }
  
  .mp-search i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    transition: color 0.3s ease;
  }
  
  .mp-search-input:focus + i {
    color: #6366f1;
  }
  
  /* ===========================
     🗂️ SELECTOR DE FILTROS
     =========================== */
  .mp-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
  }
  
  .mp-filter:hover {
    border-color: #6366f1;
  }
  
  .mp-filter label {
    color: #94a3b8;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
  }
  
  .mp-select {
    background: transparent;
    border: none;
    color: #f8fafc;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    outline: none;
  }
  
  .mp-select option {
    background: #1e293b;
    color: #f8fafc;
  }
  
  /* ===========================
     📱 RESPONSIVE FILTRADO
     =========================== */
  @media (max-width: 768px) {
    .mp-filtrado {
      flex-direction: column;
      align-items: stretch;
      gap: 1rem;
    }
  
    .mp-search,
    .mp-filter {
      width: 100%;
    }
  }
  
  
  
  /* ===========================
     📊 ESTADÍSTICAS
     =========================== */
  .mp-header-stats {
    display: flex;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .mp-stat-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .mp-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(99, 102, 241, 0.2);
  }
  
  .mp-stat-card i {
    color: #818cf8;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  
  .mp-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: #f8fafc;
  }
  
  .mp-stat-label {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-top: 0.25rem;
  }
  
  /* ===========================
     📱 RESPONSIVE
     =========================== */
  @media (max-width: 768px) {
    .mp-header {
      padding: 1.25rem;
    }
  
    .mp-header-controls {
      grid-template-columns: 1fr;
      gap: 1rem;
    }
  
    .mp-header-stats {
      flex-direction: column;
      gap: 1rem;
    }
  
    .mp-header-title h1 {
      font-size: 1.75rem;
    }
  }
  
  /* ===========================
   🟥 CONTENEDOR DE PROMPTS NEGATIVOS
   =========================== */
.negative-prompts {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-left: 5px solid #ef4444;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.1);
}

/* ===========================
 🔥 TÍTULO DE LA SECCIÓN
 =========================== */
.negative-prompts .section-title {
  color: #f87171;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-weight: 600;
  text-transform: uppercase;
}

.negative-prompts .section-title i {
  color: #ef4444;
  font-size: 1.4rem;
}

/* Contador de Prompts */
.negative-prompts .counter {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-left: auto;
}

/* ===========================
 🔳 GRID DE PROMPTS NEGATIVOS
 =========================== */
.prompts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

/* ===========================
 🟥 TARJETA DE PROMPT NEGATIVO
 =========================== */
.prompt-card {
  background: rgba(45, 55, 72, 0.8);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 10px;
  padding: 1.2rem;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.15);
}

/* Efecto Brillo */
.prompt-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(239, 68, 68, 0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.prompt-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
  border-color: #ef4444;
}

.prompt-card:hover::before {
  opacity: 0.2;
}

/* ===========================
 🏷️ ENCABEZADO DE LA TARJETA
 =========================== */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.card-header .target {
  color: #f8fafc;
  font-size: 1rem;
  font-weight: 500;
  max-width: 75%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Contador de uso */
.card-header .used {
  color: #f87171;
  font-size: 0.85rem;
  background: rgba(239, 68, 68, 0.15);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
}

/* ===========================
 🏷️ CATEGORÍAS EN CADA PROMPT
 =========================== */
.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.category-tag {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  padding: 0.3rem 0.85rem;
  border-radius: 6px;
  font-size: 0.8rem;
  border: 1px solid rgba(239, 68, 68, 0.4);
  font-weight: 500;
}

.category-tag.negative {
  background: rgba(239, 68, 68, 0.3);
}

/* ===========================
 🛠️ BOTONES DE ACCIONES
 =========================== */
.card-actions {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  gap: 0.4rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.prompt-card:hover .card-actions {
  opacity: 1;
}

.btn-edit, .btn-delete {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.85rem;
}

/* Botón Editar */
.btn-edit {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
}

.btn-edit:hover {
  background: #6366f1;
  color: white;
}

/* Botón Eliminar */
.btn-delete {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.btn-delete:hover {
  background: #ef4444;
  color: white;
}

/* ===========================
 📭 ESTADO VACÍO
 =========================== */
.empty-state {
  padding: 1.5rem;
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
  grid-column: 1 / -1;
}

.empty-state i {
  font-size: 1.5rem;
  color: #3e4a5c;
  margin-bottom: 0.5rem;
}

/* ===========================
 📱 RESPONSIVE DESIGN
 =========================== */
@media (max-width: 768px) {
  .prompts-grid {
      grid-template-columns: 1fr;
  }

  .card-actions {
      opacity: 1; /* Mostrar siempre en móviles */
  }

  .card-header .target {
      max-width: 60%;
  }
}





/* CSS */
.mp-detail-section {
    background: #1e293b;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    padding: 1.5rem;
    margin-top: 2rem;
    position: relative;
}

.detail-card {
    display: grid;
    gap: 1.5rem;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #334155;
}

.detail-title {
    color: #f8fafc;
    font-size: 1.5rem;
    margin: 0;
    line-height: 1.3;
}

.detail-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: right;
}

.detail-usage,
.detail-date {
    font-size: 0.9rem;
    color: #64748b;
}

.detail-body {
    display: grid;
    gap: 1.5rem;
}

.detail-prompt {
    background: #0f172a;
    padding: 1.5rem;
    border-radius: 8px;
    white-space: pre-wrap;
    font-family: 'Fira Code', monospace;
    line-height: 1.5;
    margin: 0;
    overflow-x: auto;
}

.detail-categories {
    display: grid;
    gap: 0.75rem;
}

.detail-categories-title {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
}

.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Loading Overlay */
.mp-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 41, 59, 0.9);
    display: none;
    place-items: center;
    border-radius: inherit;
    z-index: 10;
}

.mp-loading-overlay.active {
    display: grid;
}

/* Responsive */
@media (max-width: 768px) {
    .detail-header {
        flex-direction: column;
    }
    
    .detail-meta {
        text-align: left;
    }
}

/* Título con Efecto de Degradado */
.gradient-text {
  background: linear-gradient(45deg, #818cf8 0%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  padding-bottom: 0.5rem;
}

.gradient-text::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
}

/* Layout de Columnas */
.mp-form-columns {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.mp-form-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Textarea de Prompt a Altura Completa */
.prompt-fullheight {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.prompt-fullheight .mp-form-textarea {
  flex-grow: 1;
  min-height: 200px;
}

/* Título de Categorías */
.mp-categories-title {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin: 0 0 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mp-categories-title::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--color-secondary);
  border-radius: 50%;
  display: block;
}

/* Categorías en Horizontal */
.mp-categories-select {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.mp-category-option {
  flex: 0 0 auto;
  position: relative;
  transition: transform 0.2s ease;
}

.mp-category-option:hover {
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .mp-form-columns {
      grid-template-columns: 1fr;
      gap: 1.5rem;
  }
  
  .prompt-fullheight .mp-form-textarea {
      min-height: 200px;
  }
  
  .mp-categories-select {
      flex-direction: column;
  }
  
  .mp-category-option {
      width: 100%;
  }
}

/* MODAL WRAPPER - Fondo oscuro con efecto de desenfoque */
.mp-modal-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mp-modal-wrapper.active {
  display: flex;
  opacity: 1;
}

/* CONTENEDOR MODAL - Efectos 3D y transiciones suaves */
.mp-modal-content {
  background: linear-gradient(145deg, 
    var(--color-dark-1) 0%, 
    var(--color-dark-2) 100%);
  width: 95%;
  max-width: 1200px;
  border-radius: 1rem;
  border: 1px solid rgba(99, 102, 241, 0.15);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  transform: translateY(30px) scale(0.95);
  opacity: 0;
  animation: modalEntrance 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  perspective: 1000px;
  overflow: hidden;
}

.mp-modal-content {
    transform: perspective(1000px) rotateX(3deg) translateY(30px);
    transform-origin: top center;
    animation: modalEntrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    
    @keyframes modalEntrance {
      0% { opacity: 0; transform: perspective(1000px) rotateX(15deg) translateY(100px); }
      100% { opacity: 1; transform: perspective(1000px) rotateX(0) translateY(0); }
    }
  }

@keyframes modalEntrance {
  0% {
    transform: translateY(30px) scale(0.95);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* CABECERA MODAL - Diseño con degradado */
.mp-modal-header {
  padding: 1.5rem 2rem;
  background: linear-gradient(90deg, 
    rgba(99, 102, 241, 0.15) 0%, 
    rgba(99, 102, 241, 0.05) 100%);
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mp-modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.025em;
}

.mp-modal-close {
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: var(--transition-base);
}

.mp-modal-close:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  transform: rotate(90deg);
}

/* FORMULARIO - Layout responsivo avanzado */
#mp-editForm {
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.mp-form-group {
  position: relative;
}

/* ETIQUETAS DE FORMULARIO - Microinteracciones */
.mp-form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0.9;
  transition: transform 0.2s ease;
}

/* INPUTS/TEXTAREAS - Diseño moderno con profundidad */
.mp-form-input,
.mp-form-textarea {
  width: 100%;
  padding: 0.875rem 1.25rem;
  background: var(--color-dark-3);
  border: 2px solid transparent;
  border-radius: 0.75rem;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  transition: var(--transition-base);
  box-shadow: var(--shadow-lg);
}

.mp-form-input:focus,
.mp-form-textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
  background: var(--color-dark-2);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.mp-form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* BOTONES - Diseño interactivo con estados */
.mp-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  cursor: pointer;
  transition: var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
}

.mp-btn-cancel {
  background: transparent;
  color: #94a3b8;
  border: 2px solid rgba(148, 163, 184, 0.3);
}

.mp-btn-cancel:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
  transform: translateY(-1px);
}

.mp-btn-save {
  background: linear-gradient(135deg, 
    var(--color-secondary) 0%, 
    #4f46e5 100%);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.mp-btn-save:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.mp-btn-save:active {
  transform: translateY(1px);
}

/* LOADING SPINNER - Oculto por defecto */
/* Efectos de carga mejorados */
.mp-spinner {
  border: 3px solid rgba(255,255,255,0.2);
  border-top-color: var(--color-secondary);
  animation: spin 1s linear infinite;
  box-shadow: 0 0 8px rgba(99,102,241,0.3);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Estado loading del botón */
.mp-btn-save[data-loading="true"] .mp-btn-text {
  opacity: 0;
}

.mp-btn-save[data-loading="true"] .mp-spinner {
  opacity: 1;
  visibility: visible;
}

.mp-category-option {
  position: relative;
  border: 2px solid rgba(99, 102, 241, 0.1);
  border-radius: 0.75rem;
  padding: 1rem;
  cursor: pointer;
  background: var(--color-dark-3);
  transition: var(--transition-base);
}

.mp-category-option:hover {
  transform: translateY(-2px);
  border-color: var(--color-secondary);
  box-shadow: var(--shadow-lg);
}

/* RESPONSIVE DESIGN - Mobile First */
@media (max-width: 768px) {
  #mp-editForm {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
  
  .mp-modal-content {
    margin: 1rem;
    border-radius: 0.75rem;
  }
  
  .mp-form-actions {
    flex-direction: column;
  }
  
  .mp-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Scrollbars personalizadas en todos los contenedores */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    background: rgba(0,0,0,0.1);
  }
  
  ::-webkit-scrollbar-thumb {
    background: var(--color-secondary);
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.1);
  }
  

  /* ===========================
   🏗️ CONTENEDOR DE 2 COLUMNAS
   =========================== */
.mp-h {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 columnas iguales */
  gap: 2rem; /* Espacio entre columnas */
  align-items: start; /* Alinear contenido al inicio */
  margin-bottom: 2rem;
}

/* ===========================
   📱 RESPONSIVE
   =========================== */
@media (max-width: 768px) {
  .mp-h {
    grid-template-columns: 1fr; /* En pantallas pequeñas, apilar */
  }
}
