/***** Estilo General de Prompt Management *****/
.prompt-management {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/***** Lista de Prompts Más Usados *****/
.prompt-list {
    flex: 1 1 100%;
    background: #1A1E28;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    max-height: 250px; /* Fija la altura */
    overflow-y: auto;  /* Permite scroll si hay muchos */
}

.prompt-list-title {
    font-size: 1.2rem;
    color: #E0E0FF;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/***** Contenedor de los Targets *****/
.prompt-list-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

/***** Estilo de Cada Target *****/
.prompt-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #2D2D42;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.9rem;
    color: #E0E0FF;
    transition: background 0.3s ease;
    cursor: pointer;
    min-width: 120px;
    max-width: 200px;
    flex-grow: 1;
}

.prompt-item:hover {
    background: #3B82F6;
}

/***** Botón de Borrar *****/
.prompt-delete-form {
    margin-left: auto;
}

.prompt-delete-button {
    background: transparent;
    border: none;
    color: #FF6B6B;
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.prompt-delete-button:hover {
    color: #FF3B3B;
}

/***** Área de Formulario *****/
.prompt-form-container {
    flex: 1 1 100%;
    background: #1A1E28;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    margin-top: 10px;
}

/***** Estilos de Inputs y Botones *****/
.prompt-form .form-group {
    margin-bottom: 1rem;
}

.prompt-form .form-label {
    display: block;
    font-size: 1rem;
    color: #E0E0FF;
    margin-bottom: 0.5rem;
}

.prompt-form .form-textarea,
.prompt-form .form-input {
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid #2D3748;
    background: #161A22;
    color: #E0E0FF;
    font-size: 0.95rem;
}

.prompt-form .form-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-primary {
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #6366F1, #A78BFA);
}

.btn-secondary {
    background: #374151;
    color: #E0E0FF;
}

.btn-secondary:hover {
    background: #4B5563;
}

.btn-success {
    background: #22C55E;
    color: #fff;
}

.btn-success:hover {
    background: #16A34A;
}

.hidden {
    display: none;
}
