/* Añade al final de tu <style> */
.borrador-item {
  transition: all 0.2s;
}

.borrador-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.progress-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
}
/* Modal específico para borradores - CORREGIDO */
#borradoresModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(
    0,
    0,
    0,
    0.85
  ); /* Más oscuro para mejor contraste */
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
}

#borradoresModal.show {
  opacity: 1;
  visibility: visible;
}

#borradoresModal .modal-container {
  background-color: #0f172a;
  border-radius: 0.75rem;
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: translateY(30px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-sizing: border-box;
}

#borradoresModal.show .modal-container {
  transform: translateY(0) scale(1);
}

#borradoresModal .modal-header {
  position: sticky;
  top: 0;
  background-color: #0f172a;
  z-index: 10;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#borradoresModal .modal-header h3 {
  color: white !important; /* Fuerza color blanco */
  font-weight: 600;
  font-size: 1.125rem;
}

#borradoresModal .modal-header button {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: color 0.2s;
}

#borradoresModal .modal-header button:hover {
  color: white;
}

#borradoresModal .modal-content {
  padding: 1.5rem;
  max-height: 55vh;
  overflow-y: auto;
  box-sizing: border-box;
}

#borradoresModal .modal-footer {
  position: sticky;
  bottom: 0;
  background-color: #0f172a;
  z-index: 10;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 1.5rem;
}

/* Clase para prevenir scroll en el body cuando el modal está abierto */
.body-no-scroll {
  overflow: hidden !important;
  padding-right: var(--scrollbar-width, 0px);
  height: 100vh;
}

/* Asegurar que el modal esté por encima de todo */
#borradoresModal {
  z-index: 9999 !important;
}

/* Scrollbar styling para el modal */
#borradoresModal .modal-content::-webkit-scrollbar {
  width: 8px;
}

#borradoresModal .modal-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

#borradoresModal .modal-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

#borradoresModal .modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Para móviles */
@media (max-width: 768px) {
  #borradoresModal {
    padding: 10px;
  }

  #borradoresModal .modal-container {
    width: 100%;
    max-width: 100%;
    max-height: 90vh;
    border-radius: 0.5rem;
  }

  #borradoresModal .modal-content {
    padding: 1rem;
    max-height: 65vh;
  }

  #borradoresModal .modal-header,
  #borradoresModal .modal-footer {
    padding: 1rem;
  }
}

/* Fondo overlay que cubre todo */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 1040;
}